Hello!
I looked into the source (via cvs browse):
CharArray* = ARRAY OF CHAR;
CharArrayPtr* = POINTER TO CharArray;
StringDesc* = RECORD (Object.StringDesc)
(** A string value. Oberon-2 definition includes strings, but not as first
* order types. String values are immutable and so may always be safely
* passed by reference. Functions are provided to retrieve copies of the
* String character array. *)
length- : LONGINT;
array- : CharArrayPtr;
END;
You should be able to use object.array^ to access the characters.
In some of my old code I have seen usage of a procedure
called ToString() which returns a String and might also be of use.
Greetings,
Marco Oetken
Am 12.06.2011 um 14:24 schrieb August Karlstrom:
> After using GetEnv in ProcessParameters I would like to convert the
> Object.String to a character array. Does anyone know how to do that?
>
> Regards,
> August
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> ooc-compiler mailing list
> ooc...@li...
> https://lists.sourceforge.net/lists/listinfo/ooc-compiler
|