Previous Topic

Next Topic

Book Contents

Book Index

CreateCompany - MaxBasic Function

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 "AP,AR,IC,IN,IS,PO,OE". If not specified or an empty string is passed then all installed modules are created.

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.