Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return type of string
Message
 
À
24/05/1997 13:20:56
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00033513
Message ID:
00033744
Vues:
41
> > Do you Know with VFP have any funtion que returns to me the type of > string, if it´s character, numeric, date ... Where is the source of the 'string' that you are referring to? If it's a character string that someone enters, and you want to determine if it's a date, number, etc., then the following may work: m.lcString was entered by the user m.lcType = "U" on error * do case case not empty(ctod(m.lcString)) m.lcType = "D" case isdigit(alltrim(m.lcString)) m.lcType = "N" otherwise m.lcType = "C" endcase If the string comes in as a parameter, then TYPE() will work (as mentioned in the other response). -- -- Paul Russell Software Kinetics Ltd. | Phone: (902) 481-4582 Fax: (902) 468-3679 201 Brownlow Avenue | Office: Paul.Russell@SofKin.ca Dartmouth | "The best evidence that time travel will never be Nova Scotia, Canada | possible is that we have not been invaded by B3B 1W2 | hordes of tourists from the future." - S. Hawking "Use technology because it's appropriate -- except in the case of 'Java' then just use it 'cause it's cool!" - Paul Russell
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform