Hello,
I have a query regarding one i-Logic function.
In i-Logic, there is a function called getChoice = Choose(index, "first", "second", "third")
Please find attached snapshot of i-Logic browser for your reference.
What is the use of this function and how to use the same.
I am unable to figure it out, could you please share any simple example using this function.
Please help me out on same.
The "choose" option checks which MultiValue Parameter is chosen.
If you create a Parameter with the name: ParamName and add some values (example: 1, 2, 3) to it and choose one, let's say option 2.
When you create a rule with the next lines
getChoice = Choose(ParamName, "first", "second", "third")
MessageBox.Show("Chosen Value : " & getChoice, "Title")
and run this rule it shows "Chosen Value : second"
So you don't see the value of ParamName but the coresponding string.
Rob.
So...:this function can only be used similarly to IndexOf(ParamName), only it returns string type values instead of Integer type values?
Wesley Crihfield