Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox not retaining entered data
Message
From
01/07/2005 10:32:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/07/2005 10:27:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP3
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01028135
Message ID:
01028170
Views:
13
>I'm sorry, the entered text doesn't disappear from the form, however when I click on a button and the underlying code wants to use the 'value' from the textbox, it's no longer available.

No longer available - do you get an error message? Or an empty or null value?

Assuming you renamed your TextBox as TxtClientId (a user option where the user types in the client ID - say, for a report), and that it is on the top level (not in a Page or Container, for example), your code, in the CommandButton, might look something like this:
MessageBox("Verifying Value: " + trans(ThisForm.TxtClientId.Value))
The trans() is there just in case the value is not of type character. Otherwise it is not required.


> When I create a temp form via the wizard and use a textbox & command button, when clicking the button, the textbox value is available. What's the difference?
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform