Did you load the var as a "Public" var in the inti?
i.e.
public m.razaosoc
and not release it until the "thisform.release"
Just a guess
>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