Sign in to follow this  
Followers 0

need help converting hex to lowercase

3 posts in this topic

#1 ·  Posted (edited)

working on a program that gives a hex value, the only problem is that it gives the hexvalue in upper case letters and i need it to be lower case. Here is some of my code:

From my GUI: (This askes you to enter in a number for $VCI)

GuiCtrlCreateLabel("VCI", 10, 115)

$VCI = GuiCtrlCreateInput("1", 60, 110, 40, 20)


Here in the proram, it reads the GUI to see what value is inputed

$VCI2 = GUICtrlRead($VCI)

Here it converts the number to HEX, but only gives upper case HEX values, I need them to be lowercase

$hexo = hex($vci2, 4)


738 is entered in the value

it converts it to 02E2, and I need it to be 02e2

Hope somebody can help me with this and hope its not confusing, thanks so much.

Edited by lakini18

Share this post

Link to post
Share on other sites

$HexData = StringLower($Hexo)

NEXT time look in and search the help file.



Converts a string to lowercase.

StringLower ( "string" )


string - The string to convert.

Return Value

Returns the string converted to lowercase.




StringIsLower, StringIsUpper, String, StringInStr, StringLeft, StringLen, StringMid, StringRight, StringTrimLeft, StringTrimRight, StringUpper


$var = StringLower("I Am A String")

MsgBox(0, "String converted to lowercase is:", $var)

AutoIt Smith

Share this post

Link to post
Share on other sites

Thanks so much, worked great! I did search arround the help file and the forum, but couldnt find it. Thanks again!

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  
Followers 0