![]() |
tlaStrToHex
Convert String of Digits to Hexadecimal CodeWright® - API Macro - Royalty Free - Send Comments |
PurposeConvert String of Digits to Hexadecimal. This function is an augmentation of NumsToHex that attempts to correct these limitation. OperationStarbase distributes the the API macro NumsToHex with each copy of CodeWright. This function is quite interesting and can be helpful when converting from decimal to hexadecimal. Unfortunately NumsToHex does not check for either overflow or underflow conditions. Consequently, the results of the conversions can be incorrect. This being the case, it would seem foolhardy to rely on NumsToHex for any conversion. tlaStrToHex leverages the code in NumsToHex and validates the results. All underflow conditions are eliminated and all overflow conditions are identified. A comparison of the two functions is: Examples
Example
Input ParametersNone. Return Codes
ReferenceThis function calls tlaError. CompatibilityCurrent version verified under:
CodeWright for .NET RestrictionNone. InstallationThere are three primary methods for installing this macro on your system. Method A uses the tlaMDE tool available for purchase from this website. Method B manipulates the macro repository directly. Method C uses the API Macro... tool provided in every copy of CodeWright (but not CodeWright for .NET). Method A - tlaMDE - CodeWright or CodeWright for .NET
Method B - Copy to Repository - CodeWright or CodeWright for .NET
Method C - API Macro ... - CodeWright Only
PurchasetlaTools is a Dynamic Link Library that contains most of the API macros on this website in a single easy to install package. The tlaTools DLL can be purchased by selecting the Buy button on this page. tlaStrToHex is included as a function in tlaTools.
|
Copyright © 1993-2005 Thom Little Associates, Ltd. revised One Central Square, Keene, NH 03431-3787 phone 603-357-7567 |