SalNumber

PPJ.Runtime.SalNumber

Namespace: PPJ.Runtime

Assembly: PPJ.Runtime.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.

public struct SalNumber : ValueType, IComparable, IConvertible, IFormattable, INullable, ISalType, IXmlSerializable

Constructors

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Creates a new SalNumber.

NameTypeDescription

x

Properties

Boolean: Checks if this SalNumber object contain a null value.

Decimal: Returns the inner decimal value

Methods

Computes a number's absolute value.

Returns: SalNumber. nNum

  • operators for adding two SalNumber objects

ParameterTypeDescription

x

y

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.

ParameterTypeDescription

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.

ParameterTypeDescription

x

y

Returns: Int32.

compare to an object

ParameterTypeDescription

obj

Returns: Int32.

compare to a number

ParameterTypeDescription

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

ParameterTypeDescription

x

y

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.

ParameterTypeDescription

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.

ParameterTypeDescription

x

The first of two values.

y

The second of two values.

Returns: SalNumber. nNumMax

Returns the lesser of two values.

ParameterTypeDescription

x

The first value.

y

The second value.

Returns: SalNumber. nNumMin

Returns a number's modulo.

ParameterTypeDescription

nDividend

The dividend value.

Returns: SalNumber. nModulo

  • operator for multiplying two SalNumber objects

ParameterTypeDescription

x

y

Returns: SalNumber.

Negation operator.

ParameterTypeDescription

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.

ParameterTypeDescription

power

The exponent.

Returns: SalNumber. nNumPower

Sets the starting point for generating a series of pseudo-random numbers using SalNumberRandom.

ParameterTypeDescription

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

ParameterTypeDescription

x

y

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.

ParameterTypeDescription

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

Used By

NameDescription

Returns the buffer's length.

Returns the current buffer length of the string.

Returns the year portion of a date or returns -1 if you specify DATETIME_Null as a parameter.

Returns the total number of items in the array. For MD arrays returns the number of items in the first dimension.

Returns the number of dimensions.

Returns the average value of all the numbers in an array.

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.

Inserts the contents of a string into a picture.

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.

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 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.

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.

Starts the Windows help system.

Sets a window's font, font size, and font enhancements.

Gets a window's color.

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.

Gets a window's color.

Returns a window's current state.

Destroys an object's system timer.

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.

Starts the Windows help system.

Sets a window's font, font size, and font enhancements.

Gets a window's color.

Sets an application-defined cursor for the specified window. Use this function to set the cursor from an image stored in a file.

Sets a window's cursor from a string variable.

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.

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.

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.

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.

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 number of list box or combo box entries.

Destroys a modal dialog box and returns control to the caller of SalModalDialog.

Message return value. When set, the flag HasReturnValue is also flipped to true.

Validates and formats a data field's or table window column's contents.

Sets a limit on the number of characters that a user can enter into a data field, multi line text field, or table window column.

Returns the maximum length of a data field, multi line text 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.

Returns a window's current state.

Sets the value of a named property.

Starts the Windows help system.

Sets a window's font, font size, and font enhancements.

Gets a window's color.

Returns the handle of the first child window of the specified type. You can use this function to get the handles of MDI child windows.

Returns the handle of the next child window that matches a specified type.

Returns an object's type.

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.

Destroys a modal dialog box and returns control to the caller of SalModalDialog.

Retrieves the height of a row in lines.

Alters the specified parameter for the custom profile associated to the specified field.

Number value property.

Moves a window to a new position (x, y) on the X and Y axes.

Resizes a window.

Destroys an object's system timer.

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.

Starts the Windows help system.

Sets a window's font, font size, and font enhancements.

Gets a window's color.

Dispatches the specified message (Window Actions) directly to the control's WindowActions event handlers, without going through Windows message loop.

Obtain an array of directory names based on a search path specified.

Establish communication with an HTTP server through a proxy.

Find a tab give a tab name

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

Associate a tip with a control. The control can be any type of window.

Retrieves all links for a page

Last updated