Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / array index valid() Always returns 1

Author
Message
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 18th Oct 2005 17:34
Hello.

When you use the array index valid(), no matter what number you pass to the function, it will always return 1.



-This...is my boomstick!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th Oct 2005 22:26
Nope, the function works perfectly correctly. It's your understanding of it that isn't quite right.

I've got a few examples that use it in the codebase - here's the one that treats an array as a list : http://www.thegamecreators.com/?m=codebase_view_code&i=6c72fb1f0eb1323aad0aacb21d767115

There are others for queues and stacks.

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 19th Oct 2005 00:12
Ah, so I am not "feeding" it the index number, it's only when you use the Next... I follow.

-This...is my boomstick!

Login to post a reply

Server time is: 2024-03-29 06:53:26
Your offset time is: 2024-03-29 06:53:26