Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking Parameters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01108949
Message ID:
01109036
Vues:
23
Maybe you're right. I'll think about it some more.


>Thinking some more about what you want to, ASSERTs are the way to go. They're designed specifically for developer errors.
>
>>VFP checks parameter types. Try passing an integer for the 1st parameter of SUBSTR().
>>
>>In the case of a COM object I write in VFP, the programmers ARE the users, so I think
>>you would need to check.
>>
>>I'm just trying to be complete. I don't want a COM object I pass to other programmers
>>to crash instead of handling it up front. At the same time, I don't want to overly
>>complicate the code either.
>>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform