Well I have been trying the QL basic and have run into a few things I would like to pass along. When using an if statement I was comparing a string to a number and this is what I found. Certain keys compared equal to the number. To be specific the UP ARROW compared equal to an eight (8). No other key compared equal except for the 8. To counter this I used the CODE instruction. This resolved the problem.
To use files on your disk/micro drive there are a few different types of “OPEN” commands. The first is “OPEN_NEW”. This command will open a new file on a drive. If the file name exists the program will pause with a message asking if “OK to overwrite”, if the file name does not exist the file will be started. This will destroy any pre-existing data.
The next is “OPEN_IN”. This instruction will open an existing disk/micro file so it can be read. This is a read only open and the file can not be written. The next instruction is “OPEN_OVER”. This open requires an existing file and the file is opened for read and write. I must give credit to Dick Cultice for finding this instruction. This requires an existing file. There is one other open, “OPEN” this will open the file for use but the file must be read to the record to be used. If it is to be changed the read must stop at the record just prior to the desired record.