Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Tip: How to determine the object name.
Message
De
16/04/1997 04:48:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00028347
Message ID:
00028486
Vues:
34
>> SYS(1272,sys(1270))
>>
>>Now, whenever you have your watch window up, you can see the name of any object you move your mouse over. Now _that's_ useful.
>>
>>Michael G. Emmons
>>VFP Programmer Ordinaire


I've been using SYS(1270) for the last year.

I have ON KEY LABEL F12 oRef = SYS(1270)
and ON KEY LABEL F11 RELEASE oREF


This allows me to put oRef.Name and SYS(1272, oRef) in the debugger and press F12 while pointing to an object to get a handle on it.
In fact I can use oRef.**anything** in the debugger!

This has several advantages.

I don't need to keep pointing at the object with the mouse
I can get at far more than just the hierarchy [sys(1272)]
I can watch properties change while clicking on other controls
I can release the oRef pointer with F11 so forms close


IN fact my foundation form class has this in the release:

IF TYPE("glDebug") != "U"
RELEASE oRef
ENDIF

So that a form which is being debugged will close even if I forgot to press F11 - which I do so often I needed to add this feature!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform