Paul Newton wrote:
> Ed Leafe wrote:
>   
>> First, the NAME argument to DO FORM simply creates a public memvar  
>> with the given name. WEXIST() uses the actual 'Name' property of the  
>> form.
>>
>>      Why not use TRY/CATCH?
>>
>> TRY
>>      ShowData.MyMethod(param1,param2)
>> CATCH
>>      DO FORM ShowData WITH param1,param2 NAME ShowData
>> ENDTRY
>>   
>>     
> Ed
>
> Using the NAME clause was just an experiment which didn't work/make a 
> difference.  The child form SCX is ShowData.SCX and has name (at design 
> time) ShowData rather than the default Form1.
>
> I don't think TRY CATCH will help because, during debugging, when the 
> child form is already visible the statement
>
>       ShowData.MyMethod(param1,param2)
>
> is giving the error.  It would give the same error as it gives now if it were 
> invoked as part of the TRY clause
>
> Paul
>   

So ShowData.scx is visible, yet your ShowData.MyMethod(param1,param2) 
call is throwing the error?  I could see Ed's logic (brilliant!) that if 
ShowData weren't existing, the CATCH would then instantiate it as expected.

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"



_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to