Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I do this with WITH THISFORM...ENDWITH?
Message
 
 
To
27/12/2000 02:57:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00456855
Message ID:
00457176
Views:
28
>>Even if you do not call that function from withing a WITH/ENDWITH, you can use the .TextBox1.Value in any form method. There is an implicit ThisForm for any .Object that is outside a WITH/ENDWITH. I found that accidently and wondered why my code did not spawn an error.
>
>I was surprised to see this reported, and went to try it. I can't get it to work from a form method, an object method or anything. I tried in both VFP6 and VFP7 and both always yielded the error "not valid outside of WITH/ENDWITH".
>
>I wonder if this functionality depends on some setting?
>
>Can anyone else confirm either mine or Mark's results?

Oops, that was a false memory. That happened in my addactivate method which is called by my baseclass form's Activate. This method call is from within a WITH/ENDWITH. I thought that was somewhat bizarre behaviour at the time and changed it when I found it -- just in case MS decides to fix it in future versions.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform