## Recommended Posts

\$var = "a"   ,"b"  , "c" , "d" , "e" , "j" , "k" ;and more

\$number = "1" ,"2","3","4","5","6" ;and more

how i can make "a" and "b","b" and "c ","d" and" j"," k" and "a", = True

if "1" and "b" or "4"and "k" or "6"and  "j" = False   ;symbol "a"and"d" true  ... number and symbol false

help me

##### Share on other sites

I'm not making sense of what you are asking.  How about a real world example?

Spoiler

Misc Code Snippets:
Projects: SubnetCalc
Cool Stuff:

##### Share on other sites
18 minutes ago, rednap1 said:

\$var = "a"   ,"b"  , "c" , "d" , "e" , "j" , "k" ;and more

\$number = "1" ,"2","3","4","5","6" ;and more

how i can make "a" and "b","b" and "c ","d" and" j"," k" and "a", = True

if "1" and "b" or "4"and "k" or "6"and  "j" = False   ;symbol "a"and"d" true  ... number and symbol false

help me

Wait so... WAIT WHAT?!

Spoiler

Thoughts:

• I will always thank you for the time you spent for me.
I'm here to ask, and from your response, I'd like to learn.
By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

##### Share on other sites
4 minutes ago, spudw2k said:

I'm not making sense of what you are asking.  How about a real world example?

for example if there is wroten letter "A" at the text documents then it shall write success at message box if there is not letter "A" then text fail at message box

##### Share on other sites

Ok, so if "A" exists anywhere in a text file return true else return false?

Spoiler

Misc Code Snippets:
Projects: SubnetCalc
Cool Stuff:

##### Share on other sites
3 minutes ago, spudw2k said:

Ok, so if "A" exists anywhere in a text file return true else return false?

yes

##### Share on other sites

Are you seriously looking for single letters, or are you looking for a string?

√-1 2^3 ∑ π, and it was delicious!

##### Share on other sites

I'm not seeing the big picture here, but here's one example:

```\$sText = "Some source text"
\$sFindLetter = "A"

Msgbox(0,"Search for letter", "Letter: " & \$sFindLetter & @CRLF & "found in string: " & \$sText & " = " & _FindLetter(\$sText, \$sFindLetter))

Func _FindLetter(\$sText, \$sFindLetter)
Local \$iFound = StringInstr(\$sText, \$sFindLetter)

If \$iFound Then
Return True
Else
Return False
EndIf
EndFunc```

Edited by spudw2k

Spoiler

Misc Code Snippets:
Projects: SubnetCalc
Cool Stuff:

##### Share on other sites
2 minutes ago, JLogan3o13 said:

Are you seriously looking for single letters, or are you looking for a string?

if there is gonna be letters i want True and if there are numbers False

##### Share on other sites

Ok, now (finally) we are getting somewhere. So, in the entire file if there are any numbers you want it to be false? Or just if certain numbers come up? Same with letters: any letters and it is true, or just certain letters?

√-1 2^3 ∑ π, and it was delicious!

##### Share on other sites
1 minute ago, JLogan3o13 said:

Ok, now (finally) we are getting somewhere. So, in the entire file if there are any numbers you want it to be false? Or just if certain numbers come up? Same with letters: any letters and it is true, or just certain letters?

yes

##### Share on other sites

Uh, which?

√-1 2^3 ∑ π, and it was delicious!

##### Share on other sites

I think there is a communication gap here.  There are many ways to do what you want...how efficient do you want it to be?  Please give some more use cases.  What do you expect to happen with each of the following?

LMNO =
A1B2C3 =
12345 =
1.0 =
ABACABB =
Version History 2017/01/31 =

....why do I suspect you just want a working snippet rather than understanding how to do it yourself.
Have you tried anything on your own?

Edited by spudw2k

Spoiler

Misc Code Snippets:
Projects: SubnetCalc
Cool Stuff:

##### Share on other sites

Will IsString ( variable ) work for you?  Check the help file.

_aleph_

Never mind.  Strings can contain letters and numbers.  I oversimplified I think.

Edited by aleph01
lack of thoughtfulness

Meds.  They're not just for breakfast anymore.

## Create an account

Register a new account