CreateCompany(CompanyCode: String, CompanyName: String; DataPath: String, [ModuleList: String, [Country: String, [Currency: String, [TaxRegime: String]]]]): Boolean
Create new company database and add to the Company List.
Returns True if a company is successfully created, otherwise returns False.
CreateCompany function syntax has these named arguments:
Parameter |
Description |
|---|---|
Company Code |
Required. The Code for the company. Must be a valid unique code. |
Company Name |
Required. The name of the company. |
Data Path |
Required. The company data path. This can optionally begin with .\ |
Module List |
Optional. The list of modules codes to create for the company, separated by commas, such as |
Country |
Optional. The country ISO Code. Defaults to the Windows Regional Setting if not entered. |
Currency |
Optional. The currency ISO code. If entered, must match the Country, otherwise defaults from the Country. |
Tax Regime |
Optional. The tax regime code. If entered, must match the Country, otherwise defaults from the Country. |