Changing your Server.CreateObject statements


The first and likely only thing you will need to change in your ASP scripts to use BrowserHawk instead of Microsoft’s browser capability component is to change the class string in your Server.CreateObject statements.


Your scripts currently use the statement:


 Set someVarName = Server.CreateObject("MSWC.BrowserType")


You need to replace the "MSWC.BrowserType" with "cyScape.browserObj". So the new statements will read:


 Set someVarName = Server.CreateObject("cyScape.browserObj")


Accessing the resulting object is identical, using the familiar someVarName.PropertyName format. For example, someVarName.Majorver.


See Also:

Using BrowserHawk in your web scripts

Data type differences

Browscap Conversion Guide