[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: LH vs. SAve
- Subject: Re: LH vs. SAve
- From: Harry Binswanger hb@xxxxxxxx
- Date: Mon, 03 Nov 2008 16:54:39 -0500
Carl,
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.
I'm trying to figure out how that works. Is it that the null s/g 01 puts a
"nothing" into the file, which XyWrite thinks is a change, so the save then
works?
Re the more generic call to LH--yes, I was worried about my code being a
little parochial in just that way. Thanks.
--Harry
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
Harry Binswanger
hb@xxxxxxxx