Re: History of programming
- From: "Pete Dashwood" <dashwood@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 May 2009 11:43:01 +1200
HeyBub wrote:
Pete Dashwood wrote:
"HeyBub" <heybub@xxxxxxxxxxxxxxx> wrote in message
news:x_idndRflMl5LZnXnZ2dnUVZ_oydnZ2d@xxxxxxxxxxxxxxxx
Example:LOL!
"1959 - After losing a bet with L. Ron Hubbard, Grace Hopper and
several other sadists invent the Capitalization Of Boilerplate
Oriented Language (COBOL) . Years later, in a misguided and sexist
retaliation against Adm. Hopper's COBOL work, Ruby conferences
frequently feature misogynistic material."
http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html
BTW, if you are still grappling with Cyrillic, I came across some
components that are free and will do what you want. Check out:
http://www.chilkatsoft.com/refdoc/xChilkatCharset2Ref.html
This is more comprehensive than a similar component I have so I
downloaded it and tried it from C#. It is excellent. In the example
strings they show for instantiating the object, a correction is
needed for PowerCOBOL or Fujitsu NetCOBOL, as follows:
01 CKProgID pic x(16) value "Chilkat.Charset2". *> examples show
this as "Chilkat.Charset"...
01 objCKCharset OBJECT REFERENCE COM.
01 unlock-string pic x(20) value "This can be anything".
invoke com "CREATE-OBJECT"
using CKProgID
returning objCKCharset
end-invoke
invoke objCKCharset "UnlockComponent"
using unlock-string
end-invoke
(Remember to reference *COM in the REPOSITORY...)
There is also a string component available from the same outfit:
http://www.chilkatsoft.com/download/CkString.zip
... it also needs a correction for Fujitsu...
01 CKstrProgID pic x(16) value "Chilkat.CKString.1". *> examples
show this as "Chilkat.String"...
01 objCKString OBJECT REFERENCE COM.
invoke com "CREATE-OBJECT"
using CKstrProgID
returning objCKString
end-invoke
(Remember to reference *COM in the REPOSITORY...)
And a very interesting example which uses both of the components
here: http://www.example-code.com/vb/vb6-display-unicode.asp
I think that with these two components you should be able to solve
all of your language concerns.
Thanks for the pointers.
I still can't figure out how to get Cyrillic characters out of a
PowerCOBOL text box.
I thought the text box was showing question marks?
Presumably, you have set the font properties of the Text Box to be Cyrillic?
If you have solved that and it now shows correct Cyrillic characters, you
just need to move the Text property to a Unicode string. (the CKString noted
above would be ideal as it has methods you can use to convert the string.
It isn't clear exactly what the problem is, Jerry.
Pete.
--
"I used to write COBOL...now I can do anything."
.
- Follow-Ups:
- Re: History of programming
- From: HeyBub
- Re: History of programming
- References:
- History of programming
- From: HeyBub
- Re: History of programming
- From: Pete Dashwood
- Re: History of programming
- From: HeyBub
- History of programming
- Prev by Date: Re: Coming soon: Turbo COBOL from Micro Focus :-)
- Next by Date: Re: Coming soon: Turbo COBOL from Micro Focus :-)
- Previous by thread: Re: History of programming
- Next by thread: Re: History of programming
- Index(es):
Relevant Pages
|