Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Form Properties
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Using Form Properties
Miscellaneous
Thread ID:
00398897
Message ID:
00398897
Views:
46
Hi.
I have Form Properties declared , at the form level, which hold the name of any temporary Files,Cussors I use during the form.
e.g. ThisForm.File1 ThisForm.File3 etc

When I want to access fields on these forms, I am having difficulty:

I want to say something like:

ThisForm.File1.Myfield (Myfield is a field on the file)

I have tried various things like:
&ThisForm.File1 .Myfield
(ThisForm.File1).Myfield
(ThisForm.File1) .Myfield but none seem to work


I have resorted to following (Which does work)
lcFile1=ThisForm.File1
&lcFile1 .Field1 (Space before the dot)

But by doing this, I need to set up an additional variable each time
Is there any way round this.

regards,

Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform