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_0060.htm]
You are here:

6.10.1 VB Example

' set key of record to delete
iRet = LceSetFieldValue(iSession, "EMPNO", EmpNo)
If iRet = LceTrue then 
    ' see if the record can be deleted
    iRet = LceDelete(iSession, "PSLMST", "EMPNO", LceTrue)
    if iRet = LceTrue then 
        ' record can be deleted so delete
        iRet = LceDelete(iSession, "PSLMST", "EMPNO", LceFalse)
    else
        msgBox "Can't delete"
    End if 
End if 
     ' normally you just delete the record. LANSA Open automatically 
     ' will set and display error codes and messages. 
 
[ |../../index.htm#lansa/srvgudba_0060.htm]

  • No labels