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.

Newcomers DBPro Corner / Arrays confusion

Author
Message
Bolt Lightning
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location:
Posted: 14th Aug 2003 23:04
Shouldnt it print like this?
4
7
I thought the value for a and b increased by one every time, but obviously not if 5 is printed after 4, (1,2) should have been skipped because a should have increased by one..Right.?
haggisman
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 14th Aug 2003 23:39
You have mixed up the two 'nexts', which caused the aformentioned problem. :-

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Aug 2003 23:40
Should be:

next b
next a

TDK
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Aug 2003 23:41
Oops!

Posted at the same time - solution the same though...

TDK
Bolt Lightning
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location:
Posted: 15th Aug 2003 03:35
next b
next a

Same thing happeneds...

What I really want to know is how the command works. (DIM)
The For a=1 to 5
seems like a does 1,1,2,2,3,3,4,4,5,5 instead of 1,2,3,4,5 like the For a=1 to 5 describes.

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 15th Aug 2003 04:46


Bolt Lightning
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location:
Posted: 15th Aug 2003 05:33
huh? sorry, I dont understand..... Im new at this, and Ive had db for 2 years but am now just starting to get back into it again.
So I started from the beginning (today), and came upon arrays; yeah I can follow what the tutorial says and make an array of my own and get restults, but I still dont understand. (Like the difference in memorizing and understanding math formulas, its easy to use math formulas for different things if you understand them, but if one memorizes them he can only use them for for those couple of Test questions at the end of the week!) I dont understand how the array works, so I cant really use it for programming; i can only use it to pass the array section in the tutorial .
Can anyone explain thanks.

Bolt Lightning
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location:
Posted: 15th Aug 2003 06:49
I created this simple program that makes converting to different units easy, the problem is I cant get it to work on any other computer except mine, even when i used the build final button. Other computers get a "Runtime error :Error 10" message. Whats wrong?
Heres source code for it.
Thanks.
farenheit, farinhight.... i dont know, im too lazy to look it up.

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th Aug 2003 07:09 Edited at: 15th Aug 2003 07:13
If I remember right, error 10 is file not found.

Just looked at your source and there's no '' symbols.



...isn't a valid filename and it doesn't have a bitmap number.

TDK
Bolt Lightning
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location:
Posted: 16th Aug 2003 08:01
yeah, i didnt realize that it was not necessary to include the whole path as long as the dba is in the same file as the media.
Numbered bitmaps are optional.
thanks.

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 16th Aug 2003 11:41
www.dbheaven.com has a good array explination and examples if they get confusing.

Login to post a reply

Server time is: 2024-09-20 19:38:50
Your offset time is: 2024-09-20 19:38:50