Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form name
Message
De
29/04/2007 11:55:14
 
 
À
27/04/2007 20:20:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01220708
Message ID:
01220905
Vues:
18
create a form scx, go to properties, name it ernie. save it to sesamestreet.scx.

Do form sesamestreet
? sesamestreet.name

Now modify the form, save as class, set name to bert, save to classlib sesamestreet.vcx. open properties, see name property: It's bert and its read only.

So the name property of an scx is equal to the classname of a class, but as an scx normally just is a single form, while a vcx can have many forms, the scx name property does not matter really. You can even have many forms with the same name at runtime. Only if you have a formset, you can't add two forms with the same name (like you can't have two textboxes named text1 on a form (as long as you don't seperate these by another container or pageframe or grid). A Formset is the only place, where a form name makes a difference. But as with control (base) classes in a formset equal forms will get numbered (form1, form2 ....).

So you don't need to worry, but I'd also recommend to make names unique, even better in sync with filenames, otherwise it can be irritating.

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform