Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does UDF exist?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01516054
Message ID:
01516156
Vues:
52
>>>>>Thank you, Vladimir. Your approach will work.
>>>>
>>>>The messagebox has the wrong message, but I also don't see a better way. Probably search inside the project files?
>>>
>>>The approach Vladimir suggested works.
>>
>>Yes, but this is rather expensive approach. Who knows what do you have in the function? What if you completely change environment settings or do something else of this sort (say, zap bunch of important tables)?
>
>The function performs a rather simple task. And if the function does not exist, it won't cause an error down stream.

If you need to invoke this function anyway, then wrap it in the try/catch. But if you just want to make sure that function exists (for whatever reason), but don't want to invoke it, then this approach is problematic.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform