GiulioM Posted April 11, 2010 Share Posted April 11, 2010 (edited) Can I write this: For $letter = "a" To "z" [my code] Next ..? Edit Ok.Ok. I explain. I want to realize a "brute-force search"* program: so it needs to send, for example: a; b; c; ... aa; ab; ac; ..... * = http://en.wikipedia.org/wiki/Brute-force_search Edited April 11, 2010 by GiulioM Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 11, 2010 Moderators Share Posted April 11, 2010 GiulioM,Have you tried? Short answer: No.Longer answer: It depends on what you want to do. Using Asc converts letters to numerics and will let you do some things. Explain what you want to do and we will see what we can develop. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
GiulioM Posted April 11, 2010 Author Share Posted April 11, 2010 Look to my edit. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 11, 2010 Moderators Share Posted April 11, 2010 GuilioM, Look to my longer answer! What are you trying to search for? Perhaps we can help develop something more elegant. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Malkey Posted April 11, 2010 Share Posted April 11, 2010 This may help.This script produces every combination of one, two, and three lower case letters.Local $sStr, $iCount For $i = 1 To 26 $sStr &= Chr($i + 96) & "; " $iCount += 1 For $j = 1 To 26 $sStr &= Chr($i + 96) & Chr($j + 96) & "; " $iCount += 1 For $k = 1 To 26 $sStr &= Chr($i + 96) & Chr($j + 96) & Chr($k + 96) & "; " $iCount += 1 Next Next Next ConsoleWrite("Counted " & $iCount & @CRLF & StringTrimRight($sStr, 2) & @CRLF) 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