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.

DarkBASIC Discussion / Need help with Tutorial 3-1

Author
Message
3D_Master
19
Years of Service
User Offline
Joined: 23rd May 2006
Location:
Posted: 28th May 2006 20:47
Hello, I'm a newcomer when it comes to DarkBasic and I'm on a long way to make a simulator.
I'm reading all the tutorials there are in the DEMO version, from which i'm not exact if it matches with DarkBasic Professional or DarkBasic.

I already searched the forum for this but couldn't find this problem.
My problem:

The tutorial lets you make a command list that gives you the option to show you all the display modes (resolutions + bitdepths) your graphics card can handle.

The piece of code that's made to show the display modes:
PERFORM CHECKLIST FOR DISPLAY MODES
FOR T=1 TO CHECKLIST QUANTITY()
PRINT T;" ";CHECKLIST STRING$(T)
NEXT T

The following piece, that belongs to the first piece of code should give met the opportunity to select a display mode to switch over.
DO
IF ASC(INKEY$())>48
position=ASC(INKEY$())-48
width=CHECKLIST VALUE A(position)
heigh=CHECKLIST VALUE B(position)
depth=CHECKLIST VALUE C(position)
SET DISPLAY MODE WIDTH, HEIGHT, DEPTH
ENDIF
LOOP

The tutorial asks you to make the program so that it limits the checklist results to 9 results.
How on earth do you that?

Probably a stupid question, but never hurts to ask does it?
Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 29th May 2006 13:41
change

to


Just google pallmanni and get the history of me!

http://whatishl.ytmnd.com/ so friggin funny!
3D_Master
19
Years of Service
User Offline
Joined: 23rd May 2006
Location:
Posted: 31st May 2006 15:54
Thank you very much, it worked.
Although DarkBasic still doesn't switch to a different resolution, although that's not my primary target for now.

Again a BIG thank you.

Login to post a reply

Server time is: 2025-05-25 02:09:08
Your offset time is: 2025-05-25 02:09:08