Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB equivalent to FoxPro's PROGRAM()?
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00421703
Message ID:
00429500
Vues:
13
Hi Jim,

I saw a little tip on adding Profiling info to VB code at http://www.planet-source-code.com/xq/ASP/txtCodeId.108/lngWId.1/qx/vb/scripts/ShowCode.htm

The basic idea is to add a uniquie comment to every sub or function in your code (like '*DBG* "Some comment or sub name"). Then do a search and replace on the project with Debug.Print for '*DBG*. You'll have your profiling working, then just switch it back when you're done.

SWAG, AFA getting them in existing code, I believe all the vb code is text right, just drop into VFP or VB and write little progy to add it to all of your VB code. Just look for all the Public Sub, Public Function, etc... and grab the name, then add it to the end of that line.

hth


>I can't just copy and paste Debug.Print "MyMethod" anywhere I want. I would have to actually type in the text for "MyMethod". Definately slows down the process when you just want to see real quick what order things are firing in.
>
>
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform