Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Yearwood
  Where is Mike Yearwood?
 Toronto
 Canada
 Mike Yearwood
 To: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 Tags
Subject: RE: Collection vs _Screen vs Public Variable
Thread ID: 289252 Message ID: 289333 # Views: 58 # Ratings: 1
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Friday, December 31, 2010 12:11:39 AM         
   


> Hello!
>
> I just want to share some new thoughts regarding the title. If you are interested, read it here: http://www.junblogs.com/?p=484
>
> I know I am late with this as I believe a lot of members are already using this approach but for those who hasn't yet, then I hope it will be useful to them.
>
> http://www.junblogs.com/
> http://weblogs.foxite.com/sandstorm36/default.aspx
> http://www.coderisland.com/forum/viewforum.php?f=10

Objects can also be protected from changes, which public vars cannot. You might want to demonstrate that aspect in your class. BTW, if you have a company table and a company object, "company.name" will become vague. I'd go with oCompany for the object name.

Mike Yearwood
Microsoft MVP Visual FoxPro 2008, 2009
We have enough youth. We need a fountain of smart!
There may be many ways to skin a cat, but there are very few right ways to do it.

ENTIRE THREAD

Collection vs _Screen vs Public Variable Posted by Jun Tangunan @ 12/30/2010 2:46:28 AM
RE: Collection vs _Screen vs Public Variable Posted by Ony Too @ 12/30/2010 10:20:16 AM
RE: Collection vs _Screen vs Public Variable Posted by Jun Tangunan @ 12/30/2010 11:58:43 PM
RE: Collection vs _Screen vs Public Variable Posted by Mike Yearwood @ 12/31/2010 12:11:39 AM
RE: Collection vs _Screen vs Public Variable Posted by Jun Tangunan @ 12/31/2010 12:22:18 AM
RE: Collection vs _Screen vs Public Variable Posted by Ony Too @ 12/31/2010 12:29:58 AM
RE: Collection vs _Screen vs Public Variable Posted by Jun Tangunan @ 12/31/2010 12:39:56 AM
RE: Collection vs _Screen vs Public Variable Posted by Ony Too @ 12/31/2010 3:46:22 AM
RE: Collection vs _Screen vs Public Variable Posted by Jun Tangunan @ 12/31/2010 4:06:01 AM
RE: Collection vs _Screen vs Public Variable Posted by Ony Too @ 12/31/2010 4:14:51 AM