
help me out please!!!!<<<<<<<<<<<<<<<<<<<<<<<thanks>>>>>>>>>>>>>>>>>>>>>>>>
Quote:
> I am having troble filling in the msFlexGrid
> option explicit
> dim msFlexGrid (1 to 2,1 to 2) as currency
> form load()
> msFlexGrid(2,2)=10
> end sub
> should this work
you have created a two by two array which contains four elements of
which you have defined only one here namely msflexgrid(2,2). The other
three elements of the array are empty name msflexgrid (2,1) (1,2) and
(1,1). If you want to fill the entire array you must define values for
these array elements as well. Since you have defined your array only in
the form Load when the subroutine is over it should set all array values
back to zero anyway. Try using your Dim Mdfelxgrid statement in THE
declarations section of your form. Then define the values of the array
in the Form_initialize event.
Jeremy Wood