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;
 
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