Since I want to treat a specific exception that cannot be distinguished
by the class alone but only by the class and message, I need to find the
current translation of the resource string used to create the exception.
The documentation at
https://www.freepascal.org/docs-html/current/prog/progs
On Tue, 1 Dec 2020, Ladislav Karrach via fpc-pascal wrote:
Because MyConst1 is not an *untyped* constant. Only untyped constants
can be used in constant expressions (a pointer to something can be
considered an untyped constant).
The following might work though I did not test it:
=== co
Because MyConst1 is not an *untyped* constant. Only untyped constants
can be used in constant expressions (a pointer to something can be
considered an untyped constant).
The following might work though I did not test it:
=== code begin ===
const
MyStr = 'abc'
MyConst1: AnsiString =
LacaK via fpc-pascal schrieb am Di., 1.
Dez. 2020, 11:00:
>
> Dňa 30.11.2020 o 23:26 Sven Barth via fpc-pascal napísal(a):
> > Am 30.11.2020 um 13:20 schrieb LacaK via fpc-pascal:
> >> Hi,
> >>
> >> is there a way how to initialize record member of pointer type (other
> >> than PChar) in the foll
Dňa 30.11.2020 o 23:26 Sven Barth via fpc-pascal napísal(a):
Am 30.11.2020 um 13:20 schrieb LacaK via fpc-pascal:
Hi,
is there a way how to initialize record member of pointer type (other
than PChar) in the following example:
type
TMyRec=record
a: PByte; // if I change PByte to PAnsiC
On Mon, 30 Nov 2020, Sven Barth via fpc-pascal wrote:
Am 30.11.2020 um 13:20 schrieb LacaK via fpc-pascal:
Hi,
is there a way how to initialize record member of pointer type (other
than PChar) in the following example:
type
TMyRec=record
a: PByte; // if I change PByte to PAnsiChar t