The Mudcat Café TM
Thread #130738 Message #2944679
Posted By: JohnInKansas
14-Jul-10 - 01:16 AM
Thread Name: Tech - ALTKEY Codes on Laptop
Subject: RE: Tech - ALTKEY Codes on Laptop
Should MikeL - or anyone else - find the hex coding handy, it might be of interest to have the "simple Word" on converting decimal numbers to their hex equivalents.
Although it may look complicated, it's really quite simple once you've done it.
In WORD, Ctl-F9 will insert a pair of field braces { } with your cursor between them. (You can't type the {}, you have to use Ctl-F9 or "Insert Field".) Type an "=" followed by a simple equation that gets the decimal number. (e.g. for 251 make it look like {=251}.
type in the "format" \*HEX to look like {=251 \*HEX} and hit F9.
Word should immediately show you that the HEX value of decimal 251 is FB. It's recommended that you add zeros onto the front to make it four characters - 00FB for use in coding.
If you like, Ctl-Shift-F9 will "unlink" the field so that it's an ordinary number and no longer has the magical powers of a field.
The "number format switch" (\*) only works for the results of a field, which is why you create an "equation" field with a result that is the decimal number you want to see in hex form.