![]() | |
#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 inputes into a text box. Do form' Myform.scx' to cUserValue In the form, I have a Text box. 'Text1'. In the unload event of the form, I have the following two lines of code. *form unload() retval=thisform.Tex1.Value Return retval. This does not work. When I look at the trace window, it runs into an error at the line 'retval=thisform.Text1.Value'. For whatever reason the text1.value is not visible at the form unload event. What am I dong wrong? I am ready to tear my hair out. Shah |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
I am doing somethign wrong and I cant put my finger on it. In the valid event of the Text1, I put the code lretval=thisform.text1.value I have a command button that has the following code in its click() event *Command1.Click() Thisform.unload In the unload() property of the form, I have Return lretval It gives me an error. The lretval was created in the valid event of the Text1. It is not visible in the forms unload event. I then added lretval as a form property thinking maybe it is not visible unless it is added as a new form property. It still does not work. |
#6
| |||
| |||
|
|
I am doing somethign wrong and I cant put my finger on it. In the valid event of the Text1, I put the code lretval=thisform.text1.value I have a command button that has the following code in its click() event *Command1.Click() Thisform.unload In the unload() property of the form, I have Return lretval It gives me an error. The lretval was created in the valid event of the Text1. It is not visible in the forms unload event. I then added lretval as a form property thinking maybe it is not visible unless it is added as a new form property. It still does not work. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
The system works and returns the value correctly if I return 'Thisform.lretval' from the unload() property of the form. |
#9
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |