Re: Query on best programming practice

  • From: "Carl Distefano" <cld@xxxxxxxxxx>
  • To: xywrite@xxxxxxxxxxxxx
  • Date: Sat, 3 Dec 2016 17:31:59 -0500

Reply to note from Harry Binswanger <hb@xxxxxxxxxxxx> 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:

<LBa>BX ci "[wC]Harry[wC]"[wC]Barry[wC]"Q2 <IF@not(<ER>)><GLa><EI>;*;

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@xxxxxxxxxx


Other related posts: