Jump to content
Sign in to follow this  
lakini18

need help converting hex to lowercase

Recommended Posts

lakini18

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)

GuiCtrlCreateUpDown(-1)

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)

Example:

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
themax90

$HexData = StringLower($Hexo)

NEXT time look in and search the help file.

StringLower

--------------------------------------------------------------------------------

Converts a string to lowercase.

StringLower ( "string" )

Parameters

string - The string to convert.

Return Value

Returns the string converted to lowercase.

Remarks

None.

Related

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

Example

$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
lakini18

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  

×

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.