How do I Use hexadecimal numbers in my macro???

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
crissyluflo
Newbie
Posts: 1
Joined: Thu Feb 27, 2003 11:48 pm

How do I Use hexadecimal numbers in my macro???

Post by crissyluflo » Thu Feb 27, 2003 11:53 pm

If anyone can help me use hexadecimal numbering in my macro I would greatly appreciate it. Thanks!!!

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Fri Feb 28, 2003 10:16 am

Hi,

Use VBScript's Hex and CInt functions. Here's an example:


VBSTART
VBEND

Let>DecVal=450
VBEval>Hex(%DecVal%),HexVal
MessageModal>HexVal

VBEval>CInt("&H" & "%HexVal%"),BackToDec
MessageModal>BackToDec

Let>MyHexVal=&H7fff
VBEval>CInt("%MyHexVal%"),MyDecVal


Use hex values by prepending &H to them.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts