Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB equivalent to FoxPro's PROGRAM()?
Message
De
29/09/2000 00:13:46
Mike Davis
Per-Se Technologies
Elgin, Illinois, États-Unis
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00421703
Message ID:
00422417
Vues:
7
You can use something like this because it is portable between VBA and VB.

Public DebuggerIsON as boolean

'' Toggle the DebuggerIsON with a command line switch or a menu item.

Public MyFunction(blabla,optional beSilent as False)
const PN "Myfunction"

if not DebuggerIsON then '' Don't use error handler if in dev mode
on error goto myFunction_Err
endif

exit function

myFunction_Err:

DisplayError PN, beSilent '' Display and clear the error(you have to write)

end function

hth
Mike D
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform