Description
Returns True if the hardware key attached to the local workstation is a customer or dealer key, and False if it is an AnyDoc employee key. This can be useful for automatically switching connection strings to connect to different databases based on where the template is used.
Applicable Events
AnyApp Pre-Application, AnyApp Post-Algorithm, AnyApp Post-Application, Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify, ZoneLink
Syntax
object.CustomerSite
Parameters
Object is a reference to the Utility object. For more information, see Utility Object (page Utility Object).
CustomerSite is the command.
Example
‘ Use local ACCESS database for testing
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;User Id=admin;Password=;"
If Utility.CustomerSite then
strConn = "Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;"
End if