[fpc-pascal] Array of Char

2005-09-02 Thread Carsten Bager
We are moving from another Pascal compiler where this is allowed. -- Type   txt_typ=packed array[0..1] of char; Const   txt1:txt_typ=('12'); -- Is there a way around this without having to write   txt1:txt_typ=('1','2'); Anoth

Re: [fpc-pascal] Array of Char

2005-08-18 Thread John Coppens
On Thu, 18 Aug 2005 07:24:46 +0200 "Carsten Bager" <[EMAIL PROTECTED]> wrote: > We are moving from another Pascal compiler where this is > allowed. > -- Type txt_typ = packed array[0..1] of char; Const txt1: txt_typ = '12'; without the parenthesis should work.

[fpc-pascal] Array of Char

2005-08-17 Thread Carsten Bager
We are moving from another Pascal compiler where this is allowed. -- Type txt_typ=packed array[0..1] of char; Const txt1:txt_typ=('12'); -- Is there a way around this without having to write txt1:txt_typ=('1','2'); Another thin

[fpc-pascal] array of Char -> String conversion

2005-07-04 Thread Vinzent Hoefler
Hi, is there a standard routine that converts an "array of Char" type to a (Short)String of the same length as the Char-array? The automatic conversion of the compiler seems to treat it as null-terminated C-string, which is not what I want. Vinzent. -- public key: http://www.t-domaingrabbin