SalNumber
PPJ.Runtime.SalNumber
Last updated
PPJ.Runtime.SalNumber
Last updated
Namespace: PPJ.Runtime
Assembly: PPJ.Web.49 (4.9.0.0)
SAL Number basic type. It wraps .NET native Decimal type. SalNumber objects are automatically cast to and from SalBoolean, Decimal, and int.
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Creates a new SalNumber.
Name | Type | Description |
---|---|---|
x |
Boolean: Checks if this SalNumber object contain a null value.
Decimal: Returns the inner decimal value
Computes a number's absolute value.
Returns: SalNumber. nNum
operators for adding two SalNumber objects
Returns: SalNumber.
Computes the arc cosine of a value in the range 0 to 1. The value's domain is -1 to 1.
Returns: SalNumber. nArcCos
Computes a value's arc sine. The value's domain is -1 to 1.
Returns: SalNumber. nArcSin
Computes a value's arc tangent.
Returns: SalNumber. nArcTan
Computes the arc tangent of two values. This function uses the signs of both parameters to determine the quadrant of the return value.
Parameter | Type | Description |
---|---|---|
nm_valueY | One of two values whose arc tangent you want. | |
nm_valueX | The other of two values whose arc tangent you want. |
Returns: SalNumber. nArcTan2
Compares two SalNumbers values.
Returns: Int32.
compare to an object
Parameter | Type | Description |
---|---|---|
obj |
Returns: Int32.
compare to a number
Parameter | Type | Description |
---|---|---|
x |
Returns: Int32.
Computes an angle's cosine.
Returns: SalNumber. nCos
Computes an angle's hyperbolic cosine.
Returns: SalNumber. nCosH
/ operator for dividing two SalNumber objects
Returns: SalNumber.
Computes a value's exponential function.
Returns: SalNumber. nNumExp
Returns a number's high-order word value (most significant 16 bits).
Returns: SalNumber.
Computes the length of the hypotenuse of a right triangle, given the lengths of the other two sides.
Parameter | Type | Description |
---|---|---|
nX | The length of one side of a right triangle. | |
nY | The length of another side of a right triangle. |
Returns: SalNumber. nHypotenuse
Computes a number's natural logarithm.
Returns: SalNumber. nLog
Computes a number's base 10 logarithm.
Returns: SalNumber. nLogBase10
Returns a number's low-order word value (least significant 16 bits).
Returns: SalNumber. nLo
Returns the greater of two values.
Returns: SalNumber. nNumMax
Returns the lesser of two values.
Returns: SalNumber. nNumMin
Returns a number's modulo.
Parameter | Type | Description |
---|---|---|
nDividend | The dividend value. |
Returns: SalNumber. nModulo
operator for multiplying two SalNumber objects
Returns: SalNumber.
Negation operator.
Parameter | Type | Description |
---|---|---|
x |
Returns: SalNumber.
Multiples a number by Pi. Pi is equal to 3.1415926535979323.
Returns: SalNumber. nNumPi
Computes nX raised to the power of nY. This function does not recognize integral, floating-point values greater than 2 to the 64th power, such as 1.0E100.
Parameter | Type | Description |
---|---|---|
power | The exponent. |
Returns: SalNumber. nNumPower
Sets the starting point for generating a series of pseudo-random numbers using SalNumberRandom.
Parameter | Type | Description |
---|---|---|
seed | The starting point. A whole number in the range of 0 to 32767. |
Returns: Boolean. bOk
Generates a pseudo-random number. The numbers generated by this function are integers (whole numbers) in the range 0 to 32767 (0 to 0x7FFF).
Returns: SalNumber. nRandomNum
Returns a rounded number. If the fractional part of a number is greater than or equal to .5, rounds the number up. For example, the number 124.33 returns 124; the number 124.56 returns 125.
Returns: SalNumber. nResult
Computes an angle's sine.
Returns: SalNumber. nSin
Computes an angle's hyperbolic sine.
Returns: SalNumber. nSinH
Computes a number's square root.
Returns: SalNumber. nSqrt
operator for subtracting two SalNumber objects
Returns: SalNumber.
Computes an angle's tangent.
Returns: SalNumber. nTan
Computes an angle's hyperbolic tangent.
Returns: SalNumber. nTanH
to boolean
Returns: Boolean.
to byte
Returns: Byte.
to char
Returns: Char.
Converts a decimal value to a UNICODE character.
Returns: SalString.
to decimal
Returns: Decimal.
to double
Returns: Double.
to int16
Returns: Int16.
to int32
Returns: Int32.
to int64
Returns: Int64.
to intptr
Returns: IntPtr.
to sbyte
Returns: SByte.
to single
Returns: Single.
to uint16
Returns: UInt16.
to uint32
Returns: UInt32.
to uint64
Returns: UInt64.
Converts a number to a window handle.
Returns: SalWindowHandle. nNumber
Truncates a number.
Parameter | Type | Description |
---|---|---|
precision | The number of digits to display, starting with the leftmost. | |
scale | The number of digits to the right of the decimal point. The nPrecision parameter must be large enough to hold the number of digits that you specify in this parameter. |
Returns: SalNumber. nResult
Name | Description |
---|---|
Not supported. | |
This variable's value is equal to the number of command line arguments you enter. | |
Returns the buffer's length. | |
Returns the current buffer length of the string. | |
Returns the seconds portion (0 to 59) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter. | |
Returns the next character in an open file. | |
Computes a number's absolute value. | |
Returns the string's length up to the terminator char. | |
Tests the state of a table window's flags. | |
Scrolls a table window to the specified row and column. | |
Assigns data to a column of a table window's context row. | |
Sets a table window's context row. Setting the context row does not send a SAM_FetchRow message. If the row is not currently in memory, creates a new row in memory and sets its cell values to null. | |
Sets or clears row flags. | |
Sets the focus to the specified table window cell (row and column). Puts the table window into edit mode and lets the user select a portion of the data in the cell. | |
Sets a table window's focus frame row. | |
Sets the height of a row in lines. | |
Sets the number of locked table window columns. | |
Defines the minimum and maximum rows (range) of a table. | |
Sets the focus to the first, last, next, or previous row in a table window. | |
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu. | |
Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size. | |
Posts the specified message to a window by adding nMsg to hWndReceiver's message queue. | |
Sends the specified message to a window. SalSendMsg does not return until the processing for the message is complete. | |
Sets the value of a named property. | |
Sets a window's font, font size, and font enhancements. | |
Gets a window's color. | |
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu. | |
Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size. | |
Number value property. | |
Verifies whether a data field, multiline text field, or table window column contains a valid decimal value. For multiline text fields, the decimal value must be the only item in the field. | |
Returns the current format of a data field or table window column. | |
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu. | |
Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size. | |
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu. | |
Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size. | |
Dispatches the specified message (Window Actions) directly to the control's WindowActions event handlers, without going through Windows message loop. | |
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu. | |
Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size. | |
Determines whether the specified list box or combo box entry is selected. | |
Returns the handle of the next child window that matches a specified type. | |
Returns an object's type. | |
Inserts a pane into the navigation bar control. | |
Removes a pane from the navigation bar control. | |
Adds a new group to the specified pane of a navigation bar. | |
Removes a group from the navigation bar control. | |
Returns the index of the currently selected pane. | |
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu. | |
Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size. | |
Returns the handle of the next child window that matches a specified type. | |
Returns an object's type. | |
Creates a system timer for a given object. When a timer event occurs, sends SAM_Timer messages to the object in specified intervals. Timers are a limited global resource. Your application must check the value returned by SalTimerSet to verify that the timer was created. | |
Creates pop-up menus at runtime. | |
Sets the value of a named property. | |
Sets a window's font, font size, and font enhancements. | |
Gets a window's color. | |
Returns a window's current state. | |
Sets a window's color. | |
Clears a window's cursor. | |
Sets a window's cursor. | |
Sets an application-defined cursor for the specified window. Use this function to set the cursor from an image stored in a file. | |
Returns a data field's or table window column's data type. | |
Stores a value associated with the node. | |
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu. | |
Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size. | |
Posts the specified message to a window by adding nMsg to hWndReceiver's message queue. | |
Sends the specified message to a window. SalSendMsg does not return until the processing for the message is complete. | |
Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size. | |
Determines whether any rows in the specified table window match certain flags. | |
Computes the average of all column values or only specified column values in a table window. | |
Alters the specified parameter for the custom profile associated to the specified field. | |
Sends a message to all child items of a form window, dialog box, table window, or MDI window. | |
Sends a message to all child items of a form window, dialog box, table window, or MDI window. | |
Converts SAL colors to a .NET Color. | |
Number value property. | |
Sets or clears row flags. | |
Sets a table window's focus frame row. | |
Sets the focus to the specified table window cell (row and column). Puts the table window into edit mode and lets the user select a portion of the data in the cell. | |
Sets the height of a row in lines. | |
Sets the number of locked columns. | |
Defines the minimum and maximum rows (range) of a table. | |
Sets the focus to the first, last, next, or previous row in a table window. | |
Message return value. When set, the flag HasReturnValue is also flipped to true. | |
Retrieve the number rows of tabs | |
Indicates that a tab has been activated. This function is called before the child windows have been shown | |
Indicates that a tab has been activated. This function is called after the child windows have been shown | |
Indicates that user is attempting to change the current tab by clicking, tabbing or some other user action. NOTE: Call CancelMode() to deny the user's request | |
Returns the last error code. | |
Returns the last error position. | |
Fetches the previous row in a result set. | |
Returns the last error code. | |
Returns the last error position. | |
Sets the value of a database parameter. | |
Specifies the maximum time to wait before generating an error. | |
Sets the value of the specified session property. | |
Not supported. | |
Not supported. | |
Not supported. | |
Not supported. | |
skip element | |
get number of objects | |
Creates a new SafeArray. | |
Returns the lower bound. | |