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

Compare with Current View Page History

Version 1 Next »

[ |../../index.htm#lansa/srvgudba_0045.htm]
You are here:

6.8.2 C Example

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
 
[ |../../index.htm#lansa/srvgudba_0045.htm]

  • No labels