Search found 6 matches

by Andries
Sat Jun 26, 2010 2:44 am
Forum: Freebasic Questions & Answers
Topic: QBASIC SET VARIABLE in DOS
Replies: 10
Views: 50530

:oops: that works! :lol:

I think: "I make a stand alone exe-file and SET the DOS params"
But if I close the EXE file the DOS params is not set.

But this way (a batch file in Qbasic) work very well.

Thank you very much for all answers.

this is the solution! :D
by Andries
Fri Jun 25, 2010 1:32 pm
Forum: Freebasic Questions & Answers
Topic: QBASIC SET VARIABLE in DOS
Replies: 10
Views: 50530

Thanks for your reply again... But I think, I must give it up. If I try the SHELL "SET NUMBER=" + num$ there is no memory error. But if I look on the DOS prompt with the command SET there is no variable NUMBER. I do not get it. :( If I start up with DOS and type SET NUMBER=3 And I type SET...
by Andries
Wed Jun 23, 2010 1:14 pm
Forum: Freebasic Questions & Answers
Topic: QBASIC SET VARIABLE in DOS
Replies: 10
Views: 50530

gives nothing. I am already glad that you try to help me! but.... the first code works! PRINT "Enter a 4 digit number" num$ = INPUT$(4) PRINT num$ But you can not see the key who I pressed (realtime)? Is that correct? (I can see it with the PRINT COMMAND but it is less beautyfull) And :-( ...
by Andries
Tue Jun 22, 2010 11:29 am
Forum: Freebasic Questions & Answers
Topic: QBASIC SET VARIABLE in DOS
Replies: 10
Views: 50530

Mhh, I think it's the good way but it works not yet. The followed error does I have: With sample 1: By running the code There is a error bij "INPUT$" Expected: statement (Sample 1 does not compile) But by sample 2: I can read the params from DOS but there is no setting from QB45 into this ...
by Andries
Sat Jun 19, 2010 3:10 am
Forum: Freebasic Questions & Answers
Topic: QBASIC SET VARIABLE in DOS
Replies: 10
Views: 50530

That's not a good solution
If I use this you can also type a 2 digit number or a 5 digit number.
there is no control if it is a 4 digit number.

And on this manner there is not variable SET it in the DOS variable.
(check it with type "SET" in the DOS command prompt)
by Andries
Fri Jun 18, 2010 3:57 pm
Forum: Freebasic Questions & Answers
Topic: QBASIC SET VARIABLE in DOS
Replies: 10
Views: 50530

QBASIC SET VARIABLE in DOS

Hello, I have a Qbasic problem and I hope you can help me. I would write a Qbasic program who ask me a 4 digit code e.g. 1234 (and not A...z or 123) And then use the "4 digit code" and SET it in the DOS variable NUMBER In the DOS prompt I can type the followed code SET NUMBER=1234 And if I...