![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Code Samples & Tips Share your recent discoveries and ideas with other users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I've had a rummage through the Help and through the forums for 'HEX' but nothing there - No doubt there a library for this
- but if you don't want to add a DLL for just having a Hex2Dec or Dec2Hex (keywords HexToDec DecToHex Hex Dec ) then why not use this code which converts hexadecimal to decimal and vice versa.This example has a sample form. You can convert a six digit hex number (used for HTML coding i.e. FFFFFF) to a set of three RGB decimal values. Or you can convert a single Decimal number (0-255) to a hex number i.e. 255 = FF. I have made this because I am making a HTML Theme creator for my current PDA game. Hope it will be useful to someone... |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| D-Pad Navigation Sample (?) | Dave Mitchell | Questions & Help Needed | 1 | 05-14-2008 05:29 AM |
| naming sample files | bdiscount | Questions & Help Needed | 1 | 02-19-2008 12:27 AM |
| HTTP upload sample | bluedude | Questions & Help Needed | 2 | 12-28-2007 08:59 PM |
| Sample sqllite application | anansath | Code Samples & Tips | 13 | 06-28-2007 04:44 PM |
| Sample Hi-Score Table | RandomCoder | Code Samples & Tips | 0 | 05-22-2007 09:22 PM |