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



hi Larry,

For a list of returned values from an API, I agree with you. Indeed, any time you need to "move" a variable to view a different spot in memory, a *BASED variable is indeed the best choice. And a list API is certainly the most common example of that.

For building an SQL statement (the topic of this thread), I would suggest using *DEFINED, however... not *BASED as you originally suggested.


On 5/14/2012 2:39 PM, DrFranken wrote:
Scott,

In practice I find a combination of *BASED and *DEFINED is the
right answer. For an API that returns a list and each element in the
list is a number of fields I use *DEFINED to build the 'record layout'
and then use *BASED to roll through the list. Maybe this is what you
meant, but here is parts of an example from a program I wrote recently:


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