# TBMAN module
{: .no_toc }

The module that gives the package its name. It holds one ready-made instance of eight of the package's classes, as public variables, and a **Version** property. A program can use them without a `New`, and every part of the program shares the same instance of each.

```tb check_build check_run
TBMAN.Json.Clear
TBMAN.Json.Decode "{""name"":""Ann""}"
Debug.Print TBMAN.Json.Item("name")
Debug.Print TypeName(TBMAN.Json)
' Output:
' Ann
' cJson
```

The variables are declared `As New`, so each object is created the first time it is used. Because the instance is shared, its state is shared: the document in [**Json**](#json), the data in [**Csv**](#csv) and the settings in [**Logs**](#logs) are the same wherever the program reads them. A program that needs two documents, or logs with different settings, makes its own objects with `New`.

The name of the package can be put in front of the name of the module, as `TBMANLIB.TBMAN.Json`, when another package the project references also has a module named **TBMAN**.

```tb check_build check_run
Debug.Print TypeName(TBMANLIB.TBMAN.Json)
' Output:
' cJson
```

* TOC
{:toc}

## Members

### Csv
{: .no_toc }

A shared [**cCsv**](/tB/Packages/Contributed/TBMANLIB/cCsv.md), a table of text that can be read from and written to CSV files.

Syntax: **TBMAN.Csv** **As cCsv**

### Ini
{: .no_toc }

A shared [**cIni**](/tB/Packages/Contributed/TBMANLIB/cIni.md), which reads and writes INI files.

Syntax: **TBMAN.Ini** **As cIni**

### HttpClient
{: .no_toc }

A shared [**cHttpClient**](/tB/Packages/Contributed/TBMANLIB/cHttpClient.md), which sends HTTP requests.

Syntax: **TBMAN.HttpClient** **As cHttpClient**

The request settings of a **cHttpClient**, such as its headers and its timeout, stay in the object, so every part of the program that uses this instance sees the settings of the others. A program that sends requests with different settings makes its own objects.

### Json
{: .no_toc }

A shared [**cJson**](/tB/Packages/Contributed/TBMANLIB/cJson.md), a JSON document that can be read from and written to text and files.

Syntax: **TBMAN.Json** **As cJson**

Call [**Clear**](/tB/Packages/Contributed/TBMANLIB/cJson.md#clear) before decoding a new document into it: the shared object keeps whatever an earlier part of the program stored.

### Layer
{: .no_toc }

A shared [**cLayer**](/tB/Packages/Contributed/TBMANLIB/cLayer.md), which shows a message box.

Syntax: **TBMAN.Layer** **As cLayer**

### Logs
{: .no_toc }

A shared [**cLogs**](/tB/Packages/Contributed/TBMANLIB/cLogs.md), which writes log lines.

Syntax: **TBMAN.Logs** **As cLogs**

### SysTray
{: .no_toc }

A shared **cSysTray**. The class has no members; see [Types without members](/tB/Packages/Contributed/TBMANLIB/index.md#types-without-members).

Syntax: **TBMAN.SysTray** **As cSysTray**

### TimerUse
{: .no_toc }

A shared [**cTimeuse**](/tB/Packages/Contributed/TBMANLIB/cTimeuse.md), a stopwatch.

Syntax: **TBMAN.TimerUse** **As cTimeuse**

### Version
{: .no_toc }

Returns a version number as text.

Syntax: **TBMAN.Version** **As String**

The text is `v`, then `App.Major`, a period, `App.Minor`, a period and `App.Build`. The `App` is that of the program that uses the package, not that of the package: in a program whose version is 2.3.4.7 (major, minor, revision, build), the result is `v2.3.7`. The revision number is not in the text, and the version of the package, 1.0.0.29, is not in it either.

## See Also

- [cJson](/tB/Packages/Contributed/TBMANLIB/cJson.md), [cLogs](/tB/Packages/Contributed/TBMANLIB/cLogs.md), [cCsv](/tB/Packages/Contributed/TBMANLIB/cCsv.md), [cIni](/tB/Packages/Contributed/TBMANLIB/cIni.md), [cHttpClient](/tB/Packages/Contributed/TBMANLIB/cHttpClient.md), [cLayer](/tB/Packages/Contributed/TBMANLIB/cLayer.md), [cTimeuse](/tB/Packages/Contributed/TBMANLIB/cTimeuse.md) classes -- the classes of the instances
- [TBMANLIB](/tB/Packages/Contributed/TBMANLIB/index.md) package -- overview
