General information
Category:
Forms & Form designer
* this is my code in interactivechange of the text1
ThisForm.Grid1.setall("DynamicBackColor","Iif(ALLTRIM(&pcMyTable..c_descri) == ALLTRIM(THISFORM.TEXT1.VALUE),RGB(0,255,255), RGB(255,255,255))")
thisform.grid1.refresh
*the problem with this style, (specially when EXACT is set to OFF) was that all matches will be highlighted too and not the first match. It can be eliminated if you'll be using the "list box" instead of the grid.
>set exact off
LCONTA=LEN(ALLT(THIS.VALUE))
LOCATE FOR ALLT(this.value) = &pcMyTable..c_descri
IF FOUND()
ThisForm.Grid1.setall("DynamicBackColor",;
"Iif(ALLTRIM(&pcMyTable..c_descri) = ALLTRIM(THISFORM.TEXT1.VALUE),RGB(0,255,255),
RGB(255,255,255))")
ThisForm.Grid1.REFRESH()
ELSE
> ENDIF
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