>Did anyone know how to pass parameter from ADD OBJECT to DEFINE CLASS in VFP ? If it's possible,I can saves lot of DEFINE CLASS statements in my program.
>
>Thanks for any comment in advance
>Arnold
>knaarnd@netvigator.com
From the help file:
cut---
Object.AddObject(cName, cClass [, cOLEClass] [, aInit1, aInit2 ...])
cut---
You can see that you just have to pass your parameters to the
init() of the added object, see help for more infos.
:)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca