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 Professional Discussion / Data statements and text commands help

Author
Message
Dragon slayer
19
Years of Service
User Offline
Joined: 3rd Nov 2006
Location: Bourbonnais Illinois
Posted: 30th Mar 2014 19:23
I have been playing around with data statements For loops and commands.

I got this to work and streamlined my code and cut out a lot of lines of code. This sets up a screen layout



I have been trying this with the text command and can't get it to work. I am pretty sure the read command isn't right, that is just one of the ways I have tried it. It compiles and the screen comes up for a second then it crashes and I have to click on a choice to close it.

Do I need to nest another for loop in this one to get it to work or is it that text commands will not work in this way?





ShellfishGames
13
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 30th Mar 2014 20:26 Edited at: 30th Mar 2014 20:28
I don't know what exactly this code is supposed to do. First, you use read with " " as argument (although it's supposed to take variables only), then you print a white space somewhere to the screen - even if it would work, you wouldn't see anything, would you?

This seems to work:



But I don't know if that's what you want.

Dragon slayer
19
Years of Service
User Offline
Joined: 3rd Nov 2006
Location: Bourbonnais Illinois
Posted: 31st Mar 2014 07:00
Yes that's it thanks!Didn't think to make that a variable! thanks again.

Login to post a reply

Server time is: 2026-07-07 03:45:57
Your offset time is: 2026-07-07 03:45:57