[M3devel] Widechars
Daniel Alejandro Benavides D.
dabenavidesd at yahoo.es
Wed Jan 7 06:08:34 CET 2009
Hi all,
I believe you need to declare wide VAR with fixed size or create it as a Reference type
VAR wide := ARRAY [1..4] OF WIDECHAR {'\x304A', '\x306F',
'\x3088', '\x3046'};or
arrWideChar:= NEW (REF ARRAY OF WIDECHAR, 4);
arrWideChar[0]:='\x304A';
....
I'm not sure if you can do this, would be interesting to know:
arrWideChar:= NEW (REF ARRAY OF WIDECHAR{'\x304A', '\x306F',
'\x3088', '\x3046'} );
See further explanations on:
http://opencm3.net/doc/tutorial/m3/m3_54.html#SEC54
Also the language definition,
http://opencm3.net/doc/reference/arrays.html
Hope that helps
--- El mar, 6/1/09, Martin Bishop <martinbishop at bellsouth.net> wrote:
De: Martin Bishop <martinbishop at bellsouth.net>
Asunto: [M3devel] Widechars
Para: m3devel at elegosoft.com
Fecha: martes,
6 enero, 2009 3:50
I'm playing around with WIDECHARS, and having some trouble.
VAR wide := ARRAY OF WIDECHAR {'\x304A', '\x306F',
'\x3088', '\x3046'};
s := Text.FromWideChars(wide);
I get these errors from the compiler:
"../Length.m3", line 5: missing closing quote on character literal
"../Length.m3", line 5: syntax error: missing '}' (4)
"../Length.m3", line 5: missing closing quote on character literal
"../Length.m3", line 5: missing closing quote on character literal
"../Length.m3", line 5: missing closing quote on character literal
"../Length.m3", line 5: missing closing quote on character literal
"../Length.m3", line 5: missing closing quote on character literal
"../Length.m3", line 5: missing closing quote on character literal
"../Length.m3", line 5: missing closing quote on character literal
9 errors encountered
It seems like it's reading '\x304A' as
'\x30'
(which is why it says
"syntax error: missing '}' (4)")
Do I need some special literal letter or something?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090107/f4fa9be5/attachment-0002.html>
More information about the M3devel
mailing list