lakini18 Posted December 10, 2005 Share Posted December 10, 2005 (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) 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 December 10, 2005 by lakini18 Link to comment Share on other sites More sharing options...
themax90 Posted December 10, 2005 Share Posted December 10, 2005 $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 More sharing options...
lakini18 Posted December 10, 2005 Author Share Posted December 10, 2005 Thanks so much, worked great! I did search arround the help file and the forum, but couldnt find it. Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now