TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: JOACHIM MERKEL
date: 1997-09-06 06:16:00
subject: Re: A/O O/A

From: J.Merkel@TBX.berlinet.de (Joachim Merkel)
Hi,
S. Mitchell wrote:
> I assume that everything is now working/answered/finished regarding SaveAs 
and
> SaveBlock, referring to your last message on the TSE Pro mailing list?
Thanks, my wishes are fullfilled .
I have built many macros for the TSE, but this was the one I missed most.
Joachim Merkel
I built the following in my UI:
-----------------------------------------------------------------
menu AppendMenu()
    TITLE = "Choose"
    "&Overlay existing file"    // not just QEdit nostalgia
    "&Append to file"
end
                                                          // a second one
proc mSaveAs()                                            // proc 
SaveBlock()
                                                          // exists too, with
    string fNameStr[225] = CurrFilename()                 // ..= ""
    if AskFileName("Save file as:", fNameStr, _FULL_PATH_,
_EDIT_HISTORY_) and Length(fNameStr)
        if FileExists(CurrFileName())
            AppendMenu()
            case MenuOption()
                when 1
                    SaveAs(fNameStr, _OVERWRITE_)
                when 2
                    SaveAs(fNameStr, _APPEND_)
                otherwise
                    message("Operation canceled.")
                    Delay(10)
                    UpdateDisplay(_ALL_WINDOWS_REFRESH_)
            endcase
        else
                    SaveAs(fNameStr, _DEFAULT_)
        endif
    endif
end
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.