Turbo Toolkit (bug, which version)

Anything QL Software or Programming Related.
User avatar
Andrew
Aurora
Posts: 984
Joined: Tue Jul 17, 2018 9:10 pm

Re: Turbo Toolkit (bug, which version)

Post by Andrew »

jobdone wrote: Sun Feb 23, 2025 4:05 am Andrew, AS ql_freak pointed out above the -7 is a not found error, so if there is no ram disk set up first, you get a -7. on q-emulator this is in the menu under QL Configuration>Devices and checking the Ram disk box, or just setting one up in software first, the same way on QPC.I actually booted QPC2 with the stock *.WIN file, which has a desktop and ram disk set up. this particular ram disk seems to return the number it should?
Yes, you are right
I get -6 and then "in use"
InUse.jpg


User avatar
RalfR
QL Wafer Drive
Posts: 1140
Joined: Fri Jun 15, 2018 8:58 pm

Re: Turbo Toolkit (bug, which version)

Post by RalfR »

jobdone wrote: Sun Feb 23, 2025 4:05 amOn q-emulator this is in the menu under QL Configuration>Devices and checking the Ram disk box, or just setting one up in software first, the same way on QPC.
QPC2 always has a RAMdisk enabled! This is a part of SMSQ/E.


7000 4E75
jobdone
Forum Moderator
Posts: 93
Joined: Wed Aug 07, 2019 4:59 am

Re: Turbo Toolkit (bug, which version)

Post by jobdone »

You are of course correct.


User avatar
ql_freak
Gold Card
Posts: 427
Joined: Sun Jan 18, 2015 1:29 am

Re: Turbo Toolkit (bug, which version)

Post by ql_freak »

jobdone wrote: Sun Feb 23, 2025 4:05 am Andrew, AS ql_freak pointed out above the -7 is a not found error, so if there is no ram disk set up first, ...
No, you have misunderstood me. It seems DEVICE_STATUS is expecting a string as its second parameter and not a Name (if no quotes around it is a SuperBASIC name and most extensions coerce this to a string, DEVICE_STATUS() seems not to do it). So if you pass a name instead of a string to DEVICE_STATUS(), it will not find it (it normally should abort with error "bad parameter") and so also will not open it (as with a string), so it does not have opened an internal QDOS-channel, and so the DELETE will work.

EDIT: change should return with -> should abort with error


http://peter-sulzer.bplaced.net
GERMAN! QL-Download page also available in English: GETLINE$() function, UNIX-like "ls" command, improved DIY-Toolkit function EDLINE$ - All with source. AND a good Python 3 Tutorial (German) for Win/UNIX :-)
User avatar
RalfR
QL Wafer Drive
Posts: 1140
Joined: Fri Jun 15, 2018 8:58 pm

Re: Turbo Toolkit (bug, which version)

Post by RalfR »

The Turbotk.txt mention this clearly:

DEVICE_STATUS ( x , name$ )


7000 4E75
Post Reply