E2033 Types of actual and formal var parameters must be identical

I have this line of code throwing up the above error:


I've read about using the right vars/constants but that doesn't seem to work.

Any help, appreciated


A var parameter is passed by reference (that is, the method doesn't want only a value, but a variable (which comes with a value), which it can alter if necessary), so you need to pass a variable (of the right type), not only a value. This works:

  mybool: boolean;
  mybool := true;

  server := TIdHTTPServer.Create;
  server.OnQuerySSLPort(8092, mybool);
  // Now mybool can be either true or false; it's up to the method.

Need Your Help

Cursor column index changes from phone to phone

android orm android-cursor

My application allows a user to call the most recent number that was called out. By hitting the "Call" button with an empty text box it will grab the latest Outgoing number in my ORM database. The ...

remove results of 1 query that appear in another

php mysql

I have a query that retrieves the name of each friend a user has by joining that of friends and users tables. I have another table that stores active users. I need to retrieve friends that are acti...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.