Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Grid
Miscellaneous
Thread ID:
00274654
Message ID:
00274662
Views:
25
>I have on my form a grid and a textbox. The user types in the textbox which has code to search in the table. As they type it searchs the table. I have the following code in the interactivechange event thisform.grdsearch.setall("Dynamicbackcolor",;
> "RGB(0,255,0)",;
> "Column")
>however this turns the hold grid to the color when what is only for the row to turn color. What am i doing wrong.

You don't have the condition in your code.
It supposed to be something like that:
thisform.grdsearch.Setall("DynamicBackColor", "IIF(somefield = thisform.textbox.value, RGB(0,255,0),RGB(255,255,255))", "Column")

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform