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

XPL HELP



I am trying to write an XPL program that will strip a lot of wire service junk
out of election return files and line up the columns so they can be read with
ease. I've come pretty close to my goal, but have a couple of problems. I
haven't been able to figure out how to move type over with the tab key function
call from the program. Curiously, if I load and run NT from another program, it
works. But that introduces another problem: once my program gets to the end of
the file, it won't break out of its tabbing loop. One other problem: I really
don't know how to make my columns line up on the decimal point, so that no
matter how large the number is it lines up correctly under the one above it.
I've included a short example of the raw product and how I'd like it to come
out. Thanks for your help.

[wb]By The Associated Press/c
/p Here are TEST returns from Kansas by District in the race for Governor./l
/l /mTP/n/n/i/i/i/iPR/n/n/n/i/iFinney/n/n/n/i/iHayden/j [wb]1st
District/l
/l Barber/n/n/i/n23/m/n/n/i/n/n0/m/n/n/i/n/n/n/i/n/n0/m/n/n/i/n/n/n/
i/n/n0/j
Barton/n/n/i/n40/m/n/n/i/n/n0/m/n/n/i/n/n/n/i/n/n0/m/n/n/i/n/n/n/
i/n/n0/j
Cheyenne/n/n/i/n10/m/n/n/i/n/n0/m/n/n/i/n/n/n/i/n/n0/m/n/n/i/n/n/
n/i/n/n0/j
Clark/n/n/i/n/n8/m/n/n/i/n/n0/m/n/n/i/n/n/n/i/n/n0/m/n/n/i/n/n/n/
i/n/n0/j
Cloud/n/n/i/n27/m/n/n/i/n/n0/m/n/n/i/n/n/n/i/n/n0/m/n/n/i/n/n/n/i
/n/n0/j
[wb]RegTotals/n1,054/m/n/n/i/n/n0/m/n/n/i/n/n/n/i/n/n0/m/n/n/i/n/
n/n/i/n/n0/j Heree's how I'd like it to look:
         TP    PR   Finney  Hayden Barger      23    0
0     0 Barton      40    0    0     0 Cheyenne
10    0    0     0 Clark       8    0    0     0
Cloud       27    0    0     0 RegTotals   1,052    0
0     0 And my program: BC ci =≪WW≫==XC BC ci =/n= =XC BC ci =/i= =XC BC
ci =/m= =XC BC ci =/j=/r=XC BC ci =[WW]==XC BC ci =totals=totals =XC TF BC se
=Barber=XC NI NW BC ldpm tab XC BC run tab CC XC CD EL NI NW XC CD EL NI NW XC
. The TAB program just has NT in it. These election tables, by the way are
enormous (and of course those 0s could be anything). Thanks for your help.
                Rob Perschau