Guest Posted August 21, 2012 Share Posted August 21, 2012 (edited) I have a serious problem .. I wrote something big and now I want to put this algorithm: #include $Current_site_check = "test.txt" ; Read the file into an array Global $aLines2 _FileReadToArray($Current_site_check, $aLines2) $Search_List_lines = $aLines2[0] $sFile_Text = FileRead($Current_site_check) $sFile_Text = StringRegExpReplace($sFile_Text, "[rn]", "") ConsoleWrite($sFile_Text & @CRLF) $C_INI_Search = "test1" $iLocation = StringInStr($sFile_Text, $C_INI_Search) ; If it is found then work out the line If $iLocation Then $iCharCount = 0 For $a = 1 To $Search_List_lines $iCharCount += StringLen($Current_site_check) If $iCharCount > $iLocation Then $val2 = $a-1 EndIf Next MsgBox(4096, "Search Algorithm 2","(Search Algorithm 2 - only in the line-breaks) - " & "Found: """ & $C_INI_Search & """ " & $val2 & " times") EndIf In this code I wrote: https://www.dropbox.com/s/97pghkz8zq18psd/help.rar You need to download it. I have to bring it that way because it comes with another files.) Between a lines 37 - 44 According to my understanding, it should use the same loops and use the same variables. But I can not able to use the loops already done. Is this possible? I have this algorithm will work ln lines 37 - 44 inside the If $C_INI_Search <> "NotFound" Then this is the Plan.. this shuld use the Variables that were created please halp me Edited August 21, 2012 by Guest Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 21, 2012 Moderators Share Posted August 21, 2012 gil900, your first link is to the post that Melba locked, as it was against forum rules. Why would you then open another thread, asking for continued assistance based on the locked thread?! I suggest you read the rules carefully. "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...
Skitty Posted August 21, 2012 Share Posted August 21, 2012 (edited) Oh god, he's creating an "algorithm" to seek out teen pornography, what is wrong with you man? Don't you have any morals? Oh, wait, we're on the internet. Anyway, that doesn't sound like it breaks the rules, it sounds like it breaks a few real world laws. Edited August 21, 2012 by CaptainClucks Link to comment Share on other sites More sharing options...
Guest Posted August 21, 2012 Share Posted August 21, 2012 (edited) It was just coincidence .. They were just words I chose them like an idiot for the example .. I have no goal to do a search with such words. This is a mistake .. Edited August 21, 2012 by Guest Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 21, 2012 Moderators Share Posted August 21, 2012 gil900,This is a mistakeCorrect. And in that thread I told you not to repost the same question - and yet you have seen fit to ignore that advice. Have a few days holiday to think about the Forum Rules and how you will follow them in future. 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...
Recommended Posts