SetInt Method for LCField
This method sets the value of the field to a specified long integer value. If the field is not of type LCTYPE_INT, Notes® tries to convert the value to the field's type. If this fails, error LCFAIL_INVALID_CONVERT will occur.
The data type of the field will not change from this operation -- only the field's value.
Defined In
LCField
Syntax
Call thisField.SetInt (index, srcInt)
Parameters
Parameter |
Description |
---|---|
index |
Long, >=1 . Indexof the value to be assigned. |
srcInt |
Long. Value to be assigned to the field data value. |
Example
Option Public
Uselsx "*lsxlc"
Sub Initialize
Dim field As New LCField (LCTYPE_TEXT)
Dim number As Long
number = Pi
Call field.SetInt (1, number)
Print "The field's value is " & field.text(0)
End Sub
Example Output
The field's value is 3.