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

Re: Query on best programming practice



Thanks Carl. That's the way I had been doing it, even aided by a little U2
frame. The advice is helpful.

Regards,
Harry

Reply to note from Harry Binswanger  Sat, 03 Dec 2016
09:35:52 -0500

Harry,

> What is the best way to make sure no stacked elements are skipped?

Ordinarily you want to avoid putting characters into the text that
aren't already there, as a programming crutch (e.g., a temporary change
from CrLf to CrLfCrLf), as this can have unintended results. What I do
in this situation is to use a loop that repeats the CI command until a
"Not found" error results:

Pseudo-code:

BX ci "[wC]Harry[wC]"[wC]Barry[wC]"Q2 )>;*;

Real (DECodable) code:

XPLeNCODE v2.0 (ENCODE.EXE)
b-gin [UNTITLED]
{<}LBa{>}[BX_]ci "[wC]Harry[wC]"[wC]Barry[wC]"[Q2_]{<}IF@not({<}
ER{>}){>}{<}GLa{>}{<}EI{>};*;[cr|lf]
-nd
XPLeNCODE

Hope this helps.

--
Carl Distefano
cld@xxxxxxxx