Autor Beitrag
FBrust
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 30
Erhaltene Danke: 2



BeitragVerfasst: Mo 30.09.02 15:41 
Hallo,

ich möchte einer Funktion einen Tabellennamen in der Form datamodule.tablename übergeben, aber nicht als String, damit ich in der
Funktion direkt mit

ausblenden Quelltext
1:
with tabelle do begin					


(wobei tabelle dann der übergebene Parameter wäre) weiterarbeiten kann.

Leider weiß ich nicht welchen Datentyp ich dann verwenden muss. :(

Weiss jemand Rat?

Danke im Voraus


Frank
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Mo 30.09.02 16:48 
hallo die lösung ist folgende

function deineFunction(ATable: TTable): Boolean;

TTable würde ich gegen TDataset austauschen und boolean, das kannst du dir selbst überlegen
FBrust Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 30
Erhaltene Danke: 2



BeitragVerfasst: Mo 30.09.02 17:20 
Hallo Ireniceus,

damit hats geklappt, danke.

Gruß

Frank