Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick way to set a Object ref
Message
 
À
09/05/1999 01:19:42
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00216363
Message ID:
00216544
Vues:
26
>>>which is quickest way to set a object ref ??
>>>
>>>while debugging, sometimes we want to chk properites of an object...
>>>
>>>I'm using VFP 5
>>
>>If you can see the object on the screen, and your command window is active (you have suspended execution), try this:
>>
>>Enter this command, but don't press Enter:
>>lO = sys(1270)
>>
>>Now position your mouse cursor over the object in question, and then press enter.
>>
>>The variable lO will contain a valid object reference to the object on the screen. You can place lO in your watch window to see the properties. You can also change properties from the command prompt.
>>
>>lO.SomeProperty = SomeValue
>>
>>and then continue execution.
>>
>>Peter Robinson
>
>Thanks for the tip... I'll try this..

Hi Vinod,

Just to add to what Peter told you, you can also change the values in the Watch window and have them reflected in the object.

One other note, when you're ready to release the form, set the variable equal to .NULL. Otherwise, the form won't release (dangling object reference).
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform