LG>On 02-09-97, Tim Hutzler wrote to All:
TH>File = "B:\*.*"
TH>CHDRIVE File
LG>That won't work, Tim. CHDRIVE takes a one character
LG>argument: the drive letter.
But the reference manual states that it takes the first letter of a
string, Lawrence. Are you saying that the book is wrong? Not to say
that you are wrong, I have noticed a number of errors in their book,
and they really need to revise it.
TH>Now, CHDRIVE is not listed in the Reference guide under "Command
TH>Summary" in the front of the book, but it is in the reference
TH>directory. It states that the first character of a string is used
TH>as the drive letter, implying that it will take a string the same
TH>way ASC("ABC") does. However, I noticed that programs if I try to
TH>use it, even though it IS NOT actually executed. That seems to
TH>indicate that the compiler is not calculating the correct jump
TH>addresses.
LG>It's been my experience that you need to move the first
LG>letter of the sting into a variable before calling CHDRIVE.
I have since gotton around this by simply shelling out to DOS.
SHELL "D:"
I'll try your suggestion over the weekend.
Thanks.
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)
|