Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help on Help - Name Property
Message
De
23/07/1998 03:26:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00120091
Message ID:
00120343
Vues:
31
Hi David -
I think Lewis Carol would have a field day with the way were working here.
(He refered once to the name of the song, the title of the song and what the song is called - three different things!)
Anyway, "name" clearly means lots of different things here too.
Is the name of the scx the name of the form. No!
When we DO FORM myFormName
we're talking about the name of the scx. Once instantiated the name of the form can be quite different. (For some peculiar reason my forms are named the same as the SCX with an frm in front)
I don't really want to reference a form by name, although I often want to know if a form of a given name is running already (and there could be many). I would like to know if you *can* refer to a form by name.

>
>Inside form methods always use thisform or this. Outside a form you can use the _screen.Forms[] collection or _screen.ActiveForm or your own forms manager object (but hardcoding a reference to an app object or form manager object can come back to hinder you). If one form is talking to another pass references from one to the other do form xyz with thisform this let's xyz easily work with any caller form.
>
>Coding to a specific form object name restricts you too much especially when dealing with multi-instance forms.
>
>>That all makes sense. I was thinking of "forms" at the time. Does that mean we can't or shouldn't refer to a form by name?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform