Anonymous
|
Regarding NAMEGetTextItem -- you are right, one could pass a ref. to a String instead of passing a pointer. That would do the trick in some circumstances. However, our current LS code uses NAMEGetTextItem in conjunction with NAMELocateNextMatch, as illustrated in the following incomplete example: pMatch = NAMELocateNextMatch( pLookup, pName, pMatch ) res = NAMEGetTextItem( pMatch, 0, 0, strBuf, 256 ) That is, we obtain a pointer, pMatch, from NAMELocateNextMatch, which we subsequently pass to NAMEGetTextItem ("pointer by value", so to speak). That's why I was asking also for an x-wrapper of NAMEGetTextItem. I guess we'll have to re-think the way how we do things in LS before I get back to you regarding your suggestions. Thanks a lot anyway for responding in so much detail. Sidenote: We don't have an iSeries machine, but some of our partners and customers do, so we might be able to do what you suggested. - Jochen
|