type Fruit is (Banana, Orange, Pear);
Choice : Fruit := Banana;
A character type is an enumeration that includes a character literal:
type Roman_Numeral is
('I', 'V', 'X', 'L', 'C', 'D', 'M', Unknown);`
A floating point type is characterised by its (decimal) digits which state the minimal precision requested.
type Distance is digits 8;
Earth : Distance := 40_075.017;
If you're accepting user input for folder paths, you might need to check for trailing backslashes (\) before building a file path. The FSO.BuildPath method makes this simpler:
Const sourceFilePath As String = "C:\Temp" '<-- Without trailing backslash
Const targetFilePath As Strin...
In this example you will explore how to export the following data from Acumatica ERP in a single call via the REST Contract-Based API:
all stock items existing in the application
all sales order of the IN type
If you need to export records from Acumatica ERP, use the following URL:
http://&l...
In this example you will explore how to export the following data from Acumatica ERP in batches via the REST Contract-Based API:
stock items existing in the application in batches of 10 records
all sales orders in batches of 100 records
To export stock items in batches of 10 records with mult...
In most other languages indentation is not compulsory, but in Python (and other languages: early versions of FORTRAN, Makefiles, Whitespace (esoteric language), etc.) that is not the case, what can be confusing if you come from another language, if you were copying code from an example to your own, ...
Components
Resource Manager: It is the ultimate authority that allocates resource among all application in the system. It is also responsible for allocating container in which application master will start and initializing it after container allocation for application master.
Node Manager: It is r...
It is basically address of a variable in memory. It allows us to indirectly access a variable. So using pointers we can talk about a variable's address(as well as its value by dereferencing the pointer). They are useful when we want to deal with address of a memory location rather than its value.
C...
This example uses <md-chips> and <md-chip>.
NOTE: Static chips cannot be selected, removed or edited, and are not part of any model.
If no ng-model is provided, there are no input elements in <md-chips>.
index.html:
<md-content ng-controller="ChipController">
&...
Sometimes you may want to have some login to determine where the user gets redirected to after submitting a form. Form Requests give a variety of ways.
By default there are 3 variables declared in the Request $redirect, $redirectRoute and $redirectAction.
On top of those 3 variables you can overr...
In the case of a discriminated record type, some of the components are known
as discriminants and the remaining components can depend upon these. The
discriminants can be thought of as parameterizing the type and the syntax reveals
this analogy.
In this example we create a type that provide a sq...
// gets the Class objects from the net.mminecraft.server package with the given name
public Class<?> getNmsClass(String name) throws ClassNotFoundException {
// explode the Server interface implementation's package name into its components
String[] packageArray = Bukkit.getServer()....