> '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"

Reply via email to