Hey again,
your software is wonderful and I realy like it. Hope, I find a solution for this:
I got a FPL script look like the following code:
char sControlName;
set sControlName = 'MY_PRIVATE_CTRL';
now I want to hide this control or set other properties like
set sControlName.hide = 'true';
In some programing languages you can add a "$" so that the var name is not uses as the control name.
Thank you for your help again
Manfred
Control Name in a string and setting properties
Moderators: Jon, Steve, Ian, Dave
-
Pnirff
- Ebase User
- Posts: 21
- Joined: Fri Jan 25, 2013 8:36 am
-
Jon
- Moderator

- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Manfred,
With FPL, you need to use the interpret command e.g.
With Javascript, you could do this:
or you could use the eval() function which is the equivalent of the FPL interpret.
Jon
With FPL, you need to use the interpret command e.g.
Code: Select all
char sControlName;
set sControlName = 'MY_PRIVATE_CTRL';
interpret 'hide ' + sControlName;
With Javascript, you could do this:
Code: Select all
var sControlName = 'MY_PRIVATE_CTRL';
controls.getControl(sControlName).hide();
Jon
0 x
-
Pnirff
- Ebase User
- Posts: 21
- Joined: Fri Jan 25, 2013 8:36 am
Who is online
Users browsing this forum: No registered users and 32 guests