>I used to define functions and procedures in my SCAFFOLD.PRG in the pre-VFP5 days. If I were to take oo programming seriously, what would be the proper way to deal with such things nowadays? What are the advantages and pitfalls?
>
>TIA
Nick, Cetin and James have all given good replies. If you're using Private Datasessions and have a global object for your functions, I've found that if you have any that operate on tables or views, you'll need to instantiate it within the specific private datasession. This means you can't create it in your "main" and have it always accessible but you can drop it on your form.
But here's another thought.....and I'm wondering if anyone else has done this;
This is for private datasessions and because the database needs a separate open instance for each one, you could simply put your functions in the database as stored procedures guaranteeing that they would be accessible in the proper datasession. Anyone ever put generic functions in as stored procedures?
Steve
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