Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Reference Similar Objects on a Form
Message
From
29/04/1999 01:48:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How to Reference Similar Objects on a Form
Miscellaneous
Thread ID:
00213319
Message ID:
00213319
Views:
56
I HAVE A FORM WITH eg. 4 TEXTBOXES.
Their names are Text1,Text2,Text3,Text4

I need to be able to display a message in them - set their .VALUE = msg.

I have a form level metod called UPDTTXT
LPARAMETERS TXTPASSED,BOXNO

bb = "ThisForm.Text"+ALLTRIM(STR(BOXNO))+".Value = '"+TXTPASSED+"'"
&bb
* This is the only way I can address any text box - by using a macro.


So to display text in Text3, I call

ThisForm.updttxt("Box Three",3)

Is there a better way of doing this OTHER than using MACROS??

Thanks

Bernard
Next
Reply
Map
View

Click here to load this message in the networking platform