Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Logical recno()
Message
From
25/11/1997 16:25:16
 
 
To
25/11/1997 15:53:43
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00062246
Message ID:
00062275
Views:
25
>Hello Edward! How are you?
>
>Maybe you can help me?
>
>I have a grid, and in dynamicbackcolor i have the follow code IIF(MOD(RECNO(),2)=1,RGB(255,255,255),RGB(192,220,192)), but in the header of any columns i change the order of my table, by sample:
>
>thisform.grid.column1.header.click=set order to tag cust_id
>thisform.refresh
>
>thisform.grid.column2.header.click=set order to tag name
>thisform.refresh
>
>The problem is, when i change the order of my table the grid did stay disordered
>
>
>Thanks
>Anderson Reis Girardi

Firstly, your code can be improved a little bit:
*** Header.Click
Select Table1 && assuming that this is recordsource
Set order to tag name
This.parent.parent.refresh
Then I want to ask you a question: what is the purpose of using recno() for coloring the grid? What exactly you want to indicate by this?
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform