hi everybody.... I have these excerpts code in my program which is already running.... everything is running, except that when i click a grid on the form it says "VARIABLE H not found" i've been going the codes for some quite some time... almost a day to be exact, but i cannot solve the problem... may i ask help.... thanks....
PROCEDURE oButton2.Click
h = ALLTRIM(MyDataB.idnum)
SELECT 2
SEEK H
IF thisform.text41.value = 1
for i=1 to 10
m.deyta = "P"+transform(m.i)
IF &deyta=0
replace &deyta with thisform.text30.value
MESSAGEBOX("Chereret!",0,"Cheret")
EXIT
ENDIF
IF i = 10
MESSAGEBOX("No more Field to record !",0,"Cheret")
ENDIF
NEXT
thisform.oGrid1.refresh()
thisform.oGrid2.refresh()
thisform.oGrid3.refresh()
thisform.oGrid4.refresh()
thisform.oGrid5.refresh()
ENDIF
PROCEDURE oButton2.Click
h = ALLTRIM(MyDataB.idnum)
SELECT 2
SEEK H
IF thisform.text41.value = 1
for i=1 to 10
m.deyta = "P"+transform(m.i)
IF &deyta=0
replace &deyta with thisform.text30.value
MESSAGEBOX("Chereret!",0,"Cheret")
EXIT
ENDIF
IF i = 10
MESSAGEBOX("No more Field to record !",0,"Cheret")
ENDIF
NEXT
thisform.oGrid1.refresh()
thisform.oGrid2.refresh()
thisform.oGrid3.refresh()
thisform.oGrid4.refresh()
thisform.oGrid5.refresh()
ENDIF