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

Click here to load this message in the networking platform