At first glance I do not spot any errors in array handling in the program.Derek_Stewart wrote: Mon Jan 13, 2025 12:31 pm Hi,
I have been reading, Artificial Intelligenence on the QL, after I made single page and OCR.
Texamples in the book and the programme at the end of the of the book "Computer_SalesMan_bas", use arrays to store the data and use array element 0 as a data element, string or integer.
Consulting many QL manuals and books, they say that the length of the string is the last element in the array, as detailed in the QL User Guide and many books.
Only the Online Supebasic Manual, The Definitive Superbasic Guide by Jan Jones, gives array element 0 as the lenth of the string.
This has I expected, but thd more interesting question is why are so many manuals and books including the QL User Guide saying incorrectly that the length of the array is held at the end of the array.
That said how many programmes do not work in SMSQ/E or Minerva based on incorrect asumpions on the array storage details.
Needless to say, the programme: "Computer_Saleman_bas" needs correcti g.
I think I should stick to assembler programming, it is alot easier.
However, line 16040 is fishy and needs correcting.
I only OCRed the first 5 pages of the program, and have 9 pages more to do ...