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

Programming oddity



Attempting to expedite the resetting of color defaults on my various
system, I thought to write a routine that would display the values of
each setting. It seemed straightforward enough, but I'm getting some odd
results.

I did it in stages, then cut-and-pasted the pieces together. And
something went haywire.
Here's the first routine:
XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX50,{<}VAL0{>}{>}{<}SX51,{<}VA@50{>}{>}{<}XS51,02,03,04,0
5{>}{<}SX01,{<}VA@51,1{>}{>}{<}SX02,{<}VA@51,2{>}{>}{<}SX03,{
<}VA@51,3{>}{>}{<}SX04,{<}VA@51,4{>}{>}{<}SX05,{<}VA@51,5{>}{
>}[BC_]new[XC_][GT_]Values in L0, Action Bar:[cr|lf]{tab}Item
s are {<}PV01{>}[cr|lf]{tab}Highlighted items are {<}PV02{>}[
cr|lf]{tab}Accelerator character is {<}PV03{>}[cr|lf]{tab}Bac
kground is {<}PV04{>}[cr|lf]Created by parsel0.pgm[cr|lf]
-nd
XPLeNCODE

And here's the file it produces:
Values in L0, Action Bar:
	Items are 113
	Highlighted items are 71
	Accelerator character is 116
	Background is 121
Created by parsel0.pgm

And here's the second:
XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX50,{<}VAL0{>}{>}{<}SX51,{<}VA@50{>}{>}{<}XS51,02,03,04,0
5{>}{<}SX01,{<}VA@51,1{>}{>}{<}SX02,{<}VA@51,2{>}{>}{<}SX03,{
<}VA@51,3{>}{>}{<}SX04,{<}VA@51,4{>}{>}{<}SX05,{<}VA@51,5{>}{
>}{<}SX60,{<}VAL1{>}{>}{<}SX61,{<}VA@60{>}{>}{<}XS61,02,03,04
,05{>}{<}SX11,{<}VA@61,1{>}{>}{<}SX12,{<}VA@61,2{>}{>}{<}SX13
,{<}VA@61,3{>}{>}{<}SX14,{<}VA@61,4{>}{>}{<}SX15,{<}VA@61,5{>
}{>}[BC_]new[XC_][GT_]Values in L0, Action Bar:[cr|lf]{tab}It
ems are {<}PV01{>}[cr|lf]{tab}Highlighted items are {<}PV02{>
}[cr|lf]{tab}Accelerator character is {<}PV03{>}[cr|lf]{tab}B
ackground is {<}PV04{>}[cr|lf]Values in L1, Command Line Colo
rs:[cr|lf]{tab}Current path is {<}PV11{>}[cr|lf]{tab}Typed te
xt is {<}PV12{>}[cr|lf]{tab}Wild cards are {<}PV13{>}[cr|lf]{
tab}Function calls are {<}PV14{>}[cr|lf]Created by parsel1.pg
m[cr|lf]
-nd
XPLeNCODE

And here's the file it produces:

Values in L0, Action Bar:
	Items are 113
	Highlighted items are 71
	Accelerator character is 116
	Background is
Values in L1, Command Line Colors:
	Current path is 113
	Typed text is 31
	Wild cards are 78
	Function calls are 29
Created by parsel1.pgm

What happened to the fourth value of L0 in the second iteration? I cannot
find any difference in the code, but PV04 produces a result the first
time and nothing the second. Curioser and curioser.

Patricia M. Godfrey
PMGodfrey@xxxxxxxx