Closed.
Had memo field with the length > 255
changing
THISFORM.first_lines[i,2] = comm_desc
to
THISFORM.first_lines[i,2]=iif( len(comm_desc) > 80 , left(comm_desc , 80 ) , comm_desc )
fixed the problem.
Though it is still not clear either why there was no complaint for this particular line or length limitation for array element ( if exists )
>Started to experience a strange problem with the code below
>
> WITH aforms[Icurform].pageframe1.page1.hitlist
> IF .LISTINDEX = 0
> .LISTINDEX = 1 && line causing this error
> ENDIF
> ENDWITH
>
>Problem seems to be intermittent and the same code works in most cases.
>Commenting this fragment results in the same error for
>
>THISFORM.pageframe1.page1.hitlist.ROWSOURCE="thisform.first_lines"
>
>in Show method.
>
>To be exact before refreshing hitlist PHD search is run and funnily enough the problem manifests itself only for some keywords in certain free table. PHD search itself creates a cursor correctly for this word.
>
>Any hints are greatly appreciated.
>
>Thank you.
>Michael
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement