Juno_okyo

StringInStr Example

May 24th, 2015
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.23 KB | None | 0 0
  1. ;ABCDE
  2. ;ABXXXXCDE
  3. ;ABCDE
  4.  
  5. #NoTrayIcon
  6. Global $fp = FileReadToArray(@ScriptFullPath)
  7. Global $total = UBound($fp) - 1
  8.  
  9. For $i = 0 To $total
  10.     If StringInStr($fp[$i], 'ABCDE') > 0 Then
  11.         ConsoleWrite(($i + 1) & @CRLF)
  12.     EndIf
  13. Next
Add Comment
Please, Sign In to add comment