Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't set ControlSource to a memvar with AddObject in In
Message
 
To
14/01/1997 11:22:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00017299
Message ID:
00017404
Views:
64
>
> >>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,

Ahem. Not in the Init, in the Load, otherwise you will not be able to
use it as a controlsource.

to hold your variables. The contents of the
> cursor are available from all methods of the form. Don't forget to destroy
> the cursor.


If you use private datasession, you do not even have to care about that!

Thanks again for your WF routines, they work great!

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Reply
Map
View

Click here to load this message in the networking platform