I’m uncertain if this is permissible so if it isn’t then feel free to remove this post.
I know that a lot of you are still wondering what’s going on with Unicode in Clarion. I have a few thoughts on that and felt the need to say “something!”
Even back in CPD there was one aspect of Clarion that, basically, was the redheaded stepchild that was always last to be handled: REPORTS! Think back, what was the last thing added to ABC? Yep, reports.
From my viewpoint there is only ONE reason Unicode is yet to be available. Take a wild guess, yes - once again, reports.
WMF’s do not support Unicode. EMF’s do. In fact if you go by the standards created by MS all TextOut commands are to be written as Unicode, not Ansi.
Until the reports can handle Unicode the remainder cannot!
Of course this brings back thoughts I’ve had about Unicode support since the subject was first brought up. Many will argue about my concept but if you truly ponder on it I’m thinking it’s the correct path for the future of Clarion.
EVERYTHING in the RTL should be rewritten to use Unicode, PERIOD! Not a bit her and a bit there but EVERYTHING! In other words what’s behind the user interface and behind the scenes within a compiled program should be Unicode and ONLY Unicode. This limits a lot of the potential problems in supporting Ansi and Unicode… make it ALL Unicode.
If you need to access Ansi data, add a simple attribute to THAT file structure and the RTL converts data, at runtime, into Unicode for internal use. Need to save that data, the RTL converts it back to Ansi because of that attribute.
Nothing else would need to be altered since from the RTL’s point of view it’s all Unicode. No need for any new data types; STRING’s and CSTRING’s would simply become Unicode strings and cstrings INTERNALLY!
And, since everything internally is Unicode all that would be needed to get it up and running would be changing to EMF’s.
Just my thoughts. I’ll crawl back under my rock now.
Have a great day!
