|
Post by stiggity on May 14, 2022 0:24:25 GMT
Hello, Been dabbling along, and have came to a stump. How do I, In BASIC, check if a device is Not Present. My experience has gotten me this far. All routines work fine, as long as the range checking is just selected device/drive, and that drive is present. I've done some searches, and am hunting down a 1541/1571 Users Manual. And Help is greatly appreciated.
|
|
|
Post by tokra on May 14, 2022 8:18:04 GMT
Maybe try using OPEN 1,device number,15,"i":CLOSE 1 in combination with TRAP and then check variable ER to catch the DEVICE NOT PRESENT-error.
|
|
|
Post by stiggity on May 14, 2022 15:25:13 GMT
tokra possibly i'm Missing something.. in any scenario, the moment i attempt to OPEN any device not plugged in, basic breaks to DEVICE NOT PRESENT error. If theirs a prompt, let's say, "Enter NEW Device #:" and i choose "10". The moment i attempt to access any DOS/oPen command on that value, i get an error. I just wasn't sure if there was some sort of means to detects all active IEC devices..
|
|
|
Post by tokra on May 14, 2022 16:41:00 GMT
10 trap60 20 input"drive number";d 30 open1,d,15,"i" 40 print"drive"d"exists" 50 close1:run 60 ifer=5thenprint"drive"d"does not exist" 70 resume50
Try this :-)
|
|
|
Post by stiggity on May 16, 2022 21:20:35 GMT
tokra, I'm already using trap but i guess i could re-map it?? thank you for the example code. I really apreciate your time/effort.
|
|