Incrementing a counter.

Joe Boyle atla38@dsl.pipex.com
Tue, 24 May 2005 14:31:33 +0100


most systems loose the variable after the process is returned from, so how
about add a request to get the next number as below, and then access a
subfile ( which will default to the users local area )

req gtnxt
acc getnxt 
choose reckey n
define dkey int = nxtkey of gtnxt
output gtnxt update
item nxtkey = nxtkey + k
subfile newkey keep include dkey


but you can do all of that in quick anyway, and without a subfile, so why
call a qtp ?

Regards, Joe.


-----Original Message-----
From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com] On Behalf Of Robert Mills
Sent: 24 May 2005 13:47
To: powerh-l@lists.sowder.com
Subject: QTP: Incrementing a counter.

Greetings to the -L,

Using QTP I need to increment a counter in a dataset (MPE/Image) and
return a copy of the incremented value in a system variable via
SETSYSTEMVAL.

Suggestions/examples on how to do it would be welcome.
 

regards, 
  
Robert W.Mills 
Systems Development Manager 
Windsong Services 
(020) 8309 3604 



-- 
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.