Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catch to oError
Message
From
07/11/2007 07:48:51
 
 
To
07/11/2007 07:23:45
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01267180
Message ID:
01267226
Views:
14
>So, I can pass the loError object itself and then reference it in the method? I was thinking that it would be out of scope, so putting it as an property of the class would be better. Let me give that a try though.

Itself, it would be out of scope, but since you pass it as a parameter, your method will have access to it's properties just like any other object parameter.

>
>>Jay,
>>
>>Although I do not see a problem doing it, I do not see why you need to do it, a local variable should do it just fine
>>
>>
>>local loError
>>
>>		CATCH TO loError
>>
>>			THIS.WriteLogFile('Exception', loError)
>>		
>>		ENDTRY
>>
>>
>>>Can I do the following and then reference the properties of the THIS.oError object in the WriteLogFile method?
>>>
>>>
>>>		CATCH TO oError
>>>
>>>			ADDPROPERTY(THIS,'oError')
>>>			THIS.oError = oError
>>>			THIS.WriteLogFile('Exception', THIS.oError)
>>>		
>>>		ENDTRY
>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform