1
QB64 Discussion / Re: need help with OPEN COM
« on: February 27, 2019, 05:20:15 pm »
Well, I've continued trying but have come to the conclusion that QB64 just doesn't work the way I need it to. Having OPEN COM for RANDOM work only in BIN mode is a hindrance.
Another weird thing: When trying Axeman's suggestion in the post immediately above, I get a "Bad file name" error when it tries to OPEN COM2 for INPUT after having closed it for OUTPUT. Why isn't #12 (or #-whatever) a satisfactory file name? (Actually I use COM4 rather than COM2 but I don't think this should matter.)
Even if I could open COM4 for INPUT as well as OUTPUT, it would become a pain for all the flip-flopping the COM port would have to do when writing to and reading from the Fluke test instrument.
Granted, my lack of skill as a programmer may be at the root of all this. However, while scouring the Web I came across Liberty BASIC and downloaded it. It does support OPEN COM for RANDOM and now I am able to write to and read from the instrument just as I could with QB 4.5 . So I'm finally on the road to accomplishing my task.
Thanks to everyone for all the suggestions.
Another weird thing: When trying Axeman's suggestion in the post immediately above, I get a "Bad file name" error when it tries to OPEN COM2 for INPUT after having closed it for OUTPUT. Why isn't #12 (or #-whatever) a satisfactory file name? (Actually I use COM4 rather than COM2 but I don't think this should matter.)
Even if I could open COM4 for INPUT as well as OUTPUT, it would become a pain for all the flip-flopping the COM port would have to do when writing to and reading from the Fluke test instrument.
Granted, my lack of skill as a programmer may be at the root of all this. However, while scouring the Web I came across Liberty BASIC and downloaded it. It does support OPEN COM for RANDOM and now I am able to write to and read from the instrument just as I could with QB 4.5 . So I'm finally on the road to accomplishing my task.
Thanks to everyone for all the suggestions.