[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: LH vs. SAve



From: Harry Binswanger 
> But my addition to the ctrl-s command means anytime you hit ctrl-s, an
> actual save will be done.

Harry:

A couple of points:

There's a less intrusive way to force a disk-write, one that doesn't actually change the file, even
if only fleetingly, as your code does. See U2 frame SA/NV a/k/a SANV.

To make your HBSA routine more generic -- i.e., to cover the situations where (1) the loaded U2 is
named something other than XYWWWEB.U2, or (2) the user's practice is to edit a master U2 file and
LOAD a copy of the master U2 -- you'd need something like this:

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5LHorSA}} LoadHelp if U2, else SAve [CLD][cr|lf]{002}{<}SV
99,Edit_Copy_of_U2_File{>}[JM_]2.RegData[Q2_]{<}IF{<}VA|99{>}
<1{>}{<}SX99,{<}VA$U2{>}{>}{<}EI{>}{<}IF{<}VA$FP{>}==@upr({<}
IS99{>}){>}[JM_]2.LH[Q2_]{<}EX{>}{<}EI{>}[JM_]2.sa/nv[Q2_]{00
2}[cr|lf]
-nd
XPLeNCODE


--
Carl Distefano
cld@xxxxxxxx