I have initialised sms table alias tsulat in "shared" mode, however in my delete procedure every time i issue pack, it always say file must be exclusive, i tried putting set exclusive on, but still it says it must be exclusive... please help... Thanks and God Bless...
PROCEDURE CmdDelete.Click()
LOCAL lclname as Character
SELECT TSULAT
lclname = CsrDemo.idnum
SEEK lclname
IF FOUND()
FLOCK()
DELETE
PACK
UNLOCK IN TSULAT
ENDIF
SELECT idnum, ALLTRIM(sname) + ", " + ALLTRIM(fname) FROM SMS ORDER BY sname, fname INTO CURSOR csrdemo READWRITE
This.Parent.text1.value = " "
This.Parent.text2.value = " "
this.Parent.text3.value = " "
this.Parent.text4.value = " "
This.Parent.text5.value = " "
This.Parent.text6.value = " "
this.Parent.CboIdnum.value = " "
MESSAGEBOX("Record deleted from to Main Table",0+64,"Student's Record!")
ENDPROC
PROCEDURE CmdDelete.Click()
LOCAL lclname as Character
SELECT TSULAT
lclname = CsrDemo.idnum
SEEK lclname
IF FOUND()
FLOCK()
DELETE
PACK
UNLOCK IN TSULAT
ENDIF
SELECT idnum, ALLTRIM(sname) + ", " + ALLTRIM(fname) FROM SMS ORDER BY sname, fname INTO CURSOR csrdemo READWRITE
This.Parent.text1.value = " "
This.Parent.text2.value = " "
this.Parent.text3.value = " "
this.Parent.text4.value = " "
This.Parent.text5.value = " "
This.Parent.text6.value = " "
this.Parent.CboIdnum.value = " "
MESSAGEBOX("Record deleted from to Main Table",0+64,"Student's Record!")
ENDPROC