Einzelnen Beitrag anzeigen

obiwankby

Registriert seit: 4. Jun 2010
15 Beiträge
 
RAD-Studio 2010 Arc
 
#1

how can I call a function with parameter record in another unit ?

  Alt 29. Jul 2010, 13:00
Hi,

How can I call a function with parameter record in another unit?

For example:
TGrUser = record
Name : string [20];
Descr : string [100];
R1 : boolean;
end;

function fGrUser(sS:string;writeUser: TGrUser);
begin
...
end;

If I call the function in the unit1 where is create type record and function it work; if I call the function from unit2 I have the message error: "E2010 incompatible types ...".

The type record from unit2 is declarated in unit2.

bye

ObiWanKby
obi wan kby
  Mit Zitat antworten Zitat