Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max length of Set Procedure Additive?
Message
From
30/04/2012 12:41:20
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
30/04/2012 08:16:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01542766
Message ID:
01542895
Views:
43
>>>>>Hi Matt,
>>>>>
>>>>>Keep in mind that if you use NEWOBJECT instead of CREATEOBJECT you would never need to use SET PROCEDURE TO, which for me is better.
>>>>
>>>>Hi Huga
>>>>
>>>>There can be quite a performance difference avoiding CREATEOBJECT. :)
>>>
>>>That's true, but I consider using NewObject() a best practice, so that I never have to worry about whether a classlib is visible. To me, it's the same as using IN everywhere that it's accepted.
>>>
>>>Tamar
>>
>>Hi Tamar
>>
>>I agree with the IN clause. I see m. where accepted as a best practice too, but not everyone agrees. I would prefer an approach that is not as slow as newobject.
>
>FWIW, I'm pretty sure IN has a speed penalty, too, but given the speed of today's computers, it's a cost I happily pay to be sure my code operates as expected.
>
>Tamar

Agreed.
Previous
Reply
Map
View

Click here to load this message in the networking platform