>I am using Addprop5.fll for Visual FoxPro 5.0 and trying to use this function to create a property that is an array but I am not having any luck.
>
>I have tried the following:
>dimension m.atstArray[10,1]
>
> =AddProp(THIS,"UDStyle[10,1]","")
> =AddProp(THIS,"UDStyle[10,1]",m.atstArray)
> =AddProp(THIS,"UDStyle2[10,1]",ACOPY(m.atstArray, THIS.UDStyle2[10,1]))
> =AddProp(THIS,"UDStyle2",ACOPY(m.atstArray, This.UDStyle2))
The addprop.dll does not support adding properties to arrays. You should be using VFP 7.0, you can do this with VFP 7.0 and the code below is an example that works:
x=createobject("form")
x.AddProperty("aTest[2]")
?x.atest[2]