Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use THISFORM in a variable???
Message
From
19/12/1996 13:03:49
 
 
To
18/12/1996 12:25:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00015509
Message ID:
00015640
Views:
32
>Dear Visual FoxPro users
>
>I want to to set a value property in a function.
>For example: I want to write "test" in 10 boxes
>with te names txtBox1,....., txtBox10
>
>FOR nNr = 1 TO 10
> cTxtbox = "thisform.txtBox" + nNr + ".value"
> cTxtbox = "test"
>endfor
>
>This code isn't working the way I want, but how do I do?

This code work

For cpt = 1 to 28
champ = "champ"+alltrim(str(cpt))
this.form2.multiplepages1.page1.&champ..value = this.FmPostI(cpt)
endfor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform