Peter, I have a program that does a similar thing, except it sends the filename to a StaticText box (for illustration purposes and to show the user which file will be used, etc...)
When my dialog opens, I put in a dummy value (default) into the statictext box that says "No File Selected..." then the button which opens a dialog calls FilOpenDlg, returns the filename (which is a global variable) and alters my StaticText control to show the variable filename. If you use a default value UNTIL the button is pressed..then if you cancel the dialog and re-open the dialog, the old filename value has to be refreshed (e.g. run the fileopendlg handler again) for it to display...I find this is the best way to use this idea as I always know that the variable filename contains nothing until I put something in it...and when in doubt it resets the value...I feel it prevents a mix up with the data... I don't think I've fully answered your question, but you get the idea Ben __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
