Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return type of string
Message
De
28/05/1997 11:16:28
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:
00033846
Vues:
45
>>
>> 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 and Michel

thanks very much
Anderson Girardi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform