Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't set ControlSource to a memvar with AddObject in In
Message
From
14/01/1997 11:22:26
 
 
To
14/01/1997 10:18:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00017299
Message ID:
00017319
Views:
70
>>I am creating some text boxes on the fly in a form Init. I can set the control sorce to a field. I can set the control source of an existing text box to the memvar but get a message "Data source for this object must be a variable reference". Anyone got any ideas?
>
>If you create a memvar in Init(), it won't be viewed outside.
>
>You need to create a form property and you will be able to see it.


Another tip I got (from the UT!) on doing this is to create a cursor, say in the Init() of the form, to hold your variables. The contents of the cursor are available from all methods of the form. Don't forget to destroy the cursor.
Tina Robichaux
Interland, Inc.
www.interland.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform