Unknown name "Char"
Posted 08 October 2017 - 05:43 PM
Posted 10 October 2017 - 07:42 PM
- Czar likes this
Posted 12 October 2017 - 01:04 PM
I am really sorry there has to be done this workaround, but that's just "how it is".
If you don't want to declare an extra type for this, just use String in any context, it will behave 100% like Char because System.Types.Char is only an alias for System.String.
Posted 12 October 2017 - 04:19 PM
in the version I had before the alpha release, OnKeyPress was declared as such
procedure Form1KeyPress(Sender: TObject; aChar: String);
and now it is:
procedure Form1KeyPress(Sender: TObject; const Character: Char);
You would think, if I double click on the event in the object inspector and it is added to the project code, the unit would be added......just like when i drop a component on the form and I do not have to add the componnents unit.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users