Code Comments
Programming Forum and web based access to our favorite programming groups.Hi people! What I'm trying to do is very simple, but I just can't figure it out since I'm not too good with COBOL. I have a set of characters that must not be found in a particular string. I know how to search a string and all, but my problem is that I receive the ASCII values of these characters and I can't seem to find a way to convert them back to chars (pic x) efficiently!? What I'm looking to do exactly is something like this piece of "C" code does: int iSomeChar = 64; char cThisChar = iSomeChar; Since ASCII for 0064 is "@", cThisChar now has the value "@". It's so simple that I even feel dumb asking. Thanks a lot for your help, Type-D
Post Follow-up to this messageWould the intrinsic function "CHAR" meet your needs? -Chuck Stevens "Type-D" <b18cspecr@yahoo.ca> wrote in message news:ebdca0cf.0408261240.1f740a03@posting.google.com... > Hi people! > > What I'm trying to do is very simple, but I just can't figure it out > since I'm not too good with COBOL. I have a set of characters that > must not be found in a particular string. I know how to search a > string and all, but my problem is that I receive the ASCII values of > these characters and I can't seem to find a way to convert them back > to chars (pic x) efficiently!? What I'm looking to do exactly is > something like this piece of "C" code does: > > int iSomeChar = 64; > char cThisChar = iSomeChar; > > Since ASCII for 0064 is "@", cThisChar now has the value "@". It's so > simple that I even feel dumb asking. Thanks a lot for your help, > > Type-D
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.