Guest User

Untitled

a guest
Feb 21st, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function splitby:TList(str$,messagesize%=400)
  2.     Local list:TList=New TList
  3.     Local i%=0
  4.     Local j%=-1
  5.     Local h%=0
  6.     While(j<str.length-1)' i=0 To str.length/messagesize
  7.         i=j+1
  8.         j=str.find(" ",messagesize+i)
  9.         j:+(j=-1)*(str.length+1)'turn -1 into str.length
  10.         list.addlast(str[i..j])
  11.     Wend
  12.     If(list.isEmpty())
  13.         list.addlast("")
  14.     EndIf
  15.     Return list
  16. End Function
Add Comment
Please, Sign In to add comment