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

Re: Ninth window



Reply to note from "morris krok"  Tue, 15 Mar
2005 21:51:15 +0200

> the program below, . . . will open sequentially will open 8
> windows, filling each with a file from a selected directory
> located in window 1. How is it possible to fill this window
> with another file that replaces the directory that is there.

I take it that this code is a snippet? Because as written it does
nothing. But... to answer your question:

To keep the directory upon CAlling a file, set default NW to 1 (or 2
or 4). To discard the directory upon CAlling a file (so that the
CAlled file replaces the directory in the current window), set NW to
3 (or 0). What you want to do in your example is set NW to 1 (keep
directory) as long as there is at least one Window Available, i.e.,
as long as VA$WA is greater than 0. When VA$WA becomes 0, set
default NW=3 (discard directory) before CAlling the last file in the
series, which then replaces the directory in the last available
window. Here is a markup of your code snippet; see the last line
(starting just before before LaBel "x"):

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX02,{<}VANW{>}{>}[BX_]d nw=1[Q2_]{<}LBb{>}{<}SX01,{<}VA$D
R{>}{>}{<}IF{<}IS01{>}{240}".DOC"!{<}IS01{>}{240}".EXE"!{<}IS
01{>}{240}".COM"{>}[LD_]{<}GLb{>}[cr|lf]{<}EI{>};*;[cr|lf]{<}
IF{<}VA$WA{>}>0{>}{<}LBx{>}[BC_]ca/100[XC_][CH_][TF_][BX_]d n
w={<}PV02{>}[Q2_][AS_][CD_]{<}EX{>}{<}EI{>};*;[cr|lf][BX_]d n
w=3[Q2_]{<}GLx{>}[cr|lf][cr|lf]
-nd
XPLeNCODE

--
Carl Distefano
cld@xxxxxxxx