Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using A Buffer File
Message
From
07/12/2001 14:22:18
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
To
07/12/2001 14:11:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00590334
Message ID:
00591366
Views:
26
Hi Claudio,
The code I tried was pretty much what you have listed, I tried it both ways, I'm assuming that your click method is from a command button. In my application the method attached to the button did not recognize the memory variable m.??? . By the way, if you declared the memvar in the load method, why do you have to do it again in the init method? Does the scope of the variable change if you declare it in both methods? I will try the code again this evening.
>Hi Carmen;
>
>> I tried the code as you suggested, in the load method and the init method, the m.fieldxx variable showed up, but when I tried it in another method, for example, the click event of a command button, the variable was not known.
>
>I have made this test to see if I am missing something here:
>
>
procedure thisform.load
>sele clients
>go top
>scatter memvar memo
>endproc
>
>
procure thisform.init
>sele clients
>go top
>scatter memvar memo
>thisform.refresh
>endproc
>
>
procedure thisform.click
>wait window "the value of the field is "+m.razaosoc nowait
>endproc
>
>It works great, with no problem !!
>
> ..Or for other option we have it:
>
>
procedure thisform.click
>wait window "the value of the field is "+thisform.text1.value nowait
>endproc
>
>
>CLAUDIO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform