HP3000-L Archives

June 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Rick Gilligan <[log in to unmask]>
Reply To:
Rick Gilligan <[log in to unmask]>
Date:
Wed, 16 Jun 1999 22:41:30 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
In article <[log in to unmask]>,
Paveza, Gary <[log in to unmask]> wrote:
>
>DBINFO mode 104 to get the number of items within the set (this gives me
>the loop boundaries for the next step - i.e. if there are 5 items, then
>I need to do the next step 5 times).  This also returns the item numbers
>for those particular items (I'm assuming that every item in the database
>has it's own unique number - please correct me if I'm wrong).   Getting
>the number of items seems to work correctly, however I don't know of a
>way to check the item numbers being returned (though based on step #2
>I'm not sure that they are right).
>
>I then try to DBINFO mode 102 using the item numbers returned above to
>get the data item name.  This always fails.

For each item number returned from the mode 104 call, if is negative,
complement it (no, don't tell it that you think it lost weight :-)) before
supplying it in the mode 102 call.

If the executing user has read and write access to the item in the set,
the item number is returned as a negative number.  If only read access, it
is returned as a positive number.  All item numbers to the mode 102 call
must be positive.


--
Rick Gilligan
Senior Software Specialist
Computer And Software Enterprises, Inc.
E-mail: [log in to unmask]

ATOM RSS1 RSS2