You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

BOOL fOK;
int  iSession;
int  iRecords;
 
fOK = LceSetSelectOptions(iSession, "*BLOCKBYRRN");
fOK = LceRequestSelectWhere(iSession, "EMPNO,SURNAME,SALARY","PSLMST", 
"","(SALARY *GT 50000) AND (SALARY *LT 100000)",FALSE);
 
fOK = LceReceiveSelect(iSession, "PSLMST");
fOK = LceGetRecordCount(iSession, "PSLMST", &iRecords);
for (iCount=0; iCount < iRecords; i++)
{
        fOK = LceGetSelect(iSession, "PSLMST", iCount, "EMPNO,SURNAME,SALARY");
}

  • No labels