try removing the : string definition from your constants and see if that helps.
@eljothe folowing is a simple program just created and executed in my windows 7 installation.Quotetry removing the : string definition from your constants and see if that helps.
Already tried. Same error.
I had to remove the type definition from both the new constants and the existing constants from which their value is assigned. It works now. I wonder if it's a design flaw in Free Pascal or if the developers intended it that way...
And untyped constant is immutable. (as well as any typed constant declared in {$J-} state, I might add )
Constant and variable initializers can only use untyped constants and some internal functions (e.g. High, Ln, etc.).
These two points were proving to be an annoyance for me for a brief time because I generally prefer strongly typed data fields. However, after tinkering a bit more, I am beginning to feel a little more at ease with untyped fields.