> How's this then ... (admittedly doesn't provide the same
> side-effects as the above)
>
> function FindControlForm(WC:TwinControl):Tform;
> begin
> Result := nil;
> repeat
> if WC is TForm then Result := TForm(WC)
> else WC := WC.Parent;
> until WC=Result;
> end;
FindControlForm (Nil) -> Access Violation time. Same thing if WC.Parent is
Nil.
Dennis.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
- [DUG]: AutoExiting a Control Neven MacEwan
- Re: [DUG]: AutoExiting a Control Aaron Scott-Boddendijk
- Re: [DUG]: AutoExiting a Control Neven MacEwan
- Re: [DUG]: AutoExiting a Control Aaron Scott-Boddendijk
- RE: [DUG]: AutoExiting a Control Martin Ease
- Re: [DUG]: AutoExiting a Control Neven MacEwan
- RE: [DUG]: AutoExiting a Control Chris Reynolds
- Re: [DUG]: AutoExiting a Control ... Neven MacEwan
- Re: [DUG]: AutoExiting a Con... Aaron Scott-Boddendijk
- RE: [DUG]: AutoExiting a... Max Nilson
- Re: [DUG]: AutoExiting a... Dennis Chuah
- Re: [DUG]: AutoExiti... Aaron Scott-Boddendijk
- RE: [DUG]: AutoExiting a Con... Chris Reynolds
- RE: [DUG]: AutoExiting a Control Jeff Sinclair
