Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Ordering a grid

$
0
0
Re: Ordering a grid
FoxInCloud
Re: Ordering a grid
Jan. 3, 2013
03:07 am
3OM06PKM5Show this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Michele
MODIFY COMMAND awHTML
Please replace:
IF m.llFilterAPPENDFROMDbf(m.lcCursor) USE IN (m.lcCursor)ELSEAPPENDFROMDbf(.RecordSource)ENDIF tnRow = Reccount()

by:
IF m.llFilterAPPENDFROMDbf(m.lcCursor) USE IN (m.lcCursor)ELSEAPPENDFROMDbf(.RecordSource)ENDIFIF m.llOrderLOCAL lcOrderExp lcOrderExp = cTagExpr(m.lcOrder)IF lTableExpr(m.lcOrderExp)INDEXON&lcOrderExp TAG (m.lcOrder)ENDIFENDIF tnRow = Reccount()


I've not still solved the problem.....I have no primary key on the table, because the code i see in the table is not the real record's id (the primary key). In the Load i open the table and i set the order to the tag of the field i have in the first column, but the grid is not ordered on this field....Obviously this is a Problem, because i can't link this field to a primary key


Michele,

what is the status of this issue?


I have a form within a grid. In the Load event of the form i open my table and set order to my main tag, but when the form is shown the grid with data from my table is not ordered on the tag i select. Do i need to do something particular ?




Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)


Viewing all articles
Browse latest Browse all 10393

Trending Articles