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:

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:

This thread ...


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

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