>>>Colin
>>
>>What do you mean you don't see? It does not have to be a grid's method, you can put this code right after LOCATE with full references of the grid.
>
>This is the lostfocus event of textbox text2
>
>This doesn't work
>
>
>SELECT quotelist
>LOCATE FOR UPPER(SUBSTR(quotelist.acclient,1,LEN(TRIM(this.value)))) = UPPER(TRIM(this.value))
>thisform.refresh
>local lnHeight
>thisform.lockscreen=.T.
>With thisform.grid1
> lnHeight=.height
> .height=10 && or small enough to only show one line
> .height=lnHeight
>Endwith
>thisform.lockscreen=.F.
>thisform.refresh
>
>It brings up an error on the reference to grid1
What is the error you're getting?
If it's not broken, fix it until it is.
My Blog