Re: Odd Thing with Dialog_Pickfile [message #69204] |
Thu, 17 December 2009 17:47 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Here is an odd little thing that is totally reproducible.
> I'm trying to write a file, and I want to give the user
> a chance to change the filename with Dialog_Pickfile on
> my IDL 7.1.2 Windows 64-bit OS. I type these commands:
>
> filename = 'polarstereo_np_304x448_25000m.lat'
> filename = Dialog_Pickfile(FILE=filename)
>
> When the dialog comes up, the name looks like it has
> been chopped in half. It looks like "304x448_25000m.lat".
It turns out, if I set the WRITE keyword in Dialog_Pickfile
everything is normal. Go figure.
filename = Dialog_Pickfile(FILE=filename, /WRITE)
If I use my own title, it still truncates the starting
filename:
filename = Dialog_Pickfile(FILE=filename, TITLE='Write')
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|