Talk About Network



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 > Idl-pvware > Re: Dialog_pick...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 10 Topic 5661 of 5741
Post > Topic >>

Re: Dialog_pickfile problem

by Vince Hradil <hradilv@[EMAIL PROTECTED] > Apr 22, 2008 at 07:19 AM

On Apr 22, 9:12 am, clivecoo...@[EMAIL PROTECTED]
 wrote:
> Hi,
>
> I am using Dialog_pickfile to write a jpeg, using file='a string i
> insert here'. My problem is that if i want to change the directory in
> which dialog_pickfile defaults to  it wipes the string i initially
> inserted. Is there a way i can fix the default filename so that the
> user can pick a directory to save the jpeg without having to retype
> the file name back in?
>
> filename = Dialog_Pickfile(/Write, File=uname
> +'-'+info.file_name,DEFAULT_EXTENSION='jpeg')
> IF filename NE '' THEN Write_JPEG, filename, snapshot, True=1
>
> many thanks,
>
> Clive

Seems to me that you don't want to give the user a choice to make the
filename.  So, why not just have them choose a directory?

dirname = Dialog_Pickfile(/Directory)
if strlen(dirname) gt 0 then File=dirname+path_sep()+uname
+'-'+info.file_name+'.jpeg'




 10 Posts in Topic:
Dialog_pickfile problem
clivecook59@[EMAIL PROTEC  2008-04-22 07:12:12 
Re: Dialog_pickfile problem
Vince Hradil <hradilv@  2008-04-22 07:19:05 
Re: Dialog_pickfile problem
clivecook59@[EMAIL PROTEC  2008-04-22 07:20:52 
Re: Dialog_pickfile problem
Vince Hradil <hradilv@  2008-04-22 07:23:13 
Re: Dialog_pickfile problem
clivecook59@[EMAIL PROTEC  2008-04-22 07:29:05 
Re: Dialog_pickfile problem
David Fanning <news@[E  2008-04-22 08:31:28 
Re: Dialog_pickfile problem
clivecook59@[EMAIL PROTEC  2008-04-22 07:33:35 
Re: Dialog_pickfile problem
"marika" <ma  2008-04-22 21:01:09 
Re: Dialog_pickfile problem
Vince Hradil <hradilv@  2008-04-22 07:36:39 
Re: Dialog_pickfile problem
Vince Hradil <hradilv@  2008-04-22 07:38:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sat May 17 5:19:14 CDT 2008.