Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore Design Flaw Heads-UP!
Message
De
09/07/1999 13:46:10
 
 
À
09/07/1999 08:03:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00238826
Message ID:
00239531
Vues:
26
>While I'm here, I think that you are also mistaken about the VARTYPE() function, which you describe as performing exactly as documented. Looking that one up I find the last sentence to say that it returns "U" if you specify a variable that doesn't exist. Can you blame anyone for assuming that an object would also be considered a 'variable'. No where does the Help warn the user that it can/will give an error under specific conditions, while the statement cited certainly leads one to believe that "U" is the worst possible outcome to be expected.

It does "work" when passing an object. This was the (IMHO, special) provision made after the initial function was introduced and it did not handle unknown variables. What still causes an error is checking a property in an unknown object.

I explained my opinion ti tis fullest in the post you are referring to, and I won't beat the horse now, but I will simply restate: If you are getting an error with VARTYPE, then you are using it for something it was not designed for.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform