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 [email protected]>,

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
 
Top