PDA

View Full Version : Substract an element from an array


Labuzz
08-18-2003, 12:25 AM
I have a string array and I want to substract the last element, how can I do? I have used the size command to get the number of elements in this array. After this I have -- ( decrement) this number to get the last element of my array. Now how can I clear this element from the array? The clear command clear all the array, should I use a loop to rebuild the array?
Any suggestion are welcome.:)

I have just found one workaround based on selection: I can deselect the last element easely and build a new array.

klod
08-18-2003, 09:17 AM
Salut !,

you can use the stringArrayRemove method. Hit the F1 key for more informations :)

Klod

Labuzz
08-18-2003, 09:56 AM
J'ai cherché mais j'avais pas trouvé cette commande:rolleyes:
Merci pour l'info:thumbsup:

CGTalk Moderation
01-15-2006, 09:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.