[How to] Delete array index

Get help using Construct 2

Post » Sat Aug 11, 2012 1:14 am

Hey guys how are you?
I need to delete a key from an array but can not find a function to do so. I read the manual and there speaks of IndexOf and LastIndexOf but this function does not exist. The general idea is: Given a certain condition in the event. delete a key from the array into action. Are you clear my doubt?

Thanx!
B
47
S
12
G
5
Posts: 124
Reputation: 6,851

Post » Sat Aug 11, 2012 1:50 am

Arrays don't have keys, dictionary do.
In arrays you work with index.

A possible action is "Array: Delete", giving the index you want to wipe.

New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
294
S
117
G
96
Posts: 7,313
Reputation: 71,094

Post » Sat Aug 11, 2012 2:26 am

Thanks for your quick response! I'm reading in the manual dictionary. Possibly my solution, I try to dictionary and tell you how I was. Wenaptic2012-08-11 02:26:51
B
47
S
12
G
5
Posts: 124
Reputation: 6,851


Return to How do I....?

Who is online

Users browsing this forum: AndreasR, dop2000, Matthew de and 17 guests