This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Console mode _1 variable?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 16, 2009
09:22 AM
Console mode _1 variable?
Hello,
I added console panels to my project and some of my variable comparison rules stopped working. For example, I have a gui input that sets $ANSWER$ and a rule that compares $ANSWER$ equals yes. After adding the equivalent console panel I find that $ANSWER$ is set to "yes" with the quotes! The console panel sets another variable, $ANSWER_1$ to yes without quotes. I either need to remember to use "contains" instead of "equals" in my variable comparison rules, or add a new rule comparing $ANSWER_1$.
Can anyone tell me why console mode adds double quotes around a variable's value and why the _1 variable is also set? Why not work the same as gui mode?
Regards,
Jeff
I added console panels to my project and some of my variable comparison rules stopped working. For example, I have a gui input that sets $ANSWER$ and a rule that compares $ANSWER$ equals yes. After adding the equivalent console panel I find that $ANSWER$ is set to "yes" with the quotes! The console panel sets another variable, $ANSWER_1$ to yes without quotes. I either need to remember to use "contains" instead of "equals" in my variable comparison rules, or add a new rule comparing $ANSWER_1$.
Can anyone tell me why console mode adds double quotes around a variable's value and why the _1 variable is also set? Why not work the same as gui mode?
Regards,
Jeff
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 16, 2009
09:31 AM
I'm afraid it works the same way in GUI mode. Please check the manual, the "Get User Input Panels" section:
Results Variable(s): The name of the InstallAnywhere variable that will store the results of the end-user's input. The default value for the Results Variable name is "USER_INPUT_RESULTS". The variable name of the Results Variable also forms the base name of additional InstallAnywhere variables that will be used to store individual end-user input choices from the end-user input panel. The convention for the naming of the additional variables is to append an underscore and an integer number to the end of the base name. The number, starting at one (1), increases by one (1) for each additional variable that is needed to store data. The number of additional variables derived from the Results Variable base name depends upon the Input Method/Component Type that you have selected for the panel, the choices made by the end-user at install time, and the number of values listed in Defaults.
$X$="Peter","Paul","Mary"
$X_1$=Peter
$X_2$=Paul
$X_3$=Mary
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 16, 2009
09:38 AM
Thank you Vlad. I guess "RTFM" applies here... 😮
-Jeff
-Jeff
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 16, 2009
09:47 AM
You said it, Jeff, not me! 😄