Deleting a record is similar to finding one. The key value has to be set with SetFieldValue. In this case, this step is skipped, as it is already set.

     Private Sub cmdDelete_Click()
    
    iRet = LceDelete(iSession, "SKLTAB", "SKILCODE", LceFalse)
    '---------------------------------------------------------
    If iRet = LceTrue Then
        ' refresh list so deleted skill doesn't show
        Call RefreshSkillsList
    End If
    
End Sub
  • No labels