| DiacuPaul a întrebat:

Vreau sa adaug date intr-un tabel. Si cand apas butonu sa le adaug, imi apare eroare: "Operator/operand type mismatch".
Campul "ida" din tabel, e de tip numeric, de asta nu merge. Ce ar trebui sa fac? Codul e acesta:
USE angajati
LOCATE FOR thisform.Text1.Value = ida
IF FOUND()
MESSAGEBOangry"Exista deja un angajat cu acest id.")
ELSE
GO BOTTOM
APPEND BLANK
replace angajati.ida WITH thisform.Text1.Value,angajati.nume with thisform.Text2.Value,angajati.prenume with thisform.Text3.Value,angajati.sex with thisform.Text4.Value,angajati.varsta with thisform.Text5.Value,angajati.telefon_m with thisform.Text6.Value,angajati.telefon_f with thisform.Text7.Value,angajati.adresa with thisform.Text8.Value
MESSAGEBOangry"Angajatul a fost adaugat")
ENDIF
thisform.Refresh