I have a program which retrieves record from the SQL table. This is the program:
STORE SQLCONNECT('dbcsqllibrary', 'sa') TO lnConnHandle
IF lnConnHandle <= 0
MESSAGEBOX('Cannot make connection', 16, 'SQL Connect Error')
ELSE
MESSAGEBOX('Connection made', 48, 'SQL Connect Message')
lcSQLString1 = "Select libauthrid from tblmstrlibauthor where libauthrid = " + lcAuthorID
lcSQLString2 = " and libauthorfname = " + "'"+ lcAuthorFName + "'"
lcSQLString3 = " and libauthormname = " + "'"+ lcAuthorMName + "'"
lcSQLString4 = " and libauthorlname = " + "'"+ lcAuthorLName + "'"
lcSQLString = lcSQLString1 + lcSQLString2 + lcSQLString3 + lcSQLString4
SQLSETPROP(lnConnHandle,"BatchMode",.T.)
lnResult = SQLEXEC(lnConnHandle,lcSQLString,"MyAuthorCursor"
ENDIF
SQLDISCONNECT(lnConnHandle)
***********
From this I would like to browse the sets of records retrieved thru this SQLEXEC() command. But I cannot. How would I be able to view the records in MYAuthorCursor?
STORE SQLCONNECT('dbcsqllibrary', 'sa') TO lnConnHandle
IF lnConnHandle <= 0
MESSAGEBOX('Cannot make connection', 16, 'SQL Connect Error')
ELSE
MESSAGEBOX('Connection made', 48, 'SQL Connect Message')
lcSQLString1 = "Select libauthrid from tblmstrlibauthor where libauthrid = " + lcAuthorID
lcSQLString2 = " and libauthorfname = " + "'"+ lcAuthorFName + "'"
lcSQLString3 = " and libauthormname = " + "'"+ lcAuthorMName + "'"
lcSQLString4 = " and libauthorlname = " + "'"+ lcAuthorLName + "'"
lcSQLString = lcSQLString1 + lcSQLString2 + lcSQLString3 + lcSQLString4
SQLSETPROP(lnConnHandle,"BatchMode",.T.)
lnResult = SQLEXEC(lnConnHandle,lcSQLString,"MyAuthorCursor"
ENDIF
SQLDISCONNECT(lnConnHandle)
***********
From this I would like to browse the sets of records retrieved thru this SQLEXEC() command. But I cannot. How would I be able to view the records in MYAuthorCursor?