On 1/22/24 23:05, Michael Van Canneyt via fpc-pascal wrote:
On Mon, 22 Jan 2024, Amir--- via fpc-pascal wrote:
Params := TParams.Create;
WriteLn(Params.Int2.IntVal);
WriteLn(TInteger(Params.FieldAddress('Int2')).IntVal);
The third line does not work (the zipped code is attached).
I
On Mon, 22 Jan 2024, Amir--- via fpc-pascal wrote:
Params := TParams.Create;
WriteLn(Params.Int2.IntVal);
WriteLn(TInteger(Params.FieldAddress('Int2')).IntVal);
The third line does not work (the zipped code is attached).
It should be
WriteLn(TInteger(Params.FieldAddress('Int2')^).Int
Params := TParams.Create;
WriteLn(Params.Int2.IntVal);
WriteLn(TInteger(Params.FieldAddress('Int2')).IntVal);
The third line does not work (the zipped code is attached).
On 1/21/24 23:43, Michael Van Canneyt via fpc-pascal wrote:
On Sun, 21 Jan 2024, Amir--- via fpc-pascal wrote:
How
El Sun, 21 Jan 2024 17:27:15 +0100
Adriaan van Os via fpc-pascal
escribió:
>
> ($modeswitch nestedcomments-}
>
I didn't know about this switch. Thanks, maybe I can use it.
Guillermo Martínez J.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.
El Sun, 21 Jan 2024 17:12:05 +0100
Tomas Hajny via fpc-pascal escribió:
> Well, I guess that you use mode Delphi, because warning about nested
> comments and even an error in your case (due to nested comment not
> closed) is already issued by default. So the very simple solution is
> using e.g