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 / A few questions about for X = 1 to 10

Author
Message
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 24th Jan 2005 01:11
1) Can you have



2) Can you have



So you will end you with the varibles
1life
2life
3life
...
9life
10life

Thanks in advance
Cryptoman
21
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 24th Jan 2005 01:47
No, you cant make variables on the fly in any language.

But you can use a array.



now Life(1) would be the same as your were wanting with 1Life


Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 24th Jan 2005 03:00
That doesnt seem to be working



It starts to repeat the line before after almost 1 loop
Cryptoman
21
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 24th Jan 2005 04:42
numnpcs# you need to give that a number. Otherwise the array won't exist.


wmf
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 24th Jan 2005 04:50
you are printing down to the bottom of the page and then the page scrolls up and then you input part of the scroll from then on.clear the screen after each loop. (cls)
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 24th Jan 2005 05:27
hehe im noob thanks!

Login to post a reply

Server time is: 2024-11-27 21:48:29
Your offset time is: 2024-11-27 21:48:29