Alex Getfile() and Locfile() are functions to locate an existing file.
Use PUTFILE() when you wont to save one file. Putfile() invokes the Save As dialog box.
>>>Is there a way to indicate a file name as default when calling getfile()?
>>>
>>>TIA,
>>>
>>>Alex
>>
>>Alex take a look at
>>
DO FORM (HOME(1) + 'Tools\Filer\Filer.scx')
>>You can modify the code in
>>
thisform.pf1.page1.cboFiles.Init
>>
>>HTH
>
>Thanks for the help Vladimir. I am trying to make make one commandbutton do the work of "Save" and "Save As" by presenting the dialog to user with previous file name already selected so he can either click save or change name before clicking save. If GetFile doesn't allow this I can have two buttons without much difficulty.
>
>Alex
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst