Revision [17801]
This is an old revision of KeyPgOpLessThanOrEqual made by FxMwikki on 2015-09-17 08:31:48.
Operator <= (Less than or Equal)
Compares an expression less than or equal to another expression
Syntax:
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgByte byte, KeyPgByref byref rhs KeyPgAs as KeyPgByte byte ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgUbyte ubyte, KeyPgByref byref rhs KeyPgAs as KeyPgUbyte ubyte ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgShort short, KeyPgByref byref rhs KeyPgAs as KeyPgShort short ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgUshort ushort, KeyPgByref byref rhs KeyPgAs as KeyPgUshort ushort ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgInteger integer, KeyPgByref byref rhs KeyPgAs as KeyPgInteger integer ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgUinteger uinteger, KeyPgByref byref rhs KeyPgAs as KeyPgUinteger uinteger ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgLongint longint, KeyPgByref byref rhs KeyPgAs as KeyPgLongint longint ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgUlongint ulongint, KeyPgByref byref rhs KeyPgAs as KeyPgUlongint ulongint ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgUbyte ubyte, KeyPgByref byref rhs KeyPgAs as KeyPgUbyte ubyte ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgShort short, KeyPgByref byref rhs KeyPgAs as KeyPgShort short ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgUshort ushort, KeyPgByref byref rhs KeyPgAs as KeyPgUshort ushort ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgInteger integer, KeyPgByref byref rhs KeyPgAs as KeyPgInteger integer ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgUinteger uinteger, KeyPgByref byref rhs KeyPgAs as KeyPgUinteger uinteger ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgLongint longint, KeyPgByref byref rhs KeyPgAs as KeyPgLongint longint ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgUlongint ulongint, KeyPgByref byref rhs KeyPgAs as KeyPgUlongint ulongint ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgSingle single, KeyPgByref byref rhs KeyPgAs as KeyPgSingle single ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgDouble double, KeyPgByref byref rhs KeyPgAs as KeyPgDouble double ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgDouble double, KeyPgByref byref rhs KeyPgAs as KeyPgDouble double ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgString string, KeyPgByref byref rhs KeyPgAs as KeyPgString string ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgZstring zstring, KeyPgByref byref rhs KeyPgAs as KeyPgZstring zstring ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgWstring wstring, KeyPgByref byref rhs KeyPgAs as KeyPgWstring wstring ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgZstring zstring, KeyPgByref byref rhs KeyPgAs as KeyPgZstring zstring ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as KeyPgWstring wstring, KeyPgByref byref rhs KeyPgAs as KeyPgWstring wstring ) KeyPgAs as KeyPgInteger integer
KeyPgDeclare declare KeyPgOperator operator <= ( KeyPgByref byref lhs KeyPgAs as T, KeyPgByref byref rhs KeyPgAs as T ) KeyPgAs as KeyPgInteger integer
Usage:
result = lhs <= rhs
Parameters:
lhs
The left-hand side expression to compare to.
rhs
The right-hand side expression to compare to.
T
Any pointer type.
Return Value:
Returns negative one (-1) if the left-hand side expression is less than or equal to the right-hand side expression, or zero (0) if greater than.
Description:
Operator <= (Less than or Equal) is a binary operator that compares an expression less than or equal to another expression and returns the result - a boolean value in the form of an KeyPgInteger Integer: negative one (-1) for true and zero (0) for false. The arguments are not modified in any way.
This operator can be overloaded to accept user-defined types as well.
Examples:
KeyPgOpGreaterThan Operator > (Greater than) is complement to Operator <= (Less than or Equal), and is functionally identical when combined with KeyPgOpNot Operator Not (Bit-wise Complement).
If (69 <= 420) Then Print "(69 <= 420) is true."
If Not (60 > 420) Then Print "not (420 > 69) is true."
If Not (60 > 420) Then Print "not (420 > 69) is true."
Dialect Differences:
- In the CompilerOptlang -lang qb dialect, this operator cannot be overloaded.
Differences from QB:
- none
See also:
- KeyPgOpGreaterThan Operator > (Greater than)
Back to Relational Operators
Back to Operators