>Aaron:is the Icelock component on a form or a member of another object?
Thanks, good Q - yes it is a component on the form.
I did a fudge by making a global variable in the onformcreate of Unit1 then
it is passed Ok to unit2; but this is not really what I wanted to
understand - somewhere in the dark achives of my beer sodden grey matter
something suggests that I have access to those calls in the first proc. In
fact I still want to get use of another proc in unit1 which is used in
unit1, but also needed in unit2:
function Tunit1.ExecuteFile(const FileName, Params, DefaultDir: string;
ShowCmd: Integer): THandle;
var
chFileName,
chParams,
chDir: array[0..150] of Char;
begin
Result := ShellExecute(Application.MainForm.Handle, nil,
StrPCopy(chFileName, FileName),
StrPCopy(chParams, Params), StrPCopy(chDir, DefaultDir), ShowCmd);
end;
The easy way would be to copy the routines into unit2 but seems a waste of
resource eh?
I like to grab the bull by the horns but after delving into D3 help for ages
I missed the act.
BTW unit1 and unit2 are used for ease of reference only.
Tks,
Al+
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz