Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Icon > Re: [NEWBIE} Wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 17 Topic 90 of 196
Post > Topic >>

Re: [NEWBIE} Windows IO?

by Bill Spight <bspight@[EMAIL PROTECTED] > Jul 8, 2005 at 01:36 AM

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
 




 17 Posts in Topic:
[NEWBIE} Windows IO?
Bill Spight <bspight@[  2005-07-05 06:09:59 
Re: [NEWBIE} Windows IO?
Bill Spight <bspight@[  2005-07-05 15:06:15 
Re: [NEWBIE} Windows IO?
"Edward A. Feustel&q  2005-07-06 09:38:11 
Re: [NEWBIE} Windows IO?
Bill Spight <bspight@[  2005-07-06 19:07:01 
Re: [NEWBIE} Windows IO?
"Edward A. Feustel&q  2005-07-07 06:46:23 
Re: [NEWBIE} Windows IO?
Bill Spight <bspight@[  2005-07-08 17:50:54 
Re: [NEWBIE} Windows IO?
Steve Wampler <sbw@[EM  2005-07-09 14:48:54 
Re: [NEWBIE} Windows IO?
"Edward A. Feustel&q  2005-07-09 12:17:14 
Re: [NEWBIE} Windows IO?
Bill Spight <bspight@[  2005-07-17 21:42:14 
Re: [NEWBIE} Windows IO?
Steve Wampler <swample  2005-07-07 14:58:53 
Re: [NEWBIE} Windows IO?
Bill Spight <bspight@[  2005-07-08 01:36:38 
Re: [NEWBIE} Windows IO?
Steve Wampler <swample  2005-07-08 09:40:23 
Re: [NEWBIE} Windows IO?
Bill Spight <bspight@[  2005-07-08 17:46:15 
Re: [NEWBIE} Windows IO?
Steve Wampler <swample  2005-07-08 15:21:55 
Re: [NEWBIE} Windows IO?
Bill Spight <bspight@[  2005-07-09 02:11:16 
Re: [NEWBIE} Windows IO?
Steve Wampler <swample  2005-07-09 09:09:52 
Re: [NEWBIE} Windows IO?
Bill Spight <bspight@[  2005-07-17 21:40:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 8:49:19 CDT 2008.