Jump to content

need help converting hex to lowercase


lakini18
 Share

Recommended Posts

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
Link to comment
Share on other sites

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