Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String Conversion
Message
De
17/06/1999 11:08:54
 
 
À
17/06/1999 10:47:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00230888
Message ID:
00230925
Vues:
27
If you are writting a generic routine or something, and not sure if you are character or numeric, then you could do something like this:

lcSearch_value = alltrim(padr(txtbox.value, 99))

padr will make most data types char

>The content of the control is already in character format, unless it's bound to a different type control source or have a different type assigned in the Value property. Just use TxtBox.Value to do your search.
>
>>When the user enters an alphanumeric string into the txtbox I want to be able to
>>take this value and convert it to a character string for searching
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform