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 couple of basic questions, needing basic answers

Author
Message
Brendo
18
Years of Service
User Offline
Joined: 14th Sep 2006
Location: Australia
Posted: 17th Sep 2006 12:02
I am new to DB and still learing the ropes in regards to basic commands.

Multiple Conditions

My questions are....

1. Is the repeat command the best to use in this situation?
2. If so what is the correct syntax for entering multiple
conditions? If not, could you please provide an example, or
point me to a tutorial if you don't have the time yourself.





Using Arrays

My questions......

1. What is the best way to have the user enter data into my
program and have that data stored directly into an array?

The example below gives the idea of what I would like it to
do, but it doesn't work.

2. Is it possible to have the conditions in an array increment
themselves automatically?





Multiple Display Pages

Last Question for now.....

1. In the example below the output produced goes over one page.
How do I give the user the option to view the second page?

Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 17th Sep 2006 21:21
How I would do your first code-


Your second code was a matter of moving one line-


I didn't understand what you wanted to do with your third piece of code.

As for your last question, you have gotten the wrong impression of what is happening. If you run the following code you will see that the print command automatically scrolls the screen down as things are printed.



Atreides
20
Years of Service
User Offline
Joined: 11th Oct 2003
Location: Switzerland (but NOT on a mountain !)
Posted: 17th Sep 2006 22:25
Multiple page display :



Not hard enough to need explainations.

The sleeper must awaken !
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 17th Sep 2006 23:04
Well, sometimes things need explaining anyway because there is no do as I want, not as I say in programming. There is also no crying in programming.

Print prints at the current location...which will be the bottom of the screen when you are doing things like most do...make your frame with your geometry, models, shaders, etc. Then make some text for debug, or HUD type display. You can place the cursor anywhere you want prior to printing. To avoid scrolling, do not print after the last legal line.
Brendo
18
Years of Service
User Offline
Joined: 14th Sep 2006
Location: Australia
Posted: 18th Sep 2006 08:33
Thanks for the help. Much appreciated.

Login to post a reply

Server time is: 2024-09-25 09:35:59
Your offset time is: 2024-09-25 09:35:59