This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Convert Decimal to Hex..... URGENT
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 26, 2008
10:31 AM
Convert Decimal to Hex..... URGENT
Hi,
I need to convert some decimal values to hexadecimal values at runtime, so is there any inbuilt function in installscript?
I
f the answer is no, then is there any other solution to this problem?:confused:
Please help. URGENT
Thanks in advance 🙂
I need to convert some decimal values to hexadecimal values at runtime, so is there any inbuilt function in installscript?
I
f the answer is no, then is there any other solution to this problem?:confused:
Please help. URGENT
Thanks in advance 🙂
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 26, 2008
10:53 AM
(Follow-up [post=424046]here[/post].)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 26, 2008
11:04 AM
InstallScript does not have a builtin hexadecimal data type. All numbers are expressed in decimal form.
In order to convert a number to hex, you will have to store it in a string. You can use the Sprintf() function to convert the decimal number to a hex string.
NUMBER numDecimal; // decimal version of the number
STRING strHex; //string where you want to save the hex version of the number
Sprintf(strHex, "%lX", numDecimal);
In order to convert a number to hex, you will have to store it in a string. You can use the Sprintf() function to convert the decimal number to a hex string.
NUMBER numDecimal; // decimal version of the number
STRING strHex; //string where you want to save the hex version of the number
Sprintf(strHex, "%lX", numDecimal);
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 26, 2008
11:16 AM
Thanks a lot MGarrett, I'll try for the same and will revert back if I face any probs.
Thanks again.:)
Thanks again.:)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 26, 2008
04:39 PM
Note that you can also use 'StrToNumHex' and 'NumToStr' functions to do the conversion.
Devin Ellingson
Software Developer
Acresso Software
Devin Ellingson
Software Developer
Acresso Software
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 27, 2008
08:36 AM
Thanks a lot 🙂