Hi All,


i'm trying to read one text file , if the strings in text file matches to any of the type which is written in regular expression (which is in XML). i want to store all those in an array to print it later.


Here is the code:



ObjInvoice.Amount() = regEx.Replace(strStringToMatch, "$1$2$3$4$5")


in the class file i have taken the property as



Public Property Get Amount() As String
Amount() = mstrAmount()
End Property

Public Property Let Amount(ByVal strAmount() As String)
mstrAmount() = strAmount()
End Property


but it is giving error to me.


can you please help me out what might me the reason for the error.

and can you expalin how to use arays in the property.

Thanks&Regards,
B.