>George
>
>>Add the property in the class designer. Select Class/New Property and enter >myarray[1] in the dialog.
>
>Sorry, George but I'm a beginner. I started all over and now its working
>only I have still one question.
>
>I use the next code:
>
>Pulic aPer
>DIMENSION aPer(5)
>store 11 to aPer(1)
>store 12 to aPer(2)
>store 21 to aPer(3)
>store 22 to aPer(4)
>store 40 to aPer(5)
>
>In the interactivechange event I use this.value
>this.value is returning the next value's
>"11" "12" "21" "22" "40" their are character strings and not numeric
>is this normal??
For arrays, yes, it is normal. If the control source was a field in a table that was numeric or integer, then the data type would be either numeric or integer.
To retrieve the actual value, you can use VAL(), or the control's ListIndex property for the offset into the array.
>Ben
George
Ubi caritas et amor, deus ibi est