Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSession troubles.
Message
 
To
29/12/2000 20:59:50
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00457954
Message ID:
00458636
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform