View Single Post
  #2  
Old 02-10-2010, 07:37 AM
JvdBosch JvdBosch is offline
Member
 
Join Date: Sep 2006
Posts: 36
string = 'Interval=4'

string.split('=')[1] will return 4 (as string)
int(string.split('=')[1]) will return 4 (as int)
string[9] will return 4 (as string)
int(string[9]) will return 4 (as int)

And so on. Good luck!
Reply With Quote