Topic: Share complied functions and procedures

Is there a way to share compiled procedure and functions within the MVD tool?  If i wanted to share a function or procedure, it would nice to be able to share the dcu that could be reference or included within the script file.

Your thoughts...

Re: Share complied functions and procedures

Yes you can, but not dcu file, only pas file.


You can place file Unit1.pas in the folder Script where you store frequency used functions:

procedure SayHello;
begin
    ShowMessage('Hello');
end;

begin

end. 

How to use procedure SayHello from your script

uses 'Unit1.pas';

procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
begin
    SayHello;
end;

begin

end.:
Dmitry.

Re: Share complied functions and procedures

Is supporting a compiled dcu possible in a future release?  I would nice to share some functionality but not to provide my source.

Re: Share complied functions and procedures

rjkantor wrote:

Is supporting a compiled dcu possible in a future release?  I would nice to share some functionality but not to provide my source.

Unfortunately it's not possible.

Dmitry.