Ok, here is the deal. With a CSV file the site I am assigned to can mathematically change to next field. with code below.
So question is if I have four Fields, (Name, Address, City, Zip)
Can I get the field number and do something similar without arrays. For instant Name is field1, Address is field2, etc...
%Begin Press Talk from CSV
setstyle(&a11)
define(&name, string, '')
define(&dob, string, '')
define(&x, measure, 0.00)
define(&y, measure, 0.00)
define(&name_int, integer, 8)
define(&counter, integer, 0)
define(&vert_offset, measure, 0.25)
&x := 0.5
&y := 5.0
repeat()
&name := @(&name_int,1,32) %CSV Field controlled by variables
&dob := @(&name_int+1,1,32) %CSV Field controlled by variables
&name := uppercase(&name)
moveto(&x, &y)
show(&name) %Data has 12-14 Fields that are displayed
show(' ')
show(&dob) %Data has 12-14 Fields that are displayed
&y := &y + &vert_offset
&counter := &counter + 1
&name_int := &name_int + 2
if(eq(&counter, 6))
&x := 4.5
&y := 5.0
endif()
until(eq(&counter, 12))