Question
Chris.Sharman@ccagroup.co.uk
Chris.Sharman@ccagroup.co.uk
Thu, 28 May 1998 09:41:01 GMT
> I have a slight problem I was hoping someone could help me with.
>I need a list of numbers in a file and I need to assign each number a
>specific control number. I know what the beginning control number is and
>I need to increment it by one for each number and then write them both
>out to a subfile. number control #
> 1 0011
> 2 0012
> 3 0013
> 4 0014
> 5 0015
In Quiz:
def pos int*9 = 1
rep sum pos subt [at control-break]
will get you a counted series, but no way to give it an initial value.
QTP will allow you to set an initial value, and there are several ways to
achieve what you want, depending how you're going to load the initial value.
You could use a global temp, with one request to initialize it, then a second
request with an item count statement; or you could do it all in one with an
item count initial statement.
ITEM control-number COUNT [AT control-break] INITIAL base-number
______________________________________________________________________
Chris Sharman Chris.Sharman@CCAgroup.co.uk
CCA Stationery Ltd, Eastway, Fulwood, Preston, Lancashire, PR2 9WS.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.