Using strfind
#6

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
@RoboN1X - Once you're done with the loop, use break then return the value afterwards. And there is no need to use loops whatsoever, just use strfind when it comes to finding strings in non-defined spots in other strings. If you want to compare one cell, then you could use "if(text[0] == '.')" for example.
I'm sorry, isn't return keyword automatically breaks loop and exit the function? Also i'm just telling "it could be also", since he is just finding a CHARACTER in a STRING, strfind is for finding SUBSTRING in a STRING. Also he didn't say to compare one cell, he said that if there is/are ANY dot(s) in a STRING.
Althought i didn't compare which is best method for this case, i'm just giving two possible methods.

Please correct me if i'm wrong, thanks.

And for thread starter, hope that helps.
Reply


Messages In This Thread
Using strfind - by Cepillado - 09.01.2016, 00:13
Re: Using strfind - by Jefff - 09.01.2016, 00:49
Respuesta: Using strfind - by Cepillado - 09.01.2016, 01:05
Re: Using strfind - by RoboN1X - 09.01.2016, 01:10
Re: Using strfind - by SickAttack - 09.01.2016, 01:28
Re: Using strfind - by RoboN1X - 09.01.2016, 01:45
Respuesta: Using strfind - by Cepillado - 09.01.2016, 01:47

Forum Jump:


Users browsing this thread: 1 Guest(s)