|
#1
|
|||
|
|||
|
Is there a way to add hex values?
Hi sorry to bother you guys again - I am making a small app and I want to be able to add two hex values together - I can do this with decimal numbers easily, however the result when adding two hex numbers is wrong. Can APMS 6 do this? and how? thanks.
|
|
#2
|
|||
|
|||
|
Hmm I couldn't find the edit button to edit my post:
Here is what I'm trying to do: Code:
-- gets the hex number from inputmac
get = Input.GetText("Inputmac");
-- converts the hex number to decimal
hex = Math.HexToNumber(get);
-- converts the hex number 1 to a decimal number
hex2 = Math.HexToNumber(1);
-- Adds the value from Inputmac + 1
sum = hex + hex2
-- Displays the added result in decimal
Dialog.Message("Result", sum, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
|
|
#3
|
||||
|
||||
|
Do this instaead for the last line:
-- Displays the added result in decimal Dialog.Message("Result", string.format("%x",sum), MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); |
|
#4
|
|||
|
|||
|
Wicked m8, that worked a treat. Thanks very much.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compare Values in tables | Byte | AutoPlay Media Studio 5.0 | 7 | 06-18-2005 03:36 PM |
| How to add a folder to setup? | anilthomas26 | Setup Factory 7.0 Discussion | 1 | 04-27-2005 01:08 PM |
| HEX to ASCII converter | SUF6NEWBIE | AutoPlay Media Studio 5.0 | 2 | 01-14-2005 06:14 PM |
| Add INI Value Help | nolazabal | Setup Factory 6.0 | 7 | 07-08-2003 09:50 AM |
| HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-30-2002 02:55 PM |
All times are GMT -6. The time now is 07:27 AM.








Linear Mode

