Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type problem
Message
From
28/11/2001 12:52:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Type problem
Miscellaneous
Thread ID:
00587070
Message ID:
00587070
Views:
36
This may be an easy one...(I must be overlooking something very simple)

I have a table with a field called 'torder'. Its a character field, width of 5. The values in it will be numeric (but still be character type). So '2 ', '21 ', '211 ', '212 ', '22 ', '221 ', '222 ' are some typical values.

I've been getting all sorts of "Function, argument, value, type or count is invalid errors". Which usually means you are trying to do a charactor only function on the variable or field that is numeric. I got puzzled so I did a messagebox(type(torder)) and it returned a N! So I did a lcOrder = alltrim(str(torder)) and I got another "function,...is invalid" error. So it seems that the field is both numeric and charactor at the same time?

I am sure there is something small I've overlooked but that will be obvious when someone posts an answer, but I've been stuck on this for over an hour now...

Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform