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. :)

check out the instr function eg

if instr(1, stringToSearch, "b") > 0 or instr(1, stringToSearch, "d")> 0 then
   msgbox "found"
end if
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.