Anyone know if an ASCII to EBCDIC routine in VB?
Thanks,
Jon
Printable View
Anyone know if an ASCII to EBCDIC routine in VB?
Thanks,
Jon
There doesn't appear to be, which is understandable considering that VB is very unlikely to appear for a mainframe.
http://www.planetsourcecode.com/xq/A...s/ShowCode.htm is what you need.
The following site has the data you would need to write a Function or Subroutine for EBCDIC to ASCII (or vice versa) conversion. http://czyborra.com/charsets/iso646.html
The code should be easy to write using a pair of arrays or using one code as subscript into an array containing corresponding values of the other code.
There are likely to be other sites. I used ASCII & EBCDIC as keywords to find the above site. A different or better search engine might have found other sites of interest.
Are you aware that there are various Terminal Emulation packages available? Procom Plus from QuarterDeck allows a PC to act like a Mainframe Terminal. Perhaps what you really want is a terminal emulator.
I think QuarterDeck was bought out by somebody (Maybe Symantec).
Thanks for your help guys.
After a lot of searching I found a VB routine st msdn:
http://support.microsoft.com/support.../Q216/3/99.ASP