Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP MEMO field retrieved as GEN field with SQLEXEC?
Message
From
22/02/2002 11:34:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
VFP MEMO field retrieved as GEN field with SQLEXEC?
Miscellaneous
Thread ID:
00623750
Message ID:
00623750
Views:
65
I had trouble displaying content of MEMO field in my edit box (myEditBox.ControlSource=cMyCursor.myMemo gives me ERROR INSTANTIATING OBJECT: my form class will not even open).
After getting clues from many helpful people on this forum, I found out that the MEMO field was retrieved as GEN field in cMyCursor.
I'm using VFP backend, will be converting to SQL SERVER (hopefully), & I'm using SQLEXEC to get cMyCursor:

lcConnStr="DRIVER={Microsoft Visual FoxPro Driver};" + ;
"SourceDB=myDatabase.dbc;SourceType=DBC;UID=;PWD=;"

THIS.lnHandle=SQLSTRINGCONNECT(lcConnStr)

lSuccess=SQLEXEC(THIS.lnHandleERCA,"SELECT * FROM myTable","cMyCursor")
SELECT cMyCursor
BROWSE

In the BROWSE window, myMemo field (of type MEMO) comes up with the word 'GEN' instead of the familiar 'Memo', and hence myEditBox.ControlSource=cMyCursor.myMemo does not work.

How can I use the SQLEXEC to retrieve MEMO field as MEMO from a remote VFP database so that I can display the content of the MEMO field inside myEditBox???

THANK YOU ALL!
Next
Reply
Map
View

Click here to load this message in the networking platform