02-16-2015 12:49 PM
Hello,
I have been trying to program more in Objects. i.e. Data and Functions are bundled together in a Class or in a project library. I have used FGV a lot in the past. One of the things I like about a FGV is the ability to locally store data in an uninitialized shift regester. Only the cases in the FGV can access the locally stored data.
Is there an equivilant storage method using Project Libraries or Classes? Is it even a good idea to have locally stored data?
Thanks
02-16-2015 01:35 PM
With classes, you create methods to access the desired data. You just need to pass around the object and call the right method to do what you want.
02-16-2015 01:38 PM - edited 02-16-2015 01:40 PM
02-16-2015 01:43 PM
Hi Dan,
object data is stored within the object! Only methods of that class can access that data - similar as your FGV: only cases within the FGV can access the data in the shift register(s)!
You have to pass the object to access the data within…
02-16-2015 01:45 PM
@ASTDan wrote:
Is there a way to store that object data within the object?
That's what that Private Class Data control is for. ![]()