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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only