0

hi.
would someone minf giving me a snippet of a code where a program searches for a specific character in a string?
for example. if i have a label that contains a string "abcd" the program would check if the characters "b" and "d" exist in the string regardless of from what position it is found, as long as those letters are present in the string.

thankyou so much for the help. :)

2
Contributors
1
Reply
2
Views
4 Years
Discussion Span
Last Post by ChrisPadgham
0

check out the instr function eg

if instr(1, stringToSearch, "b") > 0 or instr(1, stringToSearch, "d")> 0 then
   msgbox "found"
end if
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.