Quiz Question - Array
Pickering, John (NORBORD)
PICKERIJ@norbord.com
Sat, 11 Nov 2000 17:05:50 -0500
Depending on how many branches there are you could do soemthing really
brutal like the following:
define d-b1 char*1 = "Y" if <belongs to branch 1> else ""
define d-b2 char*1 = "Y" if <belongs to branch 2> else ""
define d-b3 char*1 = "Y" if <belongs to branch 3> else ""
define d-b4 char*1 = "Y" if <belongs to branch 4> else ""
...
define d-b13 char*1 = "Y" if <belongs to branch 13> else ""
define d-b14 char*1 = "Y" if <belongs to branch 14> else ""
...
define d-b25 char*1 = "Y" if <belongs to branch 25> else ""
...
define d-b50 char*1 = "Y" if <belongs to branch 50> else ""
define d-memotype char*50 & ; (or however many branches you've allowed for)
= d-b1 + d-b2 + d-b3 + d-b4 ... + d-b13 + d-b14 ... + d-b25 ... + d-b50
I could think of fancier ways with Qtp's item statements but you specified
Quiz. I'd also want to know more about what constitutes the test for
"belongs to branch n".
Regards,
JWP
> -----Original Message-----
> From: Arnone, Anthony [SMTP:aarnone@grey.com]
> Sent: Friday, November 10, 2000 3:15 PM
> To: 'powerh-l@sphere.swau.edu'
> Subject: Quiz Question - Array
>
> Hello Everyone,
>
> I have a question, I need to populate a field in MSAccess which is
> memo type. I need to create a file using Quiz8.19 on an HP3000 which will
> populate this field at certain positions depending on certain
> circumstances.
> For example if the record belongs to branch 13 I need to put a 'Y' in the
> 13th position of the memo type field, it can also belong to branches 13,14
> &
> 25 and then I need to put a 'Y' in positions 13,14 & 25 of that record. if
> anyone has any advice on how to do this I would appreciate it.
>
>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.