Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/Features/Packages/Creating a TWINPACK package.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Creating a TWINPACK Package
parent: Packages
grand_parent: Features
nav_order: 1
permalink: /Features/Packages/Creating-TWINPACK
redirect_from:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Importing a Package from TWINSERV
parent: Packages
grand_parent: Features
nav_order: 2
permalink: /Features/Packages/Importing-TWINSERV
redirect_from:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Importing a Package from a TWINPACK File
parent: Packages
grand_parent: Features
nav_order: 3
permalink: /Features/Packages/Importing-TWINPACK
redirect_from:
Expand Down
1 change: 1 addition & 0 deletions docs/Features/Packages/Linked Packages.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Linked Packages
parent: Packages
grand_parent: Features
nav_order: 5
permalink: /Features/Packages/Linked

Expand Down
1 change: 1 addition & 0 deletions docs/Features/Packages/Updating a package.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Updating a Package
parent: Packages
grand_parent: Features
nav_order: 4
permalink: /Features/Packages/Updating
redirect_from:
Expand Down
5 changes: 3 additions & 2 deletions docs/Reference/Assert/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: Assert Package
parent: Reference Section
nav_order: 25
parent: Packages
grand_parent: Reference Section
nav_order: 4
permalink: /tB/Packages/Assert/
has_toc: false
---
Expand Down
26 changes: 26 additions & 0 deletions docs/Reference/Packages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Packages
parent: Reference Section
nav_order: 20
permalink: /tB/Packages/
has_toc: false
---

# Packages

A *package* groups related code — modules, classes, controls, and enumerations — under a single namespace, and is referenced from a project as a single dependency. See [Features → Packages](../../Features/Packages/) for how packages are built and distributed in general; the pages below document the *built-in* packages that ship with twinBASIC itself.

## Default Packages

These packages are included in every project by default.

- [VB Package](VB/) -- standard controls (**CheckBox**, **CommandButton**, **TextBox**, …), forms, and the application-level singletons (**App**, **Screen**, **Clipboard**, **Printer**, …)
- [VBA Package](VBA) -- the standard runtime library — **MsgBox**, **CStr**, **Mid**, **Format**, … grouped into modules, plus the **Collection** and **Err** intrinsics and twinBASIC's runtime expression engine
- [VBRUN Package](VBRUN/) -- runtime-only types — ambient properties, asynchronous-read state, structured error context, the **PropertyBag**, the clipboard / drag-and-drop container, and the enumerations used by classic VB6 forms and controls

## Built-In Packages

These packages are built into twinBASIC and are always available, even offline. To use them, add them to Project → References (Ctrl-T) → Available Packages.

- [Assert Package](Assert/) -- assertion functions for unit tests — three modules (**Exact**, **Strict**, **Permissive**) sharing the same fifteen-member API with different comparison strictness
- [WebView2 Package](WebView2/) -- the **WebView2** control wrapping the Microsoft Edge runtime, plus its surrounding wrapper objects (request / response / headers / environment options) and the `wv2…` enumerations
5 changes: 3 additions & 2 deletions docs/Reference/VB/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: VB Package
parent: Reference Section
nav_order: 21
parent: Packages
grand_parent: Reference Section
nav_order: 1
permalink: /tB/Packages/VB/
has_toc: false
---
Expand Down
5 changes: 3 additions & 2 deletions docs/Reference/VBA/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: VBA Package
parent: Reference Section
nav_order: 22
parent: Packages
grand_parent: Reference Section
nav_order: 2
permalink: /tB/Packages/VBA
redirect_from:
- /tB/Modules
Expand Down
5 changes: 3 additions & 2 deletions docs/Reference/VBRUN/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: VBRUN Package
parent: Reference Section
nav_order: 23
parent: Packages
grand_parent: Reference Section
nav_order: 3
permalink: /tB/Packages/VBRUN/
has_toc: false
---
Expand Down
5 changes: 3 additions & 2 deletions docs/Reference/WebView2/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: WebView2 Package
parent: Reference Section
nav_order: 24
parent: Packages
grand_parent: Reference Section
nav_order: 5
permalink: /tB/Packages/WebView2/
has_toc: false
---
Expand Down