Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Highlighting expression error
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00419140
Message ID:
00419147
Views:
22
Or, IIF(RECNO(this.RecordSource) = grno... so you are not hardcoding the alias.
OR, (better yet :) download my Grid Highlighter class form Files Section/Classes-VCX file#9798

:)

>Use IIF(RECNO("MyAlias")....
> This because correct alias may not be selected sometimes, so you need refer it directly.
>
>>Hi All! Hope someone can help me. Once in awhile I get an error that displays when my form is loaded. This form has a grid on it and I have logic to highlight the current record in the grid. The error is as follows: "Expression is invalid. Use a valid expression for DYNAMICBACKCOLOR property."
>>
>>This is the code I use to highlight the record:
>>
>>grno = RECNO()
>>THISform.pageframe1.page1.grid1.setall("Dynamicbackcolor", ;
>> "IIF(RECNO()=grno,RGB(128,192,192),RGB(255,255,255))","Column")
>>
>>Any suggestions? Thanks!
>>
>>Joe
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
Next
Reply
Map
View

Click here to load this message in the networking platform