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

RE: Anyone else needing this U2 updater?



Reply to note from "Harry Binswanger"  Sun, 1 Jan 2017
18:01:00 -0500

Harry,

> U1? Who knew?

In Xy4 you can load up to four separate user customization files -- U1
through U4. (XyWin went up to U9, I think.) Robert and I chose U2 for
U2, because "you, too".

> Could you please explain what this means:
>
> LOAD DUMMY.U2; ==> COPY/NV EDITABLE.U2 HB.U2 <== ; LOAD HB.U2.
>
> It's the arrows that particularly throw me, plus not knowing what
> the three different filenames designate.

OK. You can't edit a loaded U2 file, right? So you "unload" your
current U2 by loading a different U2 file in its place -- a minimal
DUMMY.U2, consisting of the following three lines (not including the
dotted lines):

.....
;U2;

{{M*}}
.....

Then you edit your normal U2 file (can do, because it's no longer
loaded), SAve it, and reload. In steps:

LOAD DUMMY.U2
edit HB.U2
LOAD HB.U2.

I was arguing for an additional step. Instead of editing HB.U2, you
edit a *copy* of HB.U2 -- call it HBEDIT.U2. HBEDIT.U2 itself never
gets loaded; instead, you COPY/NV it to HB.U2, then reload HB.U2. So
the three steps above become four:

LOAD DUMMY.U2
edit HBEDIT.U2
COPY/NV HBEDIT.U2 HB.U2
LOAD HB.U2

Here's a frame, LHorSA, that automates it (reversing the first two
steps). It's a variant of LOADHELP designed specifically to work with
an editable *copy* of U2. If your editable copy of U2 is in the current
window, it SAves it and loads it over your current U2; otherwise, it
just SAves whatever file is in the current window and backs off.

XPLeNCODE v2.0 (ENCODE.EXE)
b-gin [UNTITLED]
{123}{123}5LHorSA{125}{125} SAve and Load **COPY** of editable
 U2 {091}CLD{093}{013}|      Editable U2 must be in curre
nt window; otherwise,{013}|      LHorSA simply SAves the{032}
current file and EXits ([255+065+069]EX1[255+065+070])[cr|lf]{002}
{<}IF{<}VA$WS{>}==1{>}[BX_]sa[Q2_]{<}IF{<}VA$EX{>}<>"U2"{>}{<}
EX{>}{<}EI{>}[BX_]es 1[Q2_][DX_];*;[cr|lf]{<}SX01,{<}VA$FP{>}{>}
{<}PRWorking...{>}{<}SX02,{<}VA$U2{>}{>}{<}IF{<}IS01{>}=={<}IS
02{>}{>};*;[cr|lf]{<}SV01,Editable U2 *is* the LOADed U2 -- us
e LOADHELP{>}{<}PR@01{>}{<}EX1{>}[cr|lf]{<}EI{>}{<}SX50,{<}IS0
2{>}{>}[JM_]2.GetPath[Q2_]{<}SX50,{<}IS50{>}{043}"\DUMMY.U2"{>}
;*;[cr|lf]{<}SX03,";U2;[cr|lf][cr|lf]{123}"{043}"{123}M*{125}"
{043}"{125}[cr|lf]"{>}[BX_]sa %03,{<}PV50{>}[Q2_]{<}IF{<}ER{>}
{>}{<}LBa{>}{<}SX01,{<}VA$ER{>}{>}{<}PR\@01{>}{<}EX1{>}[cr|lf]
{<}EI{>}[BX_]wait[Q2_][BX_]load {<}PV50{>}[Q2_]{<}IF{<}ER{>}{>}
{<}GLa{>}{<}EI{>}[BX_]wait[Q2_];*;[cr|lf][BX_]copy/nv {<}PV01{>}
 {<}PV02{>}[Q2_]{<}IF{<}ER{>}{>}{<}GLa{>}{<}EI{>}[BX_]wait[Q2_]
;*;[cr|lf][BX_][Q2_][BX_]load {<}PV02{>}[Q2_]{<}IF{<}VA$ER{>}<
{062}11{>}{<}GLa{>}{<}EI{>}[BX_]wait[Q2_];*;[cr|lf][GH_][BX_]e
rnv {<}PV50{>}[Q2_][GT_]{<}SX01,"Current U2="{043}{<}IS02{>}{>}
{<}PR@01{>}{<}EX{>}{<}EI{>}{<}PRNo file{>}{002}[cr|lf][cr|lf]
-nd
XPLeNCODE


> The reason for all the separate locations and filenames is to
> avoid stepping on my own toes

You'll minimize the chances of stepping on your own toes by editing a
copy of U2 instead of U2 itself.

HTH -- and HNY.

--
Carl Distefano
cld@xxxxxxxx