Prøv å legg minUnit.pas i Delphi/Lib
-------------------------------------
I am AGAINST TCPA!!
[ http://www.againsttcpa.com/ ]
-------------------------------------
Mvh
DiZpel
Hmm når jeg gør det siger den at den funktion jeg har lavet i "komponentet'" er undeclared.
Men kunne forestille mig det havde noget med min kode at gøre?
Her er Unit1:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, BinDecHex;
type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
Tal: integer;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Tal:= 256;
Label1.Caption:= DecimalToBinary(Tal);
end;
end.
og her er komponent filen (BinDecHex.pas):
unit BinDecHex;
interface
implementation
function DecimalToBinary(Decimal: Integer):String;
osv...
Og her fejlen:
[Error] Unit1.pas(30): Undeclared identifier: 'DecimalToBinary'
Mvh.
Rune Jensen
---------------------------------------------------------------------------
##The one who laugh last is the one who think slowest!##
---------------------------------------------------------------------------
[Redigeret d. 08/01-05 13:11:29 af Rune Jensen (RoZ)]