Advertisement
imjyb1008work

[LotusScript]排序多重值

Jul 8th, 2014
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub Initialize
  2.  
  3.     Dim a = (1 To 5) As Variant
  4.     Dim b As Variant
  5.     Dim temp As String
  6.  
  7.     a(1) = "G"
  8.     a(2) = "E"
  9.     a(3) = "A"
  10.     a(4) = "H"
  11.     a(5) = "P"
  12.  
  13.     Foall i In a
  14.         Print i
  15.         temp = temp & {'} & i & {'} & {:}
  16.     End Forall
  17.  
  18.     temp = Left(temp, Len(temp)-1 )
  19.     b = Evaluate( {@Sort} & temp & {;[ASCENDING])} )
  20.  
  21.     Foall i In b
  22.         Print i
  23.     End Forall
  24.  
  25. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement