Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[ Image Removed |../../index.htm#lansa/srvgudba_0060.htm]
You are here:

...

' 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. 
 
[ Image Removed |../../index.htm#lansa/srvgudba_0060.htm]