Hi,
Someone pointed me to the ca9builder wizard and I was able to create a class for each table. I was also able to use them by adding them to a form's DE, and they close when the form closes. They should do that as my forms use private datasessions and cursors and DEs are scoped to the active datasession.
1. How do I use them in a .prg? I know I can copy its code, but there must be a better way of somehow instantiating it?
2. When used in a .prg, do I need to also have a DE?
3. How would I create a cursor that lives as long as the app lives? I would suspect maybe creating a global object with createobject() or newobject() inside the main.prg... Is this correct?
4. Would a form with a private datasession and a empty DE have access to the global cursor?
A code snippet example would be most helpful.
Thanks,
Stanley
Someone pointed me to the ca9builder wizard and I was able to create a class for each table. I was also able to use them by adding them to a form's DE, and they close when the form closes. They should do that as my forms use private datasessions and cursors and DEs are scoped to the active datasession.
1. How do I use them in a .prg? I know I can copy its code, but there must be a better way of somehow instantiating it?
2. When used in a .prg, do I need to also have a DE?
3. How would I create a cursor that lives as long as the app lives? I would suspect maybe creating a global object with createobject() or newobject() inside the main.prg... Is this correct?
4. Would a form with a private datasession and a empty DE have access to the global cursor?
A code snippet example would be most helpful.
Thanks,
Stanley