Quick Question

Pickering, John (NORBORD) PICKERIJ@norbord.com
Tue, 27 Jul 1999 14:17:41 -0400


Anthony Arnone asks ...

>I need to create a quick screen to update data. The problem is that
>the file is a subfile which is currently defined as one record for a
>length of cha*500, so within the screen I need to break the record
>up into different items and then do a lookup on one of the items and
>then update the record. I can't seem to find anything on subfiles with
>quick in the manuals, so any help would be appreciated.
>(hp3000, MPE/iX, ver8.19)

I can think of several ways of doing this, take your choice!

1. Change whatever builds the subfile to include more realistic data
definitions instead of just one big 500 character chunk. Then access the
subfile in Quick and do whatever you need to do. You should probably use an
indexed subfile in this case.

2. Define a direct file in your data dictionary with the appropriate record
layout (totaling 500 characters). Point the open name from the dictionary
(something generic?) to the subfile with a file equate and then you can read
and update (but not delete).

3. Create a bunch of temporary items in the Quick screen and load them up in
the postfind procedure using the substring function. In the preupdate
procedure you can stitch the 500 character chunk back together from the
temps.

John Pickering
JWP Systems Inc
Toronto
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.