General information
Category:
Coding, syntax & commands
Of course, as soon as I post I figure out my problem:
lcScanGreater = LEFT(tcOrder, LEN(tcOrder - 1))
Should be
lcScanGreater = LEFT(tcOrder, LEN(tcOrder)-1)
i know type(12345) should return N, I am still puzzled why type('12345') would return N
>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!
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only