![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi - I am working on migrating a FPW 2.6 application to VFp. I am very new at VFP. I am trying to create a form that would return a value that the user inputs into a text box. Myform window type property is set to Modal. Do form' Myform.scx' to cUserValue In the form, I have a Text box. 'Text1'. The user enters a value into this text box. In the valid event of the text box I have :Text1.valid: lretval=This.value In the unload event of the form, I have the following line of code. *form unload() Return lretval. This does not work. When I look at the trace window, it runs into an error at the line 'Return lretval For whatever reason the 'lretval' is not visible at the form unload() event. What am I dong wrong? I am ready to tear my hair out. The only way I could make this work is by declaring lretavl as a Public variable in the 'Init' event of the form. But I am sure that is not the right way of doing this. Can someone explain to em what am I doing wrong.? Thanks in advance. Shah |
![]() |
| Thread Tools | |
| Display Modes | |
| |