Jump to content

Convert first letter to small letter


Recommended Posts

  • Moderators

Yeah, but it's one command built into the language, and we let AutoIt worry about the implementation of it. I personally don't care HOW it's done I just want to get it done.

I want a quarter inch hole, not a quarter inch drill.

I'd rather make a single wrapper call to a dll most of the time, but in fairness, I'd imagine stringlower + stringleft + stringtrimleft is 5 to 10x's faster than the dll call.

And for more giggles, a wrapper to the CharLowerBuff

Func _WinAPI_CharLowerBuff($sString, $iLen = Default)

    $iLen = ((IsKeyword($iLen) Or $iLen < 1) ? StringLen($sString) : $iLen)

    Local $aszRet = DllCall("user32.dll", "dword", "CharLowerBuffW", _
        "wstr", $sString, "dword", $iLen)
    If @error Or Not $aszRet[0] Then
        Return SetError(1, 0, "")
    EndIf

    Return SetError(0, $aszRet[0], $aszRet[1])
EndFunc

@kaesereibe

Maybe you should put that suggestion as a topic in Dev-Chat

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Why not add this feature to AutoIt StringLower

 

After all of these examples of how easy it is to do at the user level?

 

@BrewmanH - I love it when these heavy hitters go off like this.  Learn something every time!!

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

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...