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 / 5 commands per lines for the 20 lines challenge => bugs bugs bugs

Author
Message
Attreid
22
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 8th Mar 2003 02:34
hi, I don't post in the 20 lines challenge because my problem is not only for the 20lc. I have some bugs when I try to put 5 commands per line. I'll use a very small example:


this code work well, but it's maybe too long => I try to put 5 commands per lines, as in the 20lc:


Error : command out of place, so I have to put the loop in the third line :


and then, it doesn't work, I cannot see anything .. I heard that the do doesn't like a CLS just

after him, so I tried this one, but it frozen my computer :


So, I tried some others way to compress the code, and I come to this one :


now, it don't freeze my computer anymore, but there's still a problem : it doesn't print anything when I don't press the spacekey ... what's appening ? the programm read the commands as if it was with an IF .. ENDIF =>

but it isn't what I want, so I cannot write anything after a IF THEN.. My new code is now :


Okay, it work, now I try to compress more :


oh no ! now, the ClS doesn't work, so I have to fund an other way... :



Now, it work, it's a 4 lines programm, and with 5 commands per line, I can have it in two lines. Now, my question : is it the same for everybody, or only for me ??
I'm following John, but I'm not john.
Lol, it is funnier in french
TRS80Model1
22
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: - Please Select -
Posted: 8th Mar 2003 03:07
put spaces between your colon and try that

Login to post a reply

Server time is: 2025-05-18 22:56:56
Your offset time is: 2025-05-18 22:56:56