Vybe Documentation

Vybe Main page

 

Info & Interaction Functions

These functions provide information about variables, types, and system state, as well as basic user interaction capabilities.

Type & Information Functions

Function Syntax Description
IsNumeric IsNumeric(expr) Returns True if the expression can be evaluated as a number.
IsArray IsArray(var) Returns True if the variable is an array.
IsDate IsDate(expr) Returns True if the expression can be converted to a date.
IsNothing IsNothing(obj) Returns True if the object reference is Nothing.
IsEmpty IsEmpty(var) Returns True if a variable has not been initialized.
IsObject IsObject(var) Returns True if the variable is an object type.
TypeName TypeName(var) Returns a string providing information about a variable's data type.
VarType VarType(var) Returns an integer indicating the subtype of a variable.
IIf IIf(cond, t, f) Returns one of two objects, depending on the evaluation of an expression.
Choose Choose(index, ...) Selects and returns a value from a list of arguments.
Switch Switch(e1, v1, ...) Evaluates a list of expressions and returns the value associated with the first True expression.

Environment Class

The System.Environment class provides information about, and means to manipulate, the current environment and platform.

Member Syntax / Type Description
CurrentDirectory Property (String) Gets or sets the fully qualified path of the current working directory.
NewLine Property (String) Gets the newline string defined for this environment.
MachineName Property (String) Gets the NetBIOS name of this local computer.
UserName Property (String) Gets the user name of the person who is currently logged on.
OSVersion Property (String) Gets an operating system identifier and version number.
ProcessorCount Property (Integer) Gets the number of processors on the current machine.
TickCount Property (Long) Gets the number of milliseconds elapsed since the system started.
GetEnvVar Environment.GetEnvironmentVariable(name) Retrieves the value of an environment variable.
SetEnvVar Environment.SetEnvironmentVariable(name, val) Creates, modifies, or deletes an environment variable.
GetFolderPath Environment.GetFolderPath(specialFolder) Gets the path to a system special folder (e.g., 0 for Desktop).

Guid Class

Method Syntax / Type Description
NewGuid Guid.NewGuid() Initializes a new instance of the Guid structure with a random value.
Empty Constant (String) A read-only instance of the Guid structure whose value is all zeros.

User Interaction

Function Syntax Description
MsgBox MsgBox(prompt, [btns], [title]) Displays a message in a dialog box and waits for a response.
InputBox InputBox(prompt, [title], [default]) Displays a prompt in a dialog box and returns the user's input.
Beep Beep() Sounds a tone through the computer's speaker.

System & Application

Function Syntax Description
Shell Shell(cmd, [style]) Runs an executable program.
Environ Environ(envstring) Returns the value of an environment variable.
Command Command() Returns the argument part of the command line used to start Vybe.
App App.Path, App.Title Accesses application-level properties.
Screen Screen.Width, Screen.Height Accesses display/screen properties.

Form Control