Search found 6 matches
- Fri Nov 16, 2007 5:35 am
- Forum: QBasic / QuickBasic related
- Topic: DO ... LOOP question
- Replies: 13
- Views: 2849
sorry
oh sorryy .... last night I wanted to try both codes u gave me and my DOS commands won´t work on Windows anymore ... I will have to reinstall my WINXP today as it was damaged long time ago ... and I REALLY wanna try your codes to see how it works
- Thu Nov 15, 2007 9:53 pm
- Forum: QBasic / QuickBasic related
- Topic: DO ... LOOP question
- Replies: 13
- Views: 2849
what ?
every BASIC language derived from the classic BASIC will tell u in the Help ( I don´t remember the exact section ) that a loop will be scanned 18.2 times per second or once every 55 milliseconds ... that´s the HIGHEST rate
- Thu Nov 15, 2007 8:29 pm
- Forum: QBasic / QuickBasic related
- Topic: DO ... LOOP question
- Replies: 13
- Views: 2849
well
well a loop repeats every 55 milliseconds and that is equal with 18.2 CPU ticks ... on all processors, no matter how fast they are. I will compile your code soon enough and thanks
- Thu Nov 15, 2007 5:26 pm
- Forum: QBasic / QuickBasic related
- Topic: DO ... LOOP question
- Replies: 13
- Views: 2849
hmm
hmm I´ll try the code after I´m done with my homework ... in the meantime ... so if I press A and the first instruction is set to check for W, now just because A<>W, the bufer will loose the A value and the INKEY$ will remain with nothing until the next press ???
- Thu Nov 15, 2007 1:16 pm
- Forum: QBasic / QuickBasic related
- Topic: DO ... LOOP question
- Replies: 13
- Views: 2849
thanks but ...
thanks but ... hmm Mac, you said that only when I press ¨a¨ will the program go to instruction nr. 2 .... but how come ??? I mean the whole program is a loop .... doesn´t that repeat 18.2 times per second ??? why is it time consuming ? and also, I see that the LCASE$ thing works ... but why is that ...
- Wed Nov 14, 2007 10:01 pm
- Forum: QBasic / QuickBasic related
- Topic: DO ... LOOP question
- Replies: 13
- Views: 2849
DO ... LOOP question
hello everyone !!! I have a small problem and I hope u guys can help me out :) first, hereś the code : screen 12 cls do pset(x,y),6 if inkey$=¨w¨ then y=y-1 if inkey$=¨s¨ then y=y+1 if inkey$=¨a¨ then x=x-1 if inkey$=¨d¨ then x=x+1 if inkey$=¨q¨ then end loop As you can see, what I want to do is dra...