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 / can't see the output on the screen

Author
Message
ashino
15
Years of Service
User Offline
Joined: 12th Nov 2010
Location:
Posted: 12th Nov 2010 12:10
hello, i have a problem when i wrote the following simple code:

function fullname
name as string
name = \"john doe\"
print name
endfunction

wait key

the i click run, the compiler checks that there is no errors
but at execution the screen doesn\'t stop but it disappear quickly that i can\'t see the output in the screen even thu i wrote \"wait key\", can anyone tell me what\'s the problem.

thanx
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th Nov 2010 12:52
Yes you need to put the function after your code and call it from the loop (also you need parenthesis) like this:


A simpler way to write something that does the same operation would be:



Does that help?

ashino
15
Years of Service
User Offline
Joined: 12th Nov 2010
Location:
Posted: 12th Nov 2010 13:21
Thanx alot baxslash, it worked

Login to post a reply

Server time is: 2026-07-23 02:37:38
Your offset time is: 2026-07-23 02:37:38