Data type differences


BrowserHawk provides true data type properties for Boolean, Integer, String, Datetime, and Double. As a result, values accessed from the BrowserHawk object will already be in the data type you prefer – without the need to typecast using functions such as CBool and CInt.


For example, your scripts may currently use:

if CInt(browObj.Majorver) = 4 then


You can now safely replace this with:

if browObj.Majorver = 4 then


Note: Although removing typecasting from your scripts results in more efficient and cleaner code, your scripts will continue to run smoothly if you do not wish to make this enhancement.


See Also:

Property data types

Working with properties

Browscap Conversion Guide