Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record pointer in grid without focus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00044481
Message ID:
00044534
Views:
37
>>>>I had the answer before but I lost it. How do you make a grid highlight the row with the current record when the grid doesn't have focus?
>>>Use DynamicBackColor for the columns.
>>>Alex.
>>Sorry to seem slow, but I need an expression. I have IIF(myexpression,RGB(255,255,255),RGB(0,255,0)). What can I put for myexpression? I tried THIS.Text1.Value=myfield, but it didn't like it.
>
>You can use a "dummy" record number;
>
>nRec = recno('etc...')
>IIF(recno('etc...') =nRec,...
>
>Note: nRec must have a wide scope.
We're getting closer, I think. I made a form property gridcurrec, which I hope might have wide scope. My expression in .DynamicBackColor is recno()=THISFORM.gridcurrec. Somewhere, I need to put THISFORM.gridcurrec = recno('gridalias'). Grids don't have a .lostfocus event, and I think the controls inside the grid will think all RECNO()s in the grid are RECNO(), if you know what I mean.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform