Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Hi all!
>
>I have a theoretical question. What are the main differences, between
>running a form with
>myform=CreateObject("form") and
>Do Form myform.
>
>I mean, is there any bug using the first one, because I see it very rarely.
>
>TIA
>
>BB
I use both methods of showing a form. The main data entry or display forms are typically shown via the DO FORM command where small dialog box forms which are modal I typically use the Create/AddObject stuff. The reason for this is in the form designer you can create the DataEnvironment, in a form as a class, you'd have to add the DE via code after it's created and have the DE created somewhere else. That's why I only use Create/AddObject for modal dialog forms, no DE necessary.
Steve Despres
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement