I
did run a forum search and found nothing relating to this. I'm pretty sure someone should've noticed it and posted about it by now if it was DBPro...surely...
Anyway, take a looksie, run the code, tell me if anybody gets the same problem:
PERFORM CHECKLIST FOR DRIVES
FOR i = 1 TO CHECKLIST QUANTITY()
PRINT CHECKLIST STRING$(i)
NEXT i
WAIT KEY
remstart
DBP OUTPUT:
a:\
c:\
d:\
e:\
j:\
s:\
I do not have an A:\ drive and have not had one since about 2005.... *raises left eyebrow by 1cm*
IN REALITY:
a:\ !!!non-existent!!!
c:\ primary hdd
d:\ Virtual Optical Drive
e:\ Physical Optical Drive
j:\ Mounted folder path (subst)
s:\ Virtual HDD (True Crypt Volume)
remend
I know the obvious answer would be "FOR i = 2 TO...etc" but this is the wrong solution as the application has to run on Other People's Computers which may not get this error (or who may have an A drive).
Solution: Check path validity (*see below) so this ain't a major train smash. I'm posting more for the sake of anybody else with this error and because I'd like to know if I'm the only one getting it.
*Fixed code:
PERFORM CHECKLIST FOR DRIVES
FOR i = 1 TO CHECKLIST QUANTITY()
IF PATH EXIST(CHECKLIST STRING$(i)) = 1
PRINT CHECKLIST STRING$(i)
ENDIF
NEXT i
`This IS actually better coding practice to begin with, lol
WAIT KEY
Oh yeah, my specs:
DBPro Installer:
251111 (25/nov/2011 by my reckoning)
Downloaded on Jan 12th 2012
Operating System:
Win7 HP x64
PC:
Acer E730G (Yes it's a laptop and YES I miss my Tower of Black)
So, anyone else got this "ghost [drive a] in their machine"? Am curious about what causes it. I picked my brain a while and couldn't come up with a thing. Theories welcome too.