Need to find out which dialog box I'm in

J

Jason Cook

I'm writing a script for disabled users to enable them to navigate to their
frequently-used directories easily (using voice recognition, but that's not
particularly relevant). The code is going to be very similar for both opening
and saving files, so for the purposes of economy, gracefulness and
ease-of-use, I'd like to combine them into one command. However I need to be
able to determine whether I'm in the File...Save As dialog box or the
File...Open box at a certain point in the code.

Can anyone help ?
 
W

Word Heretic

G'day "Jason Cook" <Jason (e-mail address removed)>,

At the top of the code use a Boolean variable manually set:

SaveAs= ( SomeParm = FileSaveAs )

....

If SaveAs then 'we are in save as dialog, not open

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top