Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Prob
Message
From
30/10/1998 08:42:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/10/1998 08:05:49
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00152395
Message ID:
00152728
Views:
19
>On Grid1.init
>Create cursor temp (order C(254))
>
>On Grid1.header1.click
>
>Select temp
>ZAP
>
>SELECT * FROM orderlist INTO ARRAY aOrder ORDER BY date
>IF _TALLY<>0
>INSERT INTO temp FROM ARRAY aOrder
>ENDIF
>
>SELECT temp
>Go Top
>
>THIS.PARENT.PARENT.REFRESH()
Senna,
What does this really do ? Grid.recordsource = "temp" unordered at first and later order by date on header click ? If so there are shortcuts :
* Grid.init
Create cursor temp (myorder C(254))
* Populate cursor
index on myorder tag myorder
this.recordsource = "temp"
* Header click
set order to tag myorder
this.parent.parent.refresh
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform