S
songbo_pp
Unregistered / Unconfirmed
GUEST, unregistred user!
遇到一个问题,想把一个函数指向另外一个同结构的函数,不知道怎么来做:
例如:
A = class
public
procedure PressOtherKey(Key: Word);
end;
B = class
public
procedure PressOtherKey(Key: Word);
end;
a: A;
b: B;
a.PressOtherKey := b.PressOtherKey;//这样会抱错,‘Not enough actual parameter’,不明白;
例如:
A = class
public
procedure PressOtherKey(Key: Word);
end;
B = class
public
procedure PressOtherKey(Key: Word);
end;
a: A;
b: B;
a.PressOtherKey := b.PressOtherKey;//这样会抱错,‘Not enough actual parameter’,不明白;