|
>> I'm looking for a way that I can display or print the value of a Pointer in RPG IV. Simply map it to a character field (or multiple integers for that matter) via a DS. You still won't be able to "prove" that it is a valid pointer since there is no way to directly incorporate the tag bit but ... I guess if it were critical you could incorporate a test for *NULL and output that information too. However, seeing the pointer value is pretty useless information - it doesn't even really help in testing even since the data it points to may be the same - but the address of the pointer different. Since a pointers purpose is to "point" to data - why not simply dereference the pointer (i.e. use it as a basing pointer) for an arbitrary field and display the content of that field? I would think that seeing if the data matches is far more useful than knowing the value of the pointer anyway. I also wonder why you'd return a pointer in the first place - but that's for another day. Jon Paris Partner400 www.Partner400.com www.RPGWorld.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.