File Naming
Jack Stewart
jacks at amug.org
Mon Jul 7 15:31:42 PDT 2008
David,
Your idea works great but, alas, it had to be too good to be true :)
The problem is that whenever one subsequently saves the file, it saves under the new file name.
Jack
On 7/7/08, David Thompson said ……
>>The drawback is
>>that the file will have to open twice, unless it is being opened by
>>another database that uses OpenAs to name it with the short name.
>
>It just occurred to me, that the file wouldn't have to have any
>windows the first time it opened. You could save the file to open
>without windows, and have the .Initialize open one of the forms on
>the second open. It would look something like this.
>
>If info("DatabaseName") contains "#"
>Local FilePath, FileName
> FilePath = folderpath(folder(""))
> FileName = info("DatabaseName")
> CloseFile
> OpenAs "Your Short Name"
> OpenFile FilePath + FileName
> Rtn
>Endif
>
>SetWindow 50,50,500,600,""
>OpenForm "Your Initial Form"
>
>/* The rest of the .Initialize goes here */
>
>Dave
>_______________________________________________
>Qna mailing list
>Qna at provue.com
>http://provue.com/mailman/listinfo/qna
More information about the Qna
mailing list