QTP choose problem
Deskin, Bob
Bob.Deskin@Cognos.COM
Mon, 2 Nov 1998 14:51:25 -0500
I wish it were that easy :-(
Bob Deskin
Senior Product Advisor bob.deskin@cognos.com
Cognos Inc. (613) 738-1338 ext 4205 FAX: (613) 228-3149
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA
> ----------
> From: Richard Witkopp[SMTP:witkopp@idt.com]
> Sent: Monday, November 02, 1998 2:00 PM
> To: Powerh-l@lists.swau.edu
> Subject: RE: QTP choose problem
>
> Yes, the FACILITY_PRODUCT field is character. Ha, ha, nice answer
> "7.10E1 is not Year 2000 compliant". No mention of dates anywhere
> in this code, but now you guys have a universal cause for every
> problem for the next year or so. :-)
>
> > The Define is done before the choose since it's a DEFINE with
> > PARM. I tried
> > much the same thing in 7.10F2 and it worked. Is
> > FACILITY_PRODUCT a character
> > item? Although if the item type is worng you get a different
> > message. I
> > suggest trying a later version. After all 7.10E1 is not Year
> > 2000 compliant.
> >
> > Bob Deskin
> > Senior Product Advisor bob.deskin@cognos.com
> > Cognos Inc. (613) 738-1338 ext 4205 FAX: (613) 228-3149
> > 3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA
> >
> >
> > > ----------
> > > From: arthur kogan[SMTP:akogan@westpac.com.au]
> > > Sent: Sunday, November 01, 1998 5:36 PM
> > > To: Richard Witkopp
> > > Cc: Powerh-l@lists.swau.edu
> > > Subject: Re: QTP choose problem
> > >
> > > Hi Richard,
> > >
> > > I have not checked this out in the manual, but it looks to
> > me that the
> > > problem
> > > occurs because "choose" is done before any "define"s. Thus
> > at the time of
> > > doing
> > > the "choose", the defined value does not yet exist. Thus
> > you are getting
> > > an
> > > error.
> > >
> > > NOTE: if this is a QTP, you should use a "global temp"
> > instead of the
> > > "define".
> > > Global temps are always processed first, i.e. BEFORE any
> > "choose"s or
> > > "define"s.
> > >
> > > Regards,
> > >
> > > Arthur Kogan
> > > Westpac Financial Services
> > > Sydney, Australia
> > >
> > > Richard Witkopp wrote:
> > >
> > > > Howdy PowerHosers,
> > > >
> > > > I am having a problem with QTP while parsing a choose
> > statement that is
> > > > almost verbatim like an example in the manual. What's
> > wrong with this
> > > > picture?
> > > >
> > > > > define d_loc char * 3 = parm prompt "Enter location
> > (PHL, PNG, USA,
> > > VEN):
> > > > " &
> > > > > upshift
> > > > >
> > > > > choose facility_product (d_loc + "ASM@")
> > > > *E* Expression specified for CHOOSE value contains invalid item
> > > reference.
> > > >
> > > > Thanks
> > > >
> > > > Vax VMS 7.10.e1
> > > >
> > > > = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> > = = = = = = =
> > > = =
> > > > 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.
> > >
> > >
> > >
> > > = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> > = = = = = = =
> > > =
> > > 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.
> > >
> > = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> > = = = = = = =
> > 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.
> >
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> =
> 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.
>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.