Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

Anonymous method or reference to procedure/function 6 years 4 months ago #11797

  • Md. Shariful Alam Khan
  • Md. Shariful Alam Khan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 111
  • Thank you received: 0
Is Anonymous method available in CT?

I have a delphi unit which I need to convert to CT. Delphi unit has following declaration:

TDatabaseConnectionString = reference to procedure(AResult: Boolean;
ADatabase, ALibname, AServer, APort, AUserName, APassowrd: String;
AConType: Integer);

How can I do same with CT?

Please Log in or Create an account to join the conversation.

Anonymous method or reference to procedure/function 6 years 4 months ago #11799

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
<<Is Anonymous method available in CT?>>

NO

Delphi is an "Old fashion" Windows Pascal IDE,

My suggestion is to rewrite your project with CodeTyphon Object Pascal
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Anonymous method or reference to procedure/function 6 years 4 months ago #11803

  • Md. Shariful Alam Khan
  • Md. Shariful Alam Khan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 111
  • Thank you received: 0
I am not using CT for windows development, I am using it for Linux development. Is there any option to have a type same like below in CT:
TDatabaseConnectionString = reference to procedure(AResult: Boolean;
ADatabase, ALibname, AServer, APort, AUserName, APassowrd: String;
AConType: Integer);

Please Log in or Create an account to join the conversation.

Anonymous method or reference to procedure/function 6 years 4 months ago #11804

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1105
  • Thank you received: 161
Try
TDatabaseConnectionString = procedure(AResult: Boolean; ADatabase, ALibname, AServer, APort, AUserName, APassowrd: String;
                                      AConType: Integer);
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1