mIRC Home    About    Download    Register    News    Help

Print Thread
#73347 01/03/04 11:10 PM
Joined: Mar 2004
Posts: 3
S
S3S Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Mar 2004
Posts: 3
I need to find a way to *quickly* show a file into a dialog listbox and sort it depending the preferences.

The file entries would look like:
Article Company Prize Quantity Reference

And i want to be able to sort it by any of them, and in descendant/ascendant order too if possible.

/filter would be the way to do it I suppose, but can't think a way to do it.. A simple example would be appreciated smile

thanks


S3S was here..
#73348 02/03/04 04:30 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
; /reload [-e] <Article|Company|Prize|Quantity|Reference>

; For ascending order
; /reload Prize -or- /reload Article

; For descending order
; /reload -e Company -or- /reload -e Quantity
Code:
alias reload {
  if $1 == -e { var %s = -fotce | tokenize 32 $$2- }
  else var %s = -fotc
  filter %s $findtok(Article Company Prize Quantity Reference,$$1,32) 32 [color:brown]file.txt[/color] [color:tomato]DialogName[/color] [color:maroon]DialogID[/color]
}

#73349 02/03/04 11:18 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Might want to rename the alias, to avoid overriding the internal /reload command wink


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#73350 03/03/04 07:27 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Hey yeah true that. Thanks blush


Link Copied to Clipboard