Global Temps in QTP
Pickering, John (NORBORD)
John.Pickering@norbord.com
Thu, 9 Dec 2004 11:47:37 -0500
Not to mention that Derek's method involves evaluating the item only ONCE
per run whereas Harvey's method evaluates it for EVERY record in the subfile
*xyz. If there is more than a single record in the subfile then this is not
a particularly smart technique.
I know it's not a popular notion in this Microsoft era but I still contend
that a cpu cycle is a terrible thing to waste.
Regards,
JWP
-----Original Message-----
From: Fyfield, Derek [mailto:DEREK.FYFIELD@orbit.net]
RUN FRED
GLOBAL TEMPORARY g_start_date char*8 &
initial GETSYSTEMVAL("START_DATE",symbol)
REQUEST ONE
Access ....
Cheers,
Derek.
>From: Harvey Orom <harvey@oromconsulting.com>
>To: powerh-l@lists.sowder.com
>Subject: Global Temps in QTP
>Date: Wed, 08 Dec 2004 09:52:40 -0800
>
>Hi,
>
>I am using Powerhouse 7.10.G1 and I am having a problem with global temps
>being set in one request, but the values in the temps being dropped for the
>request immediately following:
>
>i.e
>
>$ START_DATE :== "20010101"
>$QTP
>run runname
>global temp g_start_date char*8
>
>request ONE
>
>access *xyz
>item g_start_date = GETSYSTEMVAL("START_DATE",symbol)
>
>select if starting_date of xyz > g_start_date
>