comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Odd Thing with Dialog_Pickfile
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Odd Thing with Dialog_Pickfile [message #69204] Thu, 17 December 2009 17:47
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Odd Thing with Dialog_Pickfile
Next Topic: array index summations

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 22:32:51 PDT 2025

Total time taken to generate the page: 0.00544 seconds