FoxLearner
Programmer
Hi There!
I got a problem with the Val() function. I am evaluating a colum in one of the cursors. I need to check if the content is numeric or contains Alpha characters. I am using the val() to evaluate it. It is some thing like this..
If val(cFieldvalue) <> 0
Return .T.
EndIf
But it is not evaluating correctly. For Ex. When cFieldvalue = “31-October-2002 8:20 User-Admin”
Val(cFieldvalue) is evaluating to 31.00 and it is returning .T. which is false.
Is there any other solution/funtion to solve this? Please respond ASAP.
Thanks
FoxLearner
I got a problem with the Val() function. I am evaluating a colum in one of the cursors. I need to check if the content is numeric or contains Alpha characters. I am using the val() to evaluate it. It is some thing like this..
If val(cFieldvalue) <> 0
Return .T.
EndIf
But it is not evaluating correctly. For Ex. When cFieldvalue = “31-October-2002 8:20 User-Admin”
Val(cFieldvalue) is evaluating to 31.00 and it is returning .T. which is false.
Is there any other solution/funtion to solve this? Please respond ASAP.
Thanks
FoxLearner