rednap1 Posted January 31, 2017 Share Posted January 31, 2017 $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 Link to comment Share on other sites More sharing options...
spudw2k Posted January 31, 2017 Share Posted January 31, 2017 I'm not making sense of what you are asking. How about a real world example? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted January 31, 2017 Share Posted January 31, 2017 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?! Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
rednap1 Posted January 31, 2017 Author Share Posted January 31, 2017 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 Link to comment Share on other sites More sharing options...
spudw2k Posted January 31, 2017 Share Posted January 31, 2017 Ok, so if "A" exists anywhere in a text file return true else return false? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
rednap1 Posted January 31, 2017 Author Share Posted January 31, 2017 3 minutes ago, spudw2k said: Ok, so if "A" exists anywhere in a text file return true else return false? yes Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 31, 2017 Moderators Share Posted January 31, 2017 Are you seriously looking for single letters, or are you looking for a string? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
spudw2k Posted January 31, 2017 Share Posted January 31, 2017 (edited) 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 January 31, 2017 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
rednap1 Posted January 31, 2017 Author Share Posted January 31, 2017 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 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 31, 2017 Moderators Share Posted January 31, 2017 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? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
rednap1 Posted January 31, 2017 Author Share Posted January 31, 2017 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 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 31, 2017 Moderators Share Posted January 31, 2017 Uh, which? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
spudw2k Posted January 31, 2017 Share Posted January 31, 2017 (edited) 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 = 1DEADBEEF = 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 January 31, 2017 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
aleph01 Posted February 1, 2017 Share Posted February 1, 2017 (edited) Will IsString ( variable ) work for you? Check the help file. _aleph_ Never mind. Strings can contain letters and numbers. I oversimplified I think. Edited February 1, 2017 by aleph01 lack of thoughtfulness Meds. They're not just for breakfast anymore. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now