|
-
February 14th, 2000, 10:22 PM
#1
Help: Life of Controls in DataSpaces
If I create a class in a dataspace with a private variable called Count then every time I run a function in this class the private variable is set to zero.
This is provided I create the object via a DataSpace
ie X.Y
Private Count as Long
Public Function Add(Num as Long) as Long
Count = Count + Num
Add = Count
end function
---
If I use the dataspace.createobject to a global object, then every time I call Add(Num) the value returned by Add is Num not the totaled amount.
Any ideas how to make this object stay persistent?
Thanks
DS
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|