Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if function exists?
Message
 
 
À
27/05/2021 12:16:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01680784
Message ID:
01680787
Vues:
40
>>Hi,
>>
>>I have a function GetGlobal(2) in my application that shows the name of the DATA folder. But some code runs before this function is defined. And in this cases, I need to use the default application folder.
>>How do I - in code - check if such a function yet exists?
>>
>>UPDATE: I don't want to use TRY/CATCH if possible.
>
>?type("blabla()")
>
>returns "U".

Thank you. This works.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform