----- Original Message ----- 
From: "Brigitte Spatz" <[EMAIL PROTECTED]>
>I have some code that I would like to move from a form unit to an
> This code works fine from within frmWizards's form unit (of course
> without the reference to frmWizard in the with ... do). However, it
> throws an exception if I move it. I've added a watch and for some reason
> it tells me frmWizard is nil but I don't know why. The frmWizard unit is
> referenced from the other unit as is the unit that declares frmWizard,
> so I thought that shouldn't be the problem but apparently it's not
> enough???

My first reaction is that you must have a duplicate variable named 
"frmWizard" somewhere... (do a search through all the files in your project 
for declarations of "frmWizard" and see if you've got any duplicates.  I 
presume you've removed the auto-generated frmWizard global variable that 
Delphi puts at the top of all form units since you presumably don't use this 
anymore?)  Sorry if this is barking up the wrong tree...

Walter

--
Walter Prins
prins at ananzi dot co dot za
"For every complex problem, there is a solution that is simple, neat, and 
wrong"  - H.L. Mencken 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to