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

Re: XPL problem with



Reply to note from Harry Binswanger  Mon, 03 Jan
2011 22:32:24 -0500

> I'm trying to debug my XPL programs by inserting a wait for me
> to hit a key, and to exit if I hit "x."
>
> But on my system, this doesn't give the prompt until after the
> keystroke has been given.

Your PRompt is misplaced. Put it before the RK statement if you want
it to display before the RK. Also, earlier in the code, you have an
extraneous PRompt that's immediately destroyed by func FF and
therefore does nothing.

Try this:

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SV01,{>}{<}SV50,{>}{<}SX55,0{>};*;[cr|lf];*;[cr|lf][XD_][T
F_][DF_][NW_][DF_]{<}SX55,{<}PV55{>}+1{>};*;[cr|lf]{<}PR@55{>
}{<}IF{<}RK{>}=="x"{>}{<}EX1{>}{<}EI{>};*;[cr|lf][BC_]done;*;
[cr|lf]{<}EX{>}[cr|lf]
-nd
XPLeNCODE

> (I also have a problem that in longer programs, the screen is
> not updated, even when I put in an FF, but first things first.)

Are you freezing the display (func DX) at any point? If so, use
DO FF . Also, try having the program work in eXPanded view instead
of in a formatted view. Hard to say more without a concrete example.

--
Carl Distefano
cld@xxxxxxxx