On 02-17-97, TIM HUTZLER wrote to LAWRENCE GORDON:
TH>But the reference manual states that it takes the first letter of a
TH>string, Lawrence. Are you saying that the book is wrong? Not to say
TH>that you are wrong, I have noticed a number of errors in their book,
TH>and they really need to revise it.
Manual? We don't need no steenkin' manual! :) The only way I've ever
gotten CHDRIVE to work is to feed it a one char argument.
There are errors in the manual, but don't count on a revision anytime soon.
TH>TH>Now, CHDRIVE is not listed in the Reference guide under "Command
TH>TH>Summary" in the front of the book, but it is in the reference
TH>TH>directory. It states that the first character of a string is used
TH>TH>as the drive letter, implying that it will take a string the same
TH>TH>way ASC("ABC") does. However, I noticed that programs if I try to
TH>TH>use it, even though it IS NOT actually executed. That seems to
TH>TH>indicate that the compiler is not calculating the correct jump
TH>TH>addresses.
I experienced the same problem, and the work around is as I've already
suggested. Move the drive letter into a one character string variable
and then call CHDRIVE using that variable.
TH>I have since gotton around this by simply shelling out to DOS.
TH>SHELL "D:"
TH>I'll try your suggestion over the weekend.
Let me know how it works.
* QMPro 1.53 * High message: 943432. Last message you read: 59.
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/560.1)
|