BOOL fOK;
int  iSession;

fOK = LceSetFieldValue(iSession, "EMPNO", "12345");
fOK = LceSetFieldValue(iSession, "DEPT", "SALES");
 
fOK = LceCheckFor(iSession, "PSLFIL", "EMPNO, DEPT");

Pseudocode Example

     strName = "PSLFIL"
strKeys =  "EMPNO, DEPT"
IF NOT LceSetFieldValue(iSession, "EMPNO", "12345")
         / return error /
ENDIF
IF NOT LceSetFieldValue(iSession, "DEPT", "SALES")
         / return error /
ENDIF
IF LceCheckFor(iSession, strName, strKeys)
         / record was found /
ELSE
         / no record found /
ENDIF
  • No labels