string question

nate100

Member
Say if I have a name like TOM JONES.
What is the most efficient way of determining that there is a space in the name.

Thanks
 
I haven't done any speed tests, but I would guess the obvious solution would be

index(YourString, " ") > 0

With the side benefit that it will point to the space. If 0, no space.
 
Back
Top