Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type problem
Message
De
28/11/2001 13:07:22
 
 
À
28/11/2001 12:52:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00587070
Message ID:
00587082
Vues:
32
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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform