Article ID: 106030
Article Last Modified on 11/17/2003
CLEAR
* Create a memory variable to hold the desired number of copies
* and prompt for input.
numcopies=1
@ 2,10 SAY "How many copies? " ;
GET numcopies
READ
* Create a cursor with one field that will remain blank.
CREATE CURSOR mycopies ;
(cno C(5))
* Create one record in the cursor for each label copy desired.
FOR i = 1 TO numcopies
INSERT INTO mycopies (cno) VALUES (" ")
ENDFOR
* Perform an SQL join on the cursor and the live database.
* A WHERE clause can be used to limit the records selected.
SELECT customer.company, ;
customer.address, customer.city, ;
customer.state, customer.zip, mycopies.cno ;
FROM customer, mycopies ;
INTO cursor lablinfo
* Print the existing label form.
SELECT lablinfo
LABEL FORM mylabel TO PRINT
* Clean up afterwards.
SELECT lablinfo
USE
SELECT mycopies
USE
Additional query words: VFoxWin FoxDos FoxWin FoxMac 2.50 2.50a 2.50b 2.50c 2.60 set sequential order adjacent
Keywords: KB106030