[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
44
S
10
G
5
Posts: 122
Reputation: 6,557

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
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

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
44
S
10
G
5
Posts: 122
Reputation: 6,557


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, mjj1990 and 9 guests