Ramani,
"The idea is to create the object from with the function call and then return a reference to the object.."
oForm=myClass()
oForm.Show
RELEASE oForm
Yes, that works....just was trying to let the class defined with the
DEFINE CLASS myForm AS FORM
PROCEDURE init
**...
Mike,
"One alternative would be to put the code into a PRG, and to build it into an APP file. Your main application can then DO the APP file, which will get all the function or class definitions into memory."
That would probably work ---even though I would have to DO...
Hi Ramani,
We actually are not using the stored procedures for trigger logic, just a bunch of functions that are common througout the application. They need to be fast and we find that they are, since the stored procedures are loaded and kept in memory (if my understanding is correct) and do...
Hi Mike,
Thanks for quick reply.
Trying to explore the possibility of replacing the classes at different sites with different versions without having to replace the .exes that use them.
Our main .exe actually use the RUN command to fire up our modules so they are separately executing...
Hi All,
If you have a custom class defined in a stored procedure in an open database, is there a way to force CREATEOBJECT or NEWOBJECT to find the class.
SP code:
DEFINE CLASS myclass CUSTOM
PROCEDURE init
LPARAMETERS p1,p2
..
ENDDEFINE
----------------
Neither...
Just out of curiosity, have you tried using INSERT with an explicit list of destination fields and a VALUES clause for the source fields.
I know its more coding, but then the memvars are avoided altogether and I believe there is less setup work as VFP does not have to convert all the source...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.