Hi Charlie,
Thank you for the info - I guess one of the errors - "Cannot access selected table" was caused by SET DATASESSION TO...as you said.
I tried your code.
I needed to do some small corrections like DEFINE CLASS, and ENDDEFINE at the end of the first DEFINE, also seek() had the alias and order parameters switched around, and added a return to the callme() procedure.
I created a form CallMeTest, added a custom property CallMeObject and initialized the object in the init of the form:
this.CallMeObject = NEWOBJECT("Example", "CallMe.prg")
On the form I have textboxes for the employee names, and in the refresh of textboxex I have:
this.value = thisform.CallMeObject.callme(thisform.txtEmpID.value)
All works fine, as I navigate through the “base file” (file that has employee IDs). One problem though:
After I exit the form, something like a ghost form object is left “alive” – I can see it in the Locals window in Debugger – it has no properties or methods. I guess the thisform.release that executes on the Exit button click() fails because some other objects still exist at the time??
Thank you,
dz
Doru