Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy and combining text box values
Message
 
 
To
28/08/2008 12:31:19
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01342630
Message ID:
01342634
Views:
7
>Is it possible to combine the values of two text boxes and place the values in a third?
>
>such as: text1 = 444 text2=555 text3 is filled in to be 444555
>
>The code would probably be similar to this? thisform.text3.value = thisform.text1.value + thisform.text2.value
>
>Thanks

Yes, exactly like that. You can alltrim just in case and this assumes that values in the textboxes are of character type.

Just to be safe, you can also do
thisform.text3.value  =  alltrim(transform(thisform.text1.value)) + alltrim(transform(thisform.text2.value))
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform