Runtime API¶
The BasicRuntime assembly is the .NET implementation of the MVsharp MV BASIC runtime. Reference it from C#, Python or JavaScript to call MV BASIC functionality directly.
-
Functions
404 static functions (526 overloads) covering file I/O, dynamic arrays, sockets, selects and conversions.
-
Exceptions
8 exception types raised for aborts, chains, database errors and record locks.
-
Utility types
9 supporting classes such as
Crc16,Soundex,Timingsand the LiteDB sorters.
Namespace summary¶
| Type | Category | Members |
|---|---|---|
AccountNotSetup |
Exception | 3 |
AppAbortException |
Exception | 5 |
AppQuitException |
Exception | 3 |
ChainException |
Exception | 3 |
Crc16 |
Class | 1 |
DbErrorException |
Exception | 3 |
DbLockedException |
Exception | 3 |
Functions |
Static class | 526 |
InvalidArgumentList |
Exception | 3 |
LiteDbSort1 |
Class | 3 |
LiteDbSort2 |
Class | 4 |
LiteDbSort3 |
Class | 5 |
ProcessAnsi |
Class | 1 |
SelectAbortException |
Exception | 3 |
Soundex |
Class | 1 |
Timings |
Class | 1 |
internalselect |
Class | 1 |
tempselect |
Class | 4 |
Calling the runtime¶
MV BASIC values are represented by DynamicArray. Functions that return values through their
arguments take them as ref DynamicArray.
import clr
clr.AddReferenceToFileAndPath(r"C:\Program Files\ProsolGroup\MVSHARP\BasicRuntime.dll")
clr.AddReferenceToFileAndPath(r"C:\Program Files\ProsolGroup\MVSHARP\DynArray.dll")
from BasicRuntime import Functions
from DynArray import DynamicArray
fileVar = DynamicArray()
record = DynamicArray()
if Functions.OPEN("", "CONTRACT", fileVar):
Functions.READ(fileVar, "000001", record, -1, False, False, False)
print(Functions.DCOUNT(record, chr(254)))
See Python integration and JavaScript integration for setup details.
About this reference
Generated from the BasicRuntime assembly on 2026-07-15: 573 public members across 18 types.
The Test scenario and Expected response rows describe how each member is verified.