Hi,
The last browse below is failing with a "No table is open in the current work area". I'm changing the SqlCmd statement and reissuing the cursorfill() method and there is no 2nd cursor...
What am I doing wrong?
Using VFP9sp2 and SQL Server 2012,
Thanks, Stanley
The last browse below is failing with a "No table is open in the current work area". I'm changing the SqlCmd statement and reissuing the cursorfill() method and there is no 2nd cursor...
Code:
set
SET CLASSLIB TO '............\Classes\_Data_Deedroom.vcx'
lnHandle = Sqlstringconnect('DRIVER=SQL Server;SERVER=abc;UID=sa;PWD=password6;DATABASE=MyDB')
o=CREATEOBJECT('_ca_partyname')
o.UseCursorSchema = .F.
o.SelectCmd ="Select * from PartyName where party_name like 'Comb%'"
o.DataSourceType = 'ODBC'
o.DataSource = lnHandle
o.cursorfill()
browse * This works...
o.CursorSchema = 'PAGE_TYPE V(40),PARTY_NAME V(52)'
o.SelectCmd ="Select page_type, party_name from PartyName where party_name like 'Lewi%'"
o.cursorfill()
BROWSE * and this does not work...
What am I doing wrong?
Using VFP9sp2 and SQL Server 2012,
Thanks, Stanley