The Global object is a static object that can not be instantiated.
All its functions and constants are global and can be called everywhere without specifying the object name.
Functions
| DebugClear | Clears the Debug Window. |
|---|---|
| DebugInfo | Adds a text line to the Debug Window. |
| DecodeChars | |
| EnableApplicationLoop | Allows to create real time applications with an infinite loop. |
| EncodeChars | |
| Flag | |
| FlagAdd | |
| FlagSub | |
| FlagToggle | |
| FloatToInt | Converts a float to an integer. |
| FloatToStr | Converts a float to a string. |
| FormatFloat | Formats a float value as a string by using the current regional settings of the operating system. |
| FormatInt | Formats an integer value as a string by using the current regional settings of the operating system. |
| GetApplicationDll | Retrieves the DLL pathname if the application is a DLL file. |
| GetApplicationExe | Retrieves the EXE pathname if the application is an executable file. |
| GetApplicationFolder | Retrieves the full pathname of the application folder. |
| GetApplicationShow | Retrieves the visibility mode of the main window that should be set at start. |
| GetArgument | Retrieves the specified argument of the application command line. |
| GetArgumentCount | Retrieves the number of arguments of the application command line. |
| GetID | Retrieves the constant value of the specified ID. |
| GetObjectRef | Retrieves the integer value of the instance reference. |
| GetObjectTypeID | Retrieves the ID of the object type (Integer.ID, Table.ID, Mouse.ID...). |
| GetObjectValue | Retrieves the private value of the specified instance. |
| IntToFloat | Converts an integer to a float. |
| IntToStr | Converts an integer to a string. |
| IsSystemObject | Allows to know if the specified object is a system or user object. |
| Md5 | Calculates the MD5 value of the string. |
| MessageBox | Shows a standard message box. |
| NewFromID | Allows to create new instances by using the ID of the object. |
| QuitApplication | Stops the application immediately and terminates the process. |
| SetObjectValue | Changes the private value of the specified instance. |
| SetRegionalFormat | Changes the regional settings. |
| Sha1 | Calculates the SHA-1 value of the string. |
| Sleep | Pauses the program with a C++ while loop. |
| StrToFloat | Converts a string to a float. |
| StrToInt | Converts a string to an integer. |
| ToARGB | Retrieves the value of the specified ARGB color. |
| ToRGB | Retrieves the value of the specified RGB color. |
| ToYUV | Retrieves the value of the specified YUV color. |
Events
The Global object has no events.
Constants
| ALIGN_BOTTOM | |
|---|---|
| ALIGN_CENTER | |
| ALIGN_LEFT | |
| ALIGN_MIDDLE | |
| ALIGN_RIGHT | |
| ALIGN_TOP | |
| AUTOSIZE_BOTTOM | Move control to bottom when the dialog is resizing. |
| AUTOSIZE_CENTER | Center control horizontaly when the dialog is resizing. |
| AUTOSIZE_HALF | AUTOSIZE_HALFHORZ | AUTOSIZE_HALFVERT |
| AUTOSIZE_HALFHORZ | Divide by 2 the width or horizontal position of the control when the dialog is resizing. This one must be combinated with AUTOSIZE_CENTER, AUTOSIZE_RIGHT or AUTOSIZE_WIDTH. |
| AUTOSIZE_HALFVERT | Divide by 2 the height or vertical position of the control when the dialog is resizing. This one must be combinated with AUTOSIZE_MIDDLE, AUTOSIZE_BOTTOM or AUTOSIZE_HEIGHT. |
| AUTOSIZE_HEIGHT | Resize control verticaly when the dialog is resizing. |
| AUTOSIZE_MIDDLE | Center control verticaly when the dialog is resizing. |
| AUTOSIZE_NONE | Do not resize and move control when the dialog is resizing. |
| AUTOSIZE_RIGHT | Move control to right when the dialog is resizing. |
| AUTOSIZE_SIZE | AUTOSIZE_WIDTH | AUTOSIZE_HEIGHT |
| AUTOSIZE_WIDTH | Resize control horizontaly when the dialog is resizing. |
| BTN_LCLICK | Left click (down+up). |
| BTN_LDBCLICK | Left double click. |
| BTN_LDOWN | Left button down. |
| BTN_LUP | Left button up. |
| BTN_MCLICK | Middle click (down+up). |
| BTN_MDBCLICK | Middle double click. |
| BTN_MDOWN | Middle button down. |
| BTN_MUP | Middle button up. |
| BTN_RCLICK | Right click (down+up) |
| BTN_RDBCLICK | Right double click. |
| BTN_RDOWN | Right button down. |
| BTN_RUP | Right button up. |
| CANCEL | Its value is always -1. This constant is used when an event needs to return OK or CANCEL. |
| CMP_DESCENDING | Descending sort of the reference values for comparison tests. You must implement it in your code (Array.OnCompare). |
| CMP_INSENSITIVE | Descending sort of the reference values for comparison tests. You must implement it in your code (Array.OnCompare). |
| CMP_SAMETYPE | Same type of references for comparison tests. You must implement it in your code (Array.OnCompare). |
| CS_UTF8 | UTF8 Charset |
| DRAW_BOTTOMCENTER | Drawing an image at the bottom center without resizing it. It can not be combinated with other constants. |
| DRAW_BOTTOMLEFT | Drawing an image at the bottom left corner without resizing it. It can not be combinated with other constants. |
| DRAW_BOTTOMRIGHT | Drawing an image at the bottom right corner without resizing it. It can not be combinated with other constants. |
| DRAW_CENTER | Drawing an image at the center horizontaly and verticaly without resizing it. It can not be combinated with other constants. |
| DRAW_FIT | Drawing an image (the image is resizing with original ratio but not enlarged). It can not be combinated with other constants. |
| DRAW_FITZOOM | |
| DRAW_MIDDLELEFT | Drawing an image at the middle left without resizing it. It can not be combinated with other constants. |
| DRAW_MIDDLERIGHT | Drawing an image at the middle right without resizing it. It can not be combinated with other constants. |
| DRAW_STRETCH | Drawing an image using stretching method (the image is resizing without keeping ratio). It can not be combinated with other constants. |
| DRAW_TILE | Drawing an image using tiling method (the image is duplicated several times). It can not be combinated with other constants. |
| DRAW_TOPCENTER | Drawing an image at the top center without resizing it. It can not be combinated with other constants. |
| DRAW_TOPLEFT | Drawing an image at the top left corner without resizing it. It can not be combinated with other constants. |
| DRAW_TOPRIGHT | Drawing an image at the top right corner without resizing it. It can not be combinated with other constants. |
| E | The value of E. |
| MBA_ABORT | The answer when the user clicks on the ABORT button (MessageBox). |
| MBA_CANCEL | The answer when the user clicks on the CANCEL button (MessageBox). |
| MBA_IGNORE | The answer when the user clicks on the IGNORE button (MessageBox). |
| MBA_NO | The answer when the user clicks on the NO button (MessageBox). |
| MBA_OK | The answer when the user clicks on the OK button (MessageBox). |
| MBA_RETRY | The answer when the user clicks on the RETRY button (MessageBox). |
| MBA_YES | The answer when the user clicks on the YES button (MessageBox). |
| MBI_EXCLAMATION | Show the EXCLAMATION icon (MessageBox). |
| MBI_INFORMATION | Show the INFORMATION icon (MessageBox). |
| MBI_QUESTION | Show the QUESTION icon (MessageBox). |
| MBI_STOP | Show the STOP icon (MessageBox). |
| MB_ABORTRETRYIGNORE | Show Abort, Retry and Ignore buttons (MessageBox). |
| MB_OK | Show OK button (MessageBox). |
| MB_OKCANCEL | Show OK and Cancel buttons (MessageBox). |
| MB_RETRYCANCEL | Show Retry and Cancel buttons (MessageBox). |
| MB_YESNO | Show Yes and No buttons (MessageBox). |
| MB_YESNOCANCEL | Show Yes, No and Cancel buttons (MessageBox). |
| OK | Its value is always 0. This constant is used when an event needs to return OK or CANCEL. |
| PI | The value of PI. |
| QUIT | Quit application (Dialog.OnDestroy). |
| RAD_135 | The radian value of 135 degrees. |
| RAD_180 | The radian value of 180 degrees. |
| RAD_225 | The radian value of 225 degrees. |
| RAD_270 | The radian value of 270 degrees. |
| RAD_315 | The radian value of 315 degrees. |
| RAD_360 | The radian value of 360 degrees. |
| RAD_45 | The radian value of 45 degrees. |
| RAD_90 | The radian value of 90 degrees. |
| REGION_FR | French Region |
| REGION_LOCAL | Operating System Region |
| REGION_US | American Region |
Example
value = Md5("Hello World")