Advertisement
imjyb1008work

[LotusScript]移除陣列元素

Jun 17th, 2014
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub Initialize
  2.     '[LotusScript]將陣列其中一個元素移除
  3.     Dim i As Integer
  4.    
  5.     Dim array(6) As String
  6.     array(0) = "Alpha"
  7.     array(1) = "Beta"
  8.     array(2) = "Gamma"
  9.     array(3) = "Delta"
  10.     array(4) = "Epsilon"
  11.     array(5) = "Zeta"
  12.     array(6) = "Eta"
  13.     For i = Lbound(array) To Ubound(array)
  14.         Print i & "," & array(i)
  15.     Next i
  16.    
  17.     Print "***********"
  18.    
  19.     Dim result As Variant
  20.     result = Fulltrim(Arrayreplace(array, "Delta", ""))
  21.     For i = Lbound(result) To Ubound(result)
  22.         Print i & "," & result(i)
  23.     Next i
  24.    
  25. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement