Jump to content
Sign in to follow this  
goldenix

StringInStr - upper/lower Q

Recommended Posts

goldenix

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]

Share this post


Link to post
Share on other sites
monoceres

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

:)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
goldenix

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]

Share this post


Link to post
Share on other sites
sandin

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.