Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy and combining text box values
Message
 
 
À
28/08/2008 12:31:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01342630
Message ID:
01342634
Vues:
8
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform