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.

Author
Message
VaderJ
21
Years of Service
User Offline
Joined: 20th Oct 2003
Location:
Posted: 24th Oct 2003 05:33
1st of all...thanks for everyones help with my questions about functions...now I've got a new one for you..jiji
Do arrays in db (dbclassic I should say..maybe it's different in dbpro???)..anywas....do arrays in db start with a zero(0) or a one(1)

example..
array(5)

would it be..
array(0)
array(1)
...till
array(4)?? or...

array(1)
array(2)....and so on until
array(5)???? thanks again for your help.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 24th Oct 2003 06:02
arrays are option base zero meaning the first item is index 0

if you need 5 array items DIM MyArray$(4)

-RUST-
Scott Grizzard
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Tampa
Posted: 24th Oct 2003 11:17
I think either way of doing it is ok. Though arrays technically start with zero, I usually just use one as the starting point, and let array(0) just equal zero.

I think it's kinda like spelling on posts, you should do it right, but it doesn't really matter.

Login to post a reply

Server time is: 2024-11-25 14:42:05
Your offset time is: 2024-11-25 14:42:05