You can wrap values into actions and pipe the result of one computation into another:
return :: Monad m => a -> m a
(>>=) :: Monad m => m a -> (a -> m b) -> m b
However, the definition of a Monad doesn’t guarantee the existence of a function of type Monad m => m a -&...
The unset command is used to remove one or more variables.
unset ?-nocomplain? ?--? ?name name name name?
Each name is a variable name specified in any of the ways acceptable to the set command.
If a name refers to an element of an array then that element is removed without affecting the rema...
The example below will collect the Device's OS version number and the the version of the application (which is defined in each projects' properties) that is entered into Version name on Android and Version on iOS.
First make an interface in your PCL project:
public interface INativeHelper {
/...
When object's are linked by a lookup or master-detail relationship, the parent records field's can be referenced from the child record or 'base object' in a query. This is also known as upwards traversal.
SELECT FirstName, Account.Name, Account.Category__c FROM Contact
It's possible to traverse ...
A Property procedure is a series of statement that retrieves or modifies a custom property on a module.
There are three types of property accessors:
A Get procedure that returns the value of a property.
A Let procedure that assigns a (non-Object) value to an object.
A Set procedure that assign...
Any public Sub, Function, or Property inside a class module can be called by preceding the call with an object reference:
Object.Procedure
In a DateRange class, a Sub could be used to add a number of days to the end date:
Public Sub AddDays(ByVal NoDays As Integer)
mEndDate = mEndDate + No...
//Create Connection
$conn = sqlsrv_connect($dbServer, $connectionInfo);
$query = "SELECT * FROM [table]";
$stmt = sqlsrv_query($conn, $query);
Note: the use of square brackets [] is to escape the word table as it is a reserved word. These work in the same way as backticks ` do in ...
There are 3 main ways to fetch results from a query:
sqlsrv_fetch_array()
sqlsrv_fetch_array() retrieves the next row as an array.
$stmt = sqlsrv_query($conn, $query);
while($row = sqlsrv_fetch_array($stmt)) {
echo $row[0];
$var = $row["name"];
//...
}
sqlsrv_fetch...
Create this class :
public class InputFilterMinMax implements InputFilter {
private int min, max;
public InputFilterMinMax(int min, int max) {
this.min = min;
this.max = max;
}
public InputFilterMinMax(String min, String max) {
this.min = Integer...
You have to create a different strings.xml file for every new language.
Right-click on the res folder
Choose New → Values resource file
Select a locale from the available qualifiers
Click on the Next button (>>)
Select a language
Name the file strings.xml
strings.xml
<resources&...
Intro
An array is a container object that holds a number of values. In the following image you can see an array with size 10, the first element indexed 1 and the last element 10.
Autohotkey offers a few ways of defining and creating arrays.
Array := []
Array := Array()
Creating and initia...
if(A_TimeIdlePhysical > 60000) { ; 60,000 milliseconds
WinClose, ahk_class Chrome_WidgetWin_1
MsgBox, Google Chrome was closed due to user inactivity.
}
This check could be done periodically, e.g. using SetTimer.
Comments in Tcl are best thought of as another command.
A comment consists of a # followed by any number of characters up to the next newline. A comment can appear wherever a command can be placed.
# this is a valid comment
proc hello { } {
# the next comment needs the ; before it to indicat...