|
-
Jun 17th, 2002, 08:46 AM
#1
Thread Starter
Member
readproperty error
I've defined a property like this:
Public Property Get VP_Data() As String()
VP_Data = myStrings
End Property
Public Property Let VP_Data(theData() As String)
ReDim Preserve myStrings(UBound(theData))
myStrings = theData
'Call copyArray(theData, myStrings)
PropertyChanged "VP_Data"
End Property
Now in the ReadProperties event I type like this:
Me.VP_Data = PropBag.ReadProperty("VP_Data") and get a
"Type mismatch: array or user-defined type expected" error. Why?
To save the property I use:
Call PropBag.WriteProperty("VP_Data", myStrings, "") and that seems to work..
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
|