Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get object name
Message
De
21/07/2006 09:47:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/07/2006 09:44:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01138397
Message ID:
01138416
Vues:
13
I don't see how that would be helpfull but anyway you could loop _vfp.objects collection and compare it to thisform with compobj.
If you had just one public object (oApp), that could store much more information for you.
PS: You could also do this:

goSupervisor = NEWOBJECT('frmSupervisor', 'supervisor.vcx')
goSupervisor.Name = "goSupervisor"

Cetin

>I need to run this in an error handler:
>LIST OBJECTS LIKE ObjName TO FILE (lcTempFile) NOCONSOLE
>So I need to know what is a name of a form object.
>
>>>In my main program I am opening my main form:
>>>goSupervisor = NEWOBJECT('frmSupervisor', 'supervisor.vcx')
>>>
>>>Is it possible to get a name of an object ("goSupervisor") inside of the form?
>>>
>>>Thanks
>>
>>Mark,
>>What do you mean? goSupervisor is a reference. Like thisform inside the form instance you can use it to refer to a control int it. ie:
>>
>>for ix=1 to goSupervisor.ControlCount
>>? goSupervisor.controls(m.ix).Name
>>endfor
>>
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform