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

Re: Corrected HBSA



Carl,
I get: "Cannot compare number to string" for the re at the top. Storing them first in S/Gs works though.
Reply to note from Harry Binswanger  Sun, 18 Oct
2009 19:48:42 -0700

Harry:

> Okay, I think this is right.

No, > is wrong. You're backing up the file in the
current directory -- not necessarily the displayed file! At a
minimum, you should do something like this:

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{<}VA$FP{>}<>{<}VA$U2{>}{>}{<}S
X01,{<}VA$FP{>}{>}{<}SX02,{<}VA$FI{>}{>}{<}IF{<}IS01{>}<>("C:
\BAK\"+{<}IS02{>}){>}[BX_]copy/nv {<}PV01{>} C:\BAK\{<}PV02{>
}[Q2_]{<}EI{>}[BX_]sa[Q2_]{<}IF@not({<}ER{>}){>}{<}PRSaved an
d backed up{>}{<}EI{>}{<}EX{>}{<}EI{>}[JM_]2.LH[Q2_]{002}[cr|
lf][cr|lf]
-nd
XPLeNCODE

This doesn't take [UNTITLED] and other bracketed filenames into
account, but neither does your original.

--
Carl Distefano
cld@xxxxxxxx


Harry Binswanger
hb@xxxxxxxx