Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why don't I see cleanup class?
Message
From
21/06/2002 12:42:56
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00671062
Message ID:
00671088
Views:
18
Hi Nick,
The advantage is: you don't have to remember to cleanup. When the procedure/method ends, the variable goes out of scope and the destroy() cleans up for you.

>I personally do not see very big advantages in having the class for such cases. Those 3 lines are clear and self-sufficient. You will replace them with two lines. What's the big deal? :)
>
>>Every time I see code written by someone else I always see things like:
>>
>>Procedure ??
>>  lcTalk = Set('Talk')
>>  Set Talk Off
>>  .........
>>  Set Talk &lcTalk
>>EndProc
>>
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform