Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DEBUGOUT WordWrap Tip
Message
De
12/02/2000 16:23:28
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
DEBUGOUT WordWrap Tip
Divers
Thread ID:
00331386
Message ID:
00331386
Vues:
59
I use the DEBUGOUT Window a lot to help in debugging (and I do a lot of that <s>). For example:
TimeIt = SECONDS()
oJob = .oMotherJob.Add(m.ClassName, m.ClassLib)
DEBUGOUT STR(SECONDS() - m.TimeIt,8,4) + " to create " + m.ClassName ;
+ "... more text here"

The Debug Output is in its own window in the FoxPro Frame. I stretch it out wide to accept long lines of text, but at times, it still wordwraps the text. This makes it inconvenient to study and compare.
I worked quite a while to try and understand why it works the way it does. Finally, I realized it is tied to the width of the active form when the DEBUGOUT window was created. So if you ACTIVATE WINDOW "DEBUG OUTPUT" from the Command Window, the output won't be wrapped. If you wait until a form is active, the output will be wrapped so as to fit in the form. Why it does this I don't know, but at least now I can control wordwrap in the Output window.
Charlie
Répondre
Fil
Voir

Click here to load this message in the networking platform