Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
>
Hi all, I'm trying to give my application the ability to hanldle multiple data sets, someone suggested using SETALL(), in the BeforeOpenTables method, or is it an event?...anyway, to set the forms DE to the right database. This works just fine, I was only hoping that there was a way to implement this into my form base class, but there is no DE for a form class, only for an instance of it, so I can't. So I just figured I'd have to put the code in an event that occurs before the BeforeOpenTables, and that I can access from the class designer, Is there a such a method?, I tried with Load and Init, with Load I got a mesage telling me that changes would take effect when the DE is reloades :(, with Init I couldn't even get it to run since, AFIK, form's objects are initiated first, and they need the tables to be loaded, so I got error messages...probably I'll just code it into every form, just wish there was a better way, TIA
When I still used a DE , what I did was to instantiate one programatically in the load event of the form. There is a little utility I wrote called DEExtractor (you might find it here -if not try the VFUG download section)
that creates a class definition in a PRG from a DE designed visually
IAC, when you use this yechnique the load event is the first method to occur when you instantiate a form
Arnon
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