Its seems to be a non-UNICODE in ARRAYS vs MULTIBYTE thingy ... not too sure why kixtart ( or visual basic) (seems) to be passing data as unicode for strings and non-unicode for strings in arrays, not a VB expert either but give this modifed version of the AddProps a shot:

code:
'add properties to the struct
Public Sub addProps(props As Variant)
If Not declared Then
ReDim propertyNames(LBound(props) To UBound(props)) As Variant
ReDim propertyValues(LBound(props) To UBound(props)) As Variant
For i = 0 To UBound(props)
propertyNames(i) = StrConv(props(i), vbUnicode)
Next
declared = True
End If
End Sub

-Shawn

[ 05. March 2003, 05:47: Message edited by: Shawn ]