|
Carlos, I think Operational Descriptors are what you looking for. You pass it the parameter number passed to the module or procedure and it will return the data type. You have to define OPDESC on the procedure prototype and interface and use the CEEDOD or CEEGSI API's. Regards, Carel Teijgeler *********** REPLY SEPARATOR *********** On 22-8-03 at 16:44 Carlos Kozuszko wrote: >Is it possible to code a procedure to get the type of any variable given the >address of that variable ? >Something like: > >d num s 3p 0 >d str s 20a >d vastr s 50a varying > >callp SetBufferLayout(%addr(num)); >callp SetBufferLayout(%addr(str)); >callp SetBufferLayout(%addr(vastr)); > >If want the function Setbuffet to get the type of each variable and process >according to it. Is this somehow possible ?
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.