QBConnector Configuration
The class accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.QBConnector Configuration Settings
AuthFlags: Auth Flags to use when connecting to QuickBooks. This configuration setting controls what auth flags are sent to QuickBooks. The default value is 0 (no auth flags set). | |
DefaultConnectionString: Default connection string to use for users not in the AuthorizedUsers collection. If a user connects to the class who is not in the AuthorizedUsers collection, and you set the Accept parameter in the Authorization event to True anyways, the class will use this connection string to open a connection with QuickBooks. This is blank by default. | |
ConnectedToQB: Used to connect or disconnect from QuickBooks. This setting allows you to connect and disconnect to the QuickBooks request processor which resides on the server machine. Calling Config with ConnectedToQB=False will immediately disconnect from QuickBooks. ConnectedToQB=True, however, will use the DefaultConnectionString (if present) to open a persistent connection to QuickBooks. Note that if the class is already connected to QuickBooks, setting ConnectedToQB to True will cause the class to fails with an error. Connecting in this manner is only useful if there are no connection strings specified in any AuthorizedUsers, as in that case the class will disconnect from QuickBooks and reconnect with the credentials specified for that individual user. However, it is not necessary to use this configuration setting to connect to QuickBooks. If no connection strings are specified in the AuthorizedUsers and the class is not currently connected to QuickBooks, a new connection will be made using the DefaultConnectionString. | |
ReadOnly[i]: Whether a user is restricted to read-only access. This setting specifies whether a user is limited to read-only access. The index should
be the of the user in the AuthorizedUsers collection. For instance:
QBConnector1.Config( "ReadOnly[0]=True" ); | |
UseInteractiveLogon: Whether interactive or network logon is used when AuthMode is set to Windows. This setting only applies when the AuthorizedAuthMode is set to 1 (amWindows). When performing windows authentication a regular network logon is attempted by default. When this setting is set to true an interactive logon is performed instead. This setting may be required in certain circumstances, such as using a domain account and the domain controller is Samba. |
Base Configuration Settings
SelectWaitMillis: The length of time in milliseconds the class will wait when DoEvents is called if there are no events to process. If there are no events to process when DoEvents is called, the class will wait for the amount of time specified here before returning. The default value is 20. |
Base Configuration Settings
CodePage: The system code page used for Unicode to Multibyte translations. The default code page is the Active Code Page (0). The following is a list of valid code page identifiers:
The following is a list of valid code page identifiers for Mac OS only:
|