how to delete a dynamic togglebox? please help me...

seductive

Member
FOR EACH xxx NO-LOCK:
ctr = ctr + 1.
CREATE TOGGLE-BOX t1[ctr]
ASSIGN ROW = ctr + 1
COLUMN = 3
FRAME = FRAME frm:HANDLE
LABEL = xxx.yyy
SENSITIVE = TRUE
WIDTH = 75
VISIBLE = TRUE
SENSITIVE = true.
total_tb = ctr.
END.

my question is how to delete dynamic toggle box??
i dont have any idea..
please help me..
thanks..
 

jongpau

Member
Try something like this:
Code:
do ctr = 1 to total_tb:
  if valid-handle(t1[ctr]) then delete object t1[ctr].
end.
FOR EACH xxx NO-LOCK:
ctr = ctr + 1.
CREATE TOGGLE-BOX t1[ctr]
ASSIGN ROW = ctr + 1
COLUMN = 3
FRAME = FRAME frm:HANDLE
LABEL = xxx.yyy
SENSITIVE = TRUE
WIDTH = 75
VISIBLE = TRUE
SENSITIVE = true.
total_tb = ctr.
END.

my question is how to delete dynamic toggle box??
i dont have any idea..
please help me..
thanks..
 
Top