Jump to content

StringInStr - upper/lower Q


Recommended Posts

in this example you see that it will return 7 I was found, yet there is no I in Label ii. And what if I cant predict $string2 value, it can be upper/lower/or upper & lower all mixed up, how should I check if there is $string2 value in the $string in this case ?

$string = 'Label ii'
$string2 = 'I'

$result = StringInStr($string, $string2)

    If $result > 0 Then
        MsgBox(0, "Result: " & $result,'I was found')
    Else
        MsgBox(0, "Result: " & $result,'I was not found')
    EndIf
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

StringInStr("HELLO","e",1) ; Case sensitive search

:)

Ya logish.

looks like i need a break :) ....thanx for reply.

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...