Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Arithmetical Functions
Arithmetic Operators
Array Declaration
Assignment Operators
Binary Data Representation
Bits Manipulation Functions
Character Test Functions
Comparison methods
Complex numbers
Constant Declaration
Constant Expression
Conversion Functions
Datatype Functions
Date & Time Functions
Enumeration declaration
Error Management
Event Loop
Event Management
Events declaration
External Function Management
File & Directory Functions
File & Directory Paths
File mode syntax
Floating Point Numbers
Formatting functions
Gambas Object Model
Global Special Event Handlers
Integer numbers
Intrinsic Functions
Language Constants
Localization and Translation Functions
Local Variable Declaration
Logarithms & Exponentials Functions
Logical Operators
Loop Control Structures
Method Declaration
Miscellaneous Control Structures
Miscellaneous Functions
Native Arrays
Native Container Classes
Object & Class Management
Operator Evaluation Order
Predefined Constants
Process Management
Property Declaration
Random Numbers Functions
Special Methods
Stream & Input/Output functions
String Functions
String Operators
Structure declaration
Test Control Structures & Functions
Trigonometric Functions
User-defined formats
Using reserved keywords as identifiers
Variable Declaration
Last Changes
Search the wiki
To Do
Wiki License
Wiki Manual

Conversion Functions

CBool Converts a value to a Boolean.
CByte Converts a value to a Byte.
CDate Converts a value to a Date.
CFloat Converts a value to a Float.
CInt or CInteger Converts a value to an Integer.
CLong Converts a value to a Long.
Conv$ Converts a string from a charset to another charset.
CPointer Converts a value to a Pointer.
CShort Converts a value to a Short.
CSingle Converts a value to a Single.
CStr or CString Converts a value to a String.
CVariant Converts a value to a Variant.
DConv$ Converts a string from the system charset to UTF-8 (the desktop charset).
FromBase or Dec Converts a string to an Integer using a specific base.
SConv$ Converts a string from UTF-8 (the desktop charset) to the system charset.
Str$ Converts a number or a date into a string.
Val Converts a string into a number or a date.