Mike Yearwood
Toronto, Ontario, Canada
Versions des environnements
>>An object lives in the dasession it was created in. IOW,when you call a method of an object it will be executed in the dasession the object was created in.
>>
>
>I found the cause of my problem. The form that calls the method of the application class has private datasession. So no matter what other class method it calls, the tables opened in that other class are not open in the calling form.
>
>This creates a problem as I now cannot move my function that opens a table (based on the parameter) to a method of the application class. Too bad. Back to the original design.
Just FYI, but a function call is faster than a method call. A method to open a file does not belong in an application object, but in a data object instantiated by the form(s) (or other clients) that need that data.
Précédent
Suivant
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