Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving code from de.beforeopentables to form.load
Message
De
10/02/1999 19:30:27
 
 
À
10/02/1999 19:21:02
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00186197
Message ID:
00186319
Vues:
22
>Objects you create from a form class are forms. You've got the basic idea that a form class you've made in the class designer does not have a DE, right? It just doesn't. The forms that "automatically" have DEs are designed in the form designer.
>
>If you CREATEOBJECT() a form from your form class then you can add a dataenvironment that you've created programmatically. I think you'll first need to add a dataenvironment property to the form class. IOW, you can't addobject it.

OK, I think I've got a handle on that. I'll look at creating a DE programmatically.


>
>Or you can create a new form in the form designer based on your form class and then you'll have a visual DE that you can manipulate.
>
>Does that make sense?

If you mean CREATE FORM with the setting changed in Tools/Options/Forms/Template classes, then OK. Otherwise, I'm not sure what you mean. I just add new classes based on my main form class to the VCX.

MODIFY CLASS newformclass OF myvcx AS mybaseformclass


>
>>I create objects from my class, and it looks like a form, smells like a form, but it's not really a form? It shows up in the Forms collection, like a form does, but it doesn't have a DE. Just for my (future) information, is there a way to give it a DE?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform