AnsweredAssumed Answered

Using Textboxes with Variables

Question asked by bpaul4 on Aug 8, 2018
Latest reply on Aug 15, 2018 by bpaul4

I have 30 text boxes labeled <<$$Jan1>> through <<$$Jan35>> that I would like to display the values of $$Jan.

 

The long method I used was the following:

 

Set Variable [$$Jan1; Value: 1]

Set Variable [$$Jan2; Value: $$Jan1 + 1]

Set Variable [$$Jan3; Value: $$Jan2 + 1]

 

and so forth to show the following -

 

Screen Shot 2018-08-08 at 12.28.07 PM.png

 

I'm trying to cut down on the line of codes and have attempted to introduce the following Loop.

 

Set Variable [$$Jan; Value: 1]

Set Variable [$i; Value: 1]

 

Loop

Set Variable [$$Jan$i; Value: $$Jan+1] #This is used to identify what textbox to display the value, $$Jan1-$$Jan35

Set Variable [$i: Value: $i + 1] #This is used to increase the # displayed in the associated textbox

Exit Loop if [$$Jan > 35]

End Loop

 

Unfortunately this this loop isn't portraying the values inside the text boxes. Any help is greatly appreciated!

Outcomes