Can some nice programmer enlighten me on the usage of STEP in a FOR - NEXT loop? I've been trying the following code running on the MS-DOS 6.22 distribution of QBASIC (whatever version that is????). For A = 1 TO 128 STEP A^2 PRINT A NEXT To try to achieve the screen output of: 1 2 4 8 16 ~~~ 128 Ins...
If this should help someone down the road... I figured out the problem with DOS 7.10. I performed the installation with the drive volumes unlocked. If you are using QBX which knows nothing about long file names, you must install it with the volumes LOCKED if you want to perform commands like the pri...
Well, the subject line pretty much says it all for me. I can't use the QBX command SHELL "dir/on c:>proglist.dir" running MS-DOS 7.10. Is there some resolve for this behavior or do I need to back up and install DOS 6.22?
I guess the reason it's never been a problem before is because I usually always check for single bits and not for multiple bits at once with AND logic in QB. In all lower level languages I've ever programmed in, ALL three bits would have to be equal for like a CMP (compare) instruction. I guess I ha...
Okay, here's an interesting (...and frustrating) problem... I'm programming in QBX 7 and in my main module of my program, I have stated: COMMON SHARED MachineStatus AS INTEGER In one of my SUBs I have this piece of code: IF MachineStatus AND 7 THEN 'Bits 0, 1, and 2 active LOCATE 1,1 : PRINT Machine...
Yes, compatible hardware availability will inevitably be the demise of the language. I guess when I can no longer obtain motherboards outfitted with PCI slots, serial ports, and parallel ports, I'll have to outfit any new electromechanical projects I take on with expensive PLCs, HMIs and write code ...
Oh BTW, I have downloaded QB64 and FreeBasic and have dabbled with both, but never taken on any large scale stuff. I use QBX and MASM to create dedicated controllers for various types of machinery. I heavily make use of PEEK, POKE, IN, and OUT statements--all of which unavailable to me on the aforem...
Thanks for clearing that up burger. What I'm trying to do more specifically is compile a 24-bit integer from three 8-bit values. This is not the first time that I've needed to do this and have encountered this same problem. What I've seen in both occasions is that QBX will multiply the highest byte ...
Hello everyone. I'm brand new to the site and could use a little help with a programming problem. Help me understand something... I'm booted up with WIN98SE command prompt environment and running Quick Basic 7.1. I try this code and get an Overflow error: DIM IntegerNumber AS LONG IntegerNumber = 12...