Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using A Buffer File
Message
From
07/12/2001 17:19:00
 
 
To
07/12/2001 14:11:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00590334
Message ID:
00591513
Views:
28
Claudio,

This code does not work for me (VFP6). The variables go out of scope, and in the click() method an error occurs.

Now, if I do a "scatter memvar memo" outside of the form, before running it, it works, but then I've got private variables (in the best case, public variables in the worst case) everywhere, and the potential for all sorts of variable conflicts.

>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
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform