How
about combining your 2 rectypes into one, like this?
Determine inside your procedure which form the data is
to take, and set 'Which' accordingly.
(Note
that when using the case statement inside a type declaration, the record size
will use the largest sub-rec size - in this case they are the same
size)
Type1
= record
Which: boolean; Procedure LoadTemplate(const APath: String; const AData:TType);
|
- [DUG]: Load different types from one procedure? Jason Coley
- Re: [DUG]: Load different types from one procedure? Phil Middlemiss
- [DUG]: Resume Next in Delphi Traci Sumpter
- Re: [DUG]: Resume Next in Delphi Neven MacEwan
- Re: [DUG]: Resume Next in Delphi Chris Reynolds
- Re: [DUG]: Resume Next in Delphi Laurie Bisman
- Re: [DUG]: Resume Next in Delphi Dennis Chuah
- RE: [DUG]: Resume Next in Delphi Andreas Toth
- RE: [DUG]: Load different types from one procedure? Andreas Toth
- Re: [DUG]: Load different types from one procedu... Paul McKenzie
- Re: [DUG]: Load different types from one procedu... Mark Taylor
- Re: [DUG]: Load different types from one procedure? Neven MacEwan
- RE: RE: [DUG]: Load different types from one proced... Jason Coley
- Re: RE: [DUG]: Load different types from one pro... Paul McKenzie
- RE: RE: [DUG]: Load different types from one pro... Mark Taylor