Skip to content

VBMAN Global Static Object Documentation

Overview

VBMAN is a global static object instance in VB6 projects. After referencing vbman.dll, it can be used anywhere in the VB6 project without manual New instantiation.

Core Advantages

  1. Zero Configuration: Use directly after referencing the DLL, no instantiation required
  2. Rich Features: Covers database, JSON, HTTP, file operations, encryption, and other common functions
  3. Chain Calling: Most objects support chain calling for cleaner code
  4. Type Safety: Complete strong type support with IDE auto-completion
  5. Production Verified: Widely used in multiple actual projects

Quick Start

vb
' Use directly after referencing vbman.dll
Dim Result As String
Result = VBMAN.Json.Encode(SomeObject)

' Database operation example
VBMAN.Db.Sql("SELECT * FROM users WHERE id=?").Param("id", 1).Fetch

' File operation example
VBMAN.ToolsFso.AutoMakeDir "C:\MyApp\Data"

Sub-object List

Data Operations

ObjectClassDescription
JsoncJsonJSON parsing and building
CsvcCsvCSV file read/write
InicIniINI configuration file operations
DbcDataBaseDatabase operations
CollectioncCollectionEnhanced collection class

Network Communication

ObjectClassDescription
HttpClientcHttpClientHTTP client requests

File and System

ObjectClassDescription
FileExcFileExAdvanced file operations
ToolsFsocToolsFsoFile system operations
ToolsStreamcToolsStreamFile stream operations
RegeditcRegeditRegistry operations
StartUpcStartUpStartup management

Utility Classes

ObjectClassDescription
ToolsStrcToolsStrString processing tools
ToolsMathcToolsMathMathematical operation tools
ToolsHttpcToolsHttpHTTP utility functions
ToolsBase64cToolsBase64Base64 encoding/decoding
ToolsUtf8cToolsUtf8UTF-8 encoding/decoding
ToolsArraycToolsArrayArray operation tools
ToolsDiccToolsDicDictionary operation tools
ToolsListcToolsListList operation tools
ToolsSystemcToolsSystemSystem information tools
ToolsCrccToolsCrcCRC checksum calculation
ToolsWindowcToolsWindowWindow operation tools

UI and Interaction

ObjectClassDescription
DialogcDialogDialog operations
ToastcToastNotification message display

Other Functions

ObjectClassDescription
LogscLogsLog recording
CmdcCmdCommand line execution
TimeUsecTimeUseTiming tools
PLIcPLIPlugin interface
QRcodecQRcodeQR code generation
PasswordcPasswordPassword handling
DelaycDelayDelayed execution
FormatercFormaterFormatting tools
BaiducBaiduBaidu service interface

Usage Patterns

Direct Usage Pattern

vb
' Simplest usage - global object direct call
Dim jsonText As String
jsonText = VBMAN.Json.Encode(myData)

Chain Calling Pattern

vb
' Objects supporting chain calling can be called continuously
VBMAN.Db.Sql("SELECT * FROM users").Fetch
Debug.Print VBMAN.Db.Row("name")

Independent Instance Pattern

vb
' When multiple independent instances are needed, create with New
Dim json1 As New cJson
Dim json2 As New cJson

json1.Item("key1") = "value1"
json2.Item("key2") = "value2"

Reference Instructions

To use VBMAN in a VB6 project:

  1. Reference vbman.dll (Project → References)
  2. Ensure the DLL is in the same directory as the EXE, or configure the path correctly
  3. No additional declaration needed, access directly through the VBMAN object

VB6 and LOGO copyright of Microsoft Corporation