Delphi "is not"-Syntax does not work
Question by Guest | 2013-10-31 at 20:07
I want to do the following with Delphi (negation of is):
if Sender is not TListView then ...
However, this solution is not working. What am I doing wrong? I always get the following error message:
Error: Illegal Expression
I do not want to write something like this:
if Sender is TListView then begin end else ...
But I do not have any other idea.
Related Topics
MySQL: Line Breaks in MySQL
Tip | 0 Comments
Original Delphi is too expensive - Are there Alternatives?
Question | 3 Answers
Delphi: Global Treatment of Errors (Exceptions)
Tutorial | 0 Comments
Delphi/Lazarus: 3 Ways to round a Number to X Decimal Places
Tutorial | 7 Comments
Delphi/Lazarus: How to set up a Link to a Website in an Application
Tutorial | 0 Comments
No Syntax Highlight for one File in Eclipse
Question | 1 Answer
Delphi/Lazarus: Command Line Parameter Tutorial Part 1: Sending
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
In Lazarus and Delphi there is no "is not".
Instead, you should use "if not":
That should do it. Writing the "not" directly behind the "if" is only possible in spoken language.
2013-10-31 at 22:23