MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: VbsCheck()[Next]: Custom Action Functions
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->VBSCRIPT->VBSCRIPT Functions - For Imbedded VB->X2L()

X2L()

This function is used to safely convert a hexadecimal value into a long integer. VBSCRIPT has no way to do this safely.

An example of what you might try is the expression "clng(&H8000)", this will fail as the hex literal is first converted to a short integer and then converted to a long one.

The function takes these parameters:

  1. A hexadecimal value as a string. All spaces are stripped from this value allowing you to format long values for readability.

    The value can (but doesn't have to) begin with either "&H" or "0x" (in any case).


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: VbsCheck()[Next]: Custom Action Functions


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday December 09 2017 at 9:30am
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.