Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which comes first
Message
 
 
To
26/01/2004 12:12:31
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00870624
Message ID:
00870683
Views:
10
Joel,

> store a value to a memvar and use trhat memvar as teh control source for a text box.

Instead of using a memvar, use a form property instead. From the form menu, Add Property and use a meaningful name. Then in the Load you can:

thisform.YourPropertyNameGoesHere = table.field

on the textbox set its DataSource to thisform.YourPropertyNameGoesHere on the property sheet.

This will keep your form much better encapsulated than by using a memvar which would need to be declared public in your load method or created as a private by the code that calls your form.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform