Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Field Phrase NF' Revisited
Message
From
08/12/1998 13:30:31
 
 
To
08/12/1998 13:16:36
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00165066
Message ID:
00165224
Views:
10
That's an interesting way of doing it...

Thanks,

-Michelle

>Michelle,
>I got what you're trying to do,
>I have a simple code I always use for a list that can change sort order
>
>list1.rowsourcetype=0-none
>
>
>PROCEDURE list1.add_data (UD method)
>PARAMETER nSort
>RELEASE myarray
>THIS.CLEAR
>DO CASE
> CASE nSort=1
> Select * from mytable into array myarray order by 1
> CASE nSort=2
> Select * from mytable into array myarray order by 2
> CASE nSort=3
> Select * from mytable into array myarray order by 3
>ENDCASE
>
>FOR i=1 TO _TALLY
> for j=1 TO ALEN('myarray',2)
> THIS.ADDLISTITEM(myarray(i,j),i,j)
> ENDFOR
>ENDFOR
>
>ENDPROC
>
>So all you have to do is passing parameter to list1.add_data and change the order on the list.
>Hope this simple code can help.
>(I've already frustated with my sloooooowwwww ISP)
Previous
Reply
Map
View

Click here to load this message in the networking platform