I'm not real familiar with Tlist so im wondering if thats the best way to do this.
Anyway I have a listbox which is filled with names of various model files, I want to remove from this list and move anything higher up in the list down to take the place of the removed number so for example.
pseudo code.
This is what I am using right now:
again im sure Tlist is probebly the best way to handle this variable but again im unfamiliar with it.
Anyway I have a listbox which is filled with names of various model files, I want to remove from this list and move anything higher up in the list down to take the place of the removed number so for example.
pseudo code.
a[100] if delete selectedgadgetitem() remove selected item from list move all items above select item down endif
This is what I am using right now:
selectedprops:Int = SelectedGadgetItem(proplist) RemoveGadgetItem(proplist,selectedprops) FreeEntity props_Entity[selectedprops + 1] selectedprops = selectedprops + 1 For i = selectedprops To PropsCount DebugLog "removing: " + selectedprops DebugLog "Copying: " + i props_Entity[i] = CopyMesh(props_Entity[i+1]) propsX[i] = propsX[i+1] propsY[i] = propsY[i+1] propsZ[i] = propsZ[i+1] Next PropsCount = PropsCount -1
again im sure Tlist is probebly the best way to handle this variable but again im unfamiliar with it.