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

XPL detective



     C an anyone advise me how to download Stack.doc and Ctrlchars (I believe this file contains more programming information). Stack I believe keeps a list of Command line entries. Harry may be the best person to inform one about the Stack program as he went to a great deal of trouble to get it right.
 
  As Xpl and XyWrite is over 20 years in development to reach its present state, it is replete with so many subtle aids in the form of Df values and Va settings, that one has to be a Xpl detective to know which one to use. One of the things I had to investigate is Va$Wa. A program contaning this setting appears below in encoded form. Its purpose is to place files into every open window.
 
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_]{<}IFnot({<}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]e
-nd
XPLeNCODE
 
  But when I wanted to close all the windows automatically, I had to use Va$Ws in the encoded program below. Va$Wa did not work. The solution only came to me when I looked at Clrw in the  U2 program which deals with the closing of files. This is a much more comprehensive approach to closing windows than my version. When I examined this U2 program I noticed that Va$Wa was not used. So when I replaced Va$Wa with Va$Ws, my program closed all the windows.
 
XPLeNCODE v2.0
b-gin [UNTITLED]
;*; 1) Program to close all windows automatically[cr|lf][BX_]
es 1[Q2_];*;[cr|lf]{<}LBstart{>}{<}IF{<}VA$WS{>}>0{>}[BC_]st{032}
[XC_]{<}IFnot({<}ER{>}){>};*;[cr|lf][NW_]{<}GLstart{>}[cr|lf
]{<}EI{>}[CH_]{<}PRNo more files{>}{<}EX{>}{<}EI{>}{<}PRNo mo
re windows{>}{<}EX{>}[cr|lf]
-nd
XPLeNCODE
 
  This shows that there is a subtle difference between these Va settings. I am sure there must be a reason why Va$Wa cannot be used for both opening and closing wndows.