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



I was wondering if anyone had an easy way to convert from numeric data
types to character types and back.  I have a data structure that contains
alpha, packed, and binary fields.  It gets moved into a long alpha field
and passed to another program.  Instead of reading the long alpha field
into back into the data structure, I would like to substring out the
variables and move them to hold fields.  When I substring out the binary (4
positions in the buffer) to a 4 alpha field and try to move it to a 9b 0
field, my program blows up.  The hex values of the fields are the same, so
it makes me wonder why RPG won't do the conversion.

Thanks,
Andy



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.