Arrays in Qtp
Michael Lee
mcl_systems@bc.sympatico.ca
Fri, 26 Mar 1999 08:46:53 -0800
As far as I know you cannot do this. I think you can include an array in a
subfile but it won't let you reference any values except for the first one
(mainly because it is the default). Perhaps someone has a way around this, but
it is definitely not a supported option.
Michael Lee
MCL Systems Inc.
Ray Bailey wrote:
> VMS 7.1 P/H 710G & HPUX 10.2 P/H 7.33.d3
>
> Picture the following
>
> Record RRR layout
>
> NAME Char*10
> QUALIFICATION Char*5 occurs 30
>
> I want to create a subfile holding one record per valid QUALIFICATION so I
> tried the following.
>
> Access RRR
>
> Subfile SUBFILE_NAME keep alias SUB_01 &
> if QUALIFICATION(1) ne " " &
> include NAME, QUALIFICATION(1)
>
> Subfile SUBFILE_NAME keep alias SUB_02 &
> if QUALIFICATION(2) ne " " &
> include NAME, QUALIFICATION(2)
>
> ~~~~~~~~
>
> Subfile SUBFILE_NAME keep alias SUB_30 &
> if QUALIFICATION(30) ne " " &
> include NAME, QUALIFICATION(30)
>
> This seems to be okay with the subscript being specified on the IF option
> but not as part of the INCLUDE.
>
> Does anyone know any way I can do this without having to define thirty items
> or creating a redefinition in the dictionary.
>
> BTW I've allow tried it specifying "of RRR".
>
> Ray Bailey
> Leicester
> England
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> 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.