Dear Steve,
Steve Wampler wrote:
>
> On Tue, 05 Jul 2005 06:09:59 +0000, Bill Spight wrote:
>
> > First, I could not get
> >
> > dosdir()
> >
> > to work, so I tried something I thought was simpler:
> >
> > getdrive() ,
> >
> > which should return a string, I believe. No dice.
> >
> > getwd()
> >
>
> Hi Bill,
>
> I rarely use Windows, so I can't help, but it may help if
> you provide more information:
>
> (1) what version of Icon?
> (2) what were the exact error messages when you tried
> each of the above? (if no messages, what went wrong?)
> (3) do you have a small sample program that you can post
> which exhibits the problem(s)?
>
> With that information, someone may find it easier to help.
>
> Good luck!
> Steve
Thanks for your helpfulness. :-)
Version: Icon2 9.3.2 for MS Windows
Frogram:
link io
procedure main()
write(getdrive())
end
Error message:
File noname.icn; Line 5
procedure or integer expected
offending value: &null
Traceback:
main()
&null() from line 5 in noname.icn
I also got the same error message with this program:
link io
procedure main()
dr := getdrive()
write(dr)
end
Now, the io.icn file says:
getdrive() returns the current drive as a lowercase string with the ":".
Now it would not surprise me that in Windows ME and later there is no
such things as a current drive or current directory (which I also cannot
get to work). <shrug>
Many thanks,
Bill


|