× 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.



On Fri, 2004-09-10 at 21:38, Richard Rothe wrote:
> > there is no need to use the getter and pull the information into a
> program variable *every time* you want to use it.  
> >Embedding the procedure calls into expressions is supposed to be one of
> the benefits of ILE!
> 
> The way I understand it, you have to do the getRec to get the data
> stucture populated.  Then every time you want to access a field, you use
> the "getter" in an eval, expression, whatever.  Right ?
> 
> Basically,
> 
> c                   If        GetItemRec( iCo : iPart )       
> c                   eval      desc = GetItemDesc              
> c                   eval      commodity = GetCommodityCode    
> c                   EndIf                                     
> 
> Or
> 
> c                   If        GetItemRec ( Co : Part ) and 
> c                             GetCommodityCode <> 'XXX'
> 
> The GetItemRec populates the data structure so the "getters" can be
> used.   

Yes, just like doing a chain and then using the field names, instead now
you are doing a getRecord() and a getVariable().

Joel
http://www.rpgnext.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2025 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.