Z
zpselect
Unregistered / Unconfirmed
GUEST, unregistred user!
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
private
FTableID: string;
procedure SetTableID(Value:string);
{ Private declarations }
public
property TableID: string read FTableID write SetTableID;
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
end.
为什么会报这样的错误?
[Error] Unit1.pas(14): Unsatisfied forward or external declaration: 'TForm1.SetTableID'
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
private
FTableID: string;
procedure SetTableID(Value:string);
{ Private declarations }
public
property TableID: string read FTableID write SetTableID;
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
end.
为什么会报这样的错误?
[Error] Unit1.pas(14): Unsatisfied forward or external declaration: 'TForm1.SetTableID'