I have to say that this kind of local function require special stack setup
for call which can not be optimized by Delphi compiler.
I thought that it would be good just declare it as private function, and
pass parameters around.
----- Original Message -----
From: "Aaron Scott-Boddendijk" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, November 03, 2000 2:55 PM
Subject: Re: [DUG]: procedures within procedures... and scope...
> > 'llo, got a wee question on scope and procedures within procedures...
> > Now, I'm declaring sWhere in the Delete2Click routine, I was thinking
that
> > it would be available to the DeleteTestFromTable() routine but it's not,
> > so I have to pass it in, or is there a way to reference that variable
> > without making it a form variable?
>
> Works here... D4 Update 3
> ---------------------------
> program Project1;
>
> uses
> Dialogs;
>
> procedure outer;
> var
> S1 :string;
> I :Integer;
>
> procedure inner;
> begin
> S1 := S1+'#';
> end;
> begin
> S1 := '';
> for I := 0 to 10 do inner;
> showmessage(s1);
> end;
>
> begin
> outer;
> end.
>
> --
> Aaron Scott-Boddendijk
> INTAZ Limited
> +64 7 838 3371 Voice
> +64 7 838 3372 Fax
>
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"