Guest User

Untitled

a guest
Jul 2nd, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. get_numbers("453f358f264")
  2.  
  3. WaitKey
  4.  
  5.  
  6. Function get_numbers(strng$)
  7.     strng$=strng$+"f" ; to terminate the string
  8.     strng_lenght=Len(strng$) ; get length of string as int
  9.    
  10.     For i=1 To strng_lenght ; go through every char in the string
  11.         nextsign$=Mid(strng$,i,1) ; get the char at position i (defined in for loop above)
  12.         If (nextsign$<>"f") ; if it wasnt a 'f'
  13.             If Mid(strng$,i+1,1)<>" " ; and the next sign after the 'f' wasnt a blank (' ')
  14.                 number$=number$+nextsign$ ;add it to the number string we are excrating
  15.             EndIf
  16.         Else ; if it was a 'f'
  17.             Print number$ ; print our number string
  18.             number$="" ; clear it
  19.         EndIf
  20.     Next
  21. End Function
Add Comment
Please, Sign In to add comment