× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: User Index APIs
  • From: David Morris <dmorris@xxxxxxxxxxxxx>
  • Date: Tue, 03 Feb 1998 08:49:13 -0700

Simon,

Thank you for clearly explaining what I could not understand from the manual.  
I feel a lot better 
knowing that the code we have is working by design rather than chance.  I did 
not understand 
that the bytes available and returned in the entry lengths and entry offsets 
structure described itself.  
I thought the length of entry lengths and entry offsets was doing that.  Should 
have realized that 
it was input to the API.

Thanks,

David Morris

>> Date: Mon, 02 Feb 98 14:34:31 -0700
>> From: "David Morris" <dmorris@plumcreek.com>

>>The code we are using was based on trial and error testing.  It works for the 
>8 user indexes that we 
have but it would be nice to understand what is going on.
>> 
>> Thanks for any input,
>> 
>> David Morris
>>

>>> "Simon Coulter" <shc@flybynight.com.au> 02/03 2:54 AM >>>

>So for your situation I think you will find that the BytesAvailable and 
>BytesReturned values of 16 
refer to the length/offset space which has the following structure:
 1 EntOff
  2 BytesAvailable bin(4)
  2 BytesReturned bin(4)
  2 FirstEntryLength bin(4)
  2 FirstEntryOffset bin(4)
for a total of 16-bytes.

>You should also find that the BytesAvaliable and BytesReturned in the RcvVar 
>structure reflect the 
proper values i.e., BytesAvailable = 20 and BytesReturned = 20
 1 RcvVar
  2 BytesAvailable bin(4)
  2 BytesReturned bin(4)
  2 FirstEntry char(12)
   3 FirstEntryKey char(8)
   3 FirstEntryValue char(4)


>Clear as mud, eh?

>Regards,
>Simon Coulter.

//----------------------------------------------------------
// FlyByNight Software         AS/400 Technical Specialists
// Phone: +61 3 9419 0175      Mobile: +61 3 0411 091 400
// Fax:   +61 3 9419 0175      E-mail: shc@flybynight.com.au 
// 
// Windoze should not be open at Warp speed.

                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                     
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.