Does FlexGrid really have that method ?
This works for me :
DIMENSION laRegel[2,2]
laRegel[1,1]="Test1"
laRegel[1,2]="Test2"
laRegel[2,1]="Test3"
laRegel[2,2]="Test4"
With oFlex
FOR ix=1 TO ALEN(laRegel,1)
FOR jx=1 TO ALEN(laRegel,2)
.TextMatrix(ix-1,jx-1)=laRegel[ix,jx]
ENDFOR
endfor
Endwith
Cetin
>Hi all,
>
>I'm trying to bind an array to a Flexgrid with the following code
>
>DIMENSION laRegel[2,2]
>
>laRegel[1,1]="Test1"
>laRegel[1,2]="Test2"
>laRegel[2,1]="Test3"
>laRegel[2,2]="Test4"
>
>oFlex.BindToArray(laRegel)
>
>
>but on the bindtoarray line i keep getting OLE unknow COM status.
>Has anybody used this function with Flexgrid an if so what am i doing wrong ?
>
>Thx for any help,
>
>Guillaume