Basic Language Manual - LIHACHTETAN/ClassicUO-BadNewbie-BasicIDE GitHub Wiki

BASIC Language

Home · BASIC · UO API · A–Z · Examples · Languages

Справочник поддерживаемого языка этого движка. Это не обещание совместимости со всеми возможностями VB.NET. Игровые команды пишутся с UO., конструкции и встроенные функции BASIC — без этого префикса.

en · ru · uk · fr · de · it · es · zh-tw · ja · ko

Language Overview

ApiNames · Types · OptionExplicit

Program Structure

Темы: SUB Main(), Statements, Comments, Case Sensitivity.

Program

Variables & Constants

Темы: DIM, VAR, CONST, Scope, Lifetime.

Variables · Constants · OptionExplicit

Data Types

Темы: INTEGER, STRING, BOOLEAN, DOUBLE, Arrays, List, Dictionary, Structure, Class.

Types · Arrays · List · Dictionary · Structure · Class

Literals

Темы: Decimal, Hex, String, TRUE, FALSE.

Literals

Operators

Темы: Arithmetic, Comparison, Logic, Short Circuit, Concatenation, Compound Assignment.

Arithmetic · Comparison · Logic · ShortCircuit · Concatenation · CompoundAssignment

Conditions

Темы: IF, ELSEIF, ELSE, SELECT CASE.

If · SelectCase

Loops

Темы: FOR, FOR EACH, WHILE, DO / LOOP, BREAK, CONTINUE.

For · ForEach · While · Do · Continue

Procedures

Темы: SUB, CALL, Parameters, BYVAL, BYREF, OPTIONAL, PARAMARRAY.

Sub · Parameters · ByVal · ByRef · Optional · ParamArray · NamedArguments

Functions

Темы: FUNCTION, RETURN, Return Types.

Function · Parameters · ByVal · ByRef · Optional · ParamArray

Arrays & Collections

Темы: Arrays, REDIM, PRESERVE, List, Dictionary.

Arrays · List · Dictionary · ForEach

Modules & Includes

Темы: INCLUDE, MODULE, PUBLIC, PRIVATE.

Include · Module · Visibility

Classes

Темы: CLASS, NEW, ME, PROPERTY, Methods, Visibility.

Class · With · Visibility

Structures & Enums

Темы: STRUCTURE, ENUM.

Structure · Enum

Error Handling

Темы: TRY, CATCH, FINALLY, THROW, ON ERROR, RESUME.

Try · OnError · Goto

Events & Callbacks

Темы: EVENT, AddHandler, RemoveHandler, RaiseEvent, AddressOf, UO Game Events.

Callbacks · Events · GameEvents

Timers

Темы: CreateTimer, Script Timers.

Timers

Async

Темы: ASYNC, AWAIT, DELAY.

Async

Wait & Timing

Темы: UO.Wait, wait, Delay, Wait Until, Timeout.

WaitUntil · Timers · Async

Files & Data

Темы: File, JSON, MemoryStream, Config.

Config · Using

Native DLL

Темы: DECLARE, LIB, ALIAS.

Declare · Windows

Built-in BASIC Functions

Темы: String, Math, Conversion, Date / Time, Collections.

String

ASC · Chr · contains · GetWord · GetWordCount · InStr · InStrRev · LCase · left · len · LTrim · mid · remain · Replace · right · RTrim · Space · StrComp · String · Trim · UCase

Math

Abs · Atn · BasicMod · BasicXor · Cos · Exp · Fix · Int · Log · Rnd · Round · Sgn · Sin · Sqr · Tan · RGB

Conversion

CBool · CDbl · CInt · CLng · CSng · CStr · Hex · IsNumeric · str · val

Date / Time

CreateTimer · Delay · Now · sleep · Timer · wait

Collections

ArrayContains · Dictionary · GetArrayLength · List

Files / JSON / Data

File · JsonBoolean · JsonKind · JsonLoad · JsonNull · JsonParse · JsonSave · JsonStringify · MemoryStream

Messages

message · messagebox