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

Re: Strange SA/NV behavior--BK is culprit



In addition what Carl said, about the need to copy VA$FP to BAK\VA$FI, you're not saving your edits. You also need to SA/NV VA$FP after the copy.
Holy Cow! I have my SA do everything but SA! Could have been disaster
squared. Thanks Paul!
I put the SA (without an /NV) before the copy. Do you think that makes more
sense, per the following?

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5hbsa}} For ctrl-s: if file is the U2, will call LoadHelp{032}
[HB 11/03/08][cr|lf]{002}{<}IF@Upr({<}VA$FI{>})=="XYWWWEB.U2"
{>}[JM_]2.LH[Q2_]{<}EX{>}{<}EI{>}{<}SX01,{<}VA$FP{>}{>}[GT_][
255+048+068][BD_][BX_]sa[Q2_]{<}if({<}ER{>}){<}PRError-not sa
ved, not backed up{>}{<}EX{>}{<}EI{>}[BX_]copy/nv {<}PV01{>}{032}
C:\BAK\{<}PV01{>}[Q2_]{<}IF@NOT({<}ER{>}){>}{<}PRSaved & back
ed up{>}{<}EX{>}{<}EI{>}{<}PRError{>}{002}[cr|lf]
-nd
XPLeNCODE

--Harry
Paul Lagasse

Harry Binswanger wrote:
Paul wrote,
I'm saving the unedited version of the open file as the backup copy.
Hmmm, yes. I think that's what BK=1 does, and what I want to do. I worked
a simple way to do this:
>BX copy/nv  C:\BAK\Q2
IF@NOT()>
If I try to use this with the text in [Untitled], I get the Error prompt,
which is fine.
This is now part of my slightly larger frame, HBSA, that does the proper
Save (LoadHigh) of U2 if that's where you are:

XPLeNCODE v2.0
b-gin [UNTITLED]
{002}{<}IF@Upr({<}VA$FI{>})=="XYWWWEB.U2"{>}[JM_]2.LH[Q2_]{<}
EX{>}{<}EI{>}{<}SX01,{<}VA$FI{>}{>}[GT_][255+048+068][BD_][BX
_]copy/nv {<}PV01{>} C:\BAK\{<}PV01{>}[Q2_]{<}IF@NOT({<}ER{>}
){>}{<}PRSaved{>}{<}EX{>}{<}EI{>}{<}PRError{>}{002}[cr|lf]
-nd
XPLeNCODE

Naturally, I do the kbd assignment, in TABLE=CTRL:

31=nojm(,2,.,h,b,s,a,)

Probably Carl can find some "gotcha" with doing the COPY/NV.


Harry Binswanger
hb@xxxxxxxx


Harry Binswanger
hb@xxxxxxxx