omarswan
Jan 21st, 2000, 02:46 AM
If I have 10 elements in an array, how can I delete element from slot number 5 and move the element that was in slot number 6 to slot number 5 and then leave slot number 10 empty.
Example:Before
---------------
Slots--Element
--[1]---[Name1]
--[2]---[Name2]
--[3]---[Name3]
--[4]---[Name4]
--[5]---[Name5]
--[6]---[Name6]
--[7]---[Name7]
--[8]---[Name8]
--[9]---[Name9]
-[10]---[Name10]
Example:After - Remove Element 5
----------------------------------
Slots--Element
--[1]---[Name1]
--[2]---[Name2]
--[3]---[Name3]
--[4]---[Name4]
--[5]---[Name5] - previously Element-6
--[6]---[Name6] - previously Element-7
--[7]---[Name7] - previously Element-8
--[8]---[Name8] - previously Element-9
--[9]---[Name9] - previously Element-10
-[10]---[Empty]
------------------
OmarSwan
omarswan@yahoo.com
http://www.omarswan.cjb.net
To God Be The Glory
Example:Before
---------------
Slots--Element
--[1]---[Name1]
--[2]---[Name2]
--[3]---[Name3]
--[4]---[Name4]
--[5]---[Name5]
--[6]---[Name6]
--[7]---[Name7]
--[8]---[Name8]
--[9]---[Name9]
-[10]---[Name10]
Example:After - Remove Element 5
----------------------------------
Slots--Element
--[1]---[Name1]
--[2]---[Name2]
--[3]---[Name3]
--[4]---[Name4]
--[5]---[Name5] - previously Element-6
--[6]---[Name6] - previously Element-7
--[7]---[Name7] - previously Element-8
--[8]---[Name8] - previously Element-9
--[9]---[Name9] - previously Element-10
-[10]---[Empty]
------------------
OmarSwan
omarswan@yahoo.com
http://www.omarswan.cjb.net
To God Be The Glory