Hi in a BASIC routine,
i can use the FIELD function to extract a substring from a string based on delimiters and instances
How can i check if a string S1 is a substring of S2 or not? The substring can occur at any part of S1
Thanks,
-srinivas yelamanchili
check if substring in a routine
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 232
- Joined: Fri Aug 04, 2006 1:20 am
- Location: Bangalore
No need to write anything for Server when all kinds of functionality is already built in. As noted, 'Index' is a good answer here and the returned found position of the substring can be treated as a simple true/false Boolean when just checking for existence.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers