>
> 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