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

Re: nine windoiws and less



Reply to note from "Morris Krok"  Fri, 16 Jan
2004 16:31:24 +0200

> I have created the program below which emables me to open all
> the windows at one time from the log2003.lg file. However, for
> this program to work when there is less than nine files, I
> have to add a dummy file name at the end. Is there another way
> to accomplish this without doing this?

I don't see the problem. Your code works fine without a dummy
filename, even if there are fewer than nine files to be CAlled.

I refined your code in rewrite 1) below. What you needed, mainly,
was an orderly EXit procedure that separately flags the "No more
files" and "No more windows" error conditions.

I also suggested some streamlining. For example, why do you lock
yourself into having the subject file in window #1? And no need to
use two Save/Gets when one will do.

I don't pretend to understand your idiosyncratic method to delimit
target filenames in the subject text; I just assumed it works for
you. You could make life simpler by, for example, enclosing the
target filenames in double quotes ("c:\path\myfile.ext"). Rewrite
2) assumes double quotes around filenames.

Issue DECODE to convert the following into working code:

XPLeNCODE v2.0
b-gin [UNTITLED]
;*; 1) Original filename DeFine method[cr|lf][BX_]es 1[Q2_][T
F_];*;[cr|lf]{<}LBstart{>}{<}IF{<}VA$WA{>}>0{>}[BX_]se /c:\/[
Q2_]{<}IF@not({<}ER{>}){>};*;[cr|lf][CL_][CL_][CL_][DF_][BX_]
se /./[Q2_][CR_][CR_][CR_][DF_];*;[cr|lf]{<}SV01{>}[YD_][BX_]
ca {<}PV01{>}[Q2_][AS_][CD_][BX_]seb /med/[Q2_]{<}GLstart{>}[
cr|lf]{<}EI{>}{<}PRNo more files{>}{<}EX{>}{<}EI{>}{<}PRNo mo
re windows{>}{<}EX{>}[cr|lf][cr|lf];*; 2) Filenames enclosed{032}
in double quotes ("C:\PATH\MYFILE.EXT")[cr|lf][BX_]es 1[Q2_][
TF_];*;[cr|lf]{<}LBstart{>}{<}IF{<}VA$WA{>}>0{>}[BX_]se "c:\
[Q2_]{<}IF@not({<}ER{>}){>};*;[cr|lf][CL_][CL_][CL_][DF_][BX_
]se/f "[Q2_][DF_];*;[cr|lf]{<}SV01{>}[YD_][BX_]ca {<}PV01{>}
[Q2_][AS_]{<}GLstart{>}[cr|lf]{<}EI{>}{<}PRNo more files{>}{<
}EX{>}{<}EI{>}{<}PRNo more windows{>}{<}EX{>}[cr|lf][cr|lf]
-nd
XPLeNCODE

--
Carl Distefano
cld@xxxxxxxx