|
Hmm, to me, an array _is_ a collection. In VB, it's a collection of objects, which turns out to be just a list of pointers. Record buffers are just a contiguous group of bytes in memory. You can certainly manipulate one to be the other without the need for IBM to do anything.
I think the point was that in VB, he can refer to them by the variable name, even though which variable he's referring to isn't known at the time he's writing the source code.
The reason this is possible is because VB was designed to be an interpreted language. I haven't worked in VB in quite awhile, but back in the day that I worked in it, you could run a VB program without compiling it -- so the variable names were still there at runtime.
On the other hand, you can't do that with Visual C becuse it's a purely compiled language. (like RPG is)
I already suggested 3 different ways to preserve variable names and use them at runtime, though. None of those will serve the purpose?
As an Amazon Associate we earn from qualifying purchases.
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.