Apparently once you have made and array of objects, you cannot delete a member using ARRAY DELETE.
This workaround seems to work, but I would appreciate any observations....
This workaround seems to work, but I would appreciate any observations....
Code:
'-------------------------------------------------------------------------------- ' delete the lx'th object from the global array gBX and shuffle the array down, redim to remove topmost member sub DeleteObject (lx as long) local i, n as long n = ubound(gBX) gBX(lx) = nothing for i = lx to n -1 gBX(i) = gBX(i + 1) next gBX(n) = nothing if n > 0 then redim preserve gBX(0 to n-1) as global ICtlBox else erase gBX() end if end sub
Comment