Every program I start in DB normally looks like this.
set display mode 1024,768,32,1
sync on
do
sync
loop
I automatically put that at the start of every project. The first line sets up the display res, colour depth and framerate (the 1 meaning your monitors refresh rate). Then I turn on sync (otherwise it defaults at 40fps I believe, but that could be different these days). Then put a loop to display whatever I will be doing, with the sync at the end to refresh the screen. That code obviously displays a blank screen as I have loaded nothing up, but if you use it as the basis to start your projects it will soon get you used to how DB Pro and DB work. If you leave out the display mode command it will default to 640x480 or whatever your project settings are in the ide.
Edit - Here's a little update showing 2 loops instead of one and how easy it is to switch between. Be aware if you had a sprite or 3d object loaded, you would still be able to view them in either screen as it is. You would need to delete and reload or hide the object, sprite when switching loops. This is just a basic example.
set display mode 1024,768,32,1
sync on
`***********First screen******************
do
cls 0
text 0,0,"Screen 1. Press a key to continue."
if scancode()>0
repeat
until scancode()=0
gosub main
endif
sync
loop
`**********Second screen******************
main:
do
cls 0
text 0,0,"Screen 2. press a key to return."
if scancode()>0
repeat
until scancode()=0
exit
endif
sync
loop
return
http://s6.bitefight.org/c.php?uid=103081