GetFloat Method for LCField
This method retrieves a LotusScript® double data type from a value in a field. If the requested data type is different from the field data type, conversion is automatically performed.
Defined In
LCField
Syntax
newFloat = lcField.GetFloat (index)
Parameters
Parameter |
Description |
---|---|
index |
Long, >= 1. Index of the field data value to be retrieved. |
Return Value
Value |
Description |
---|---|
newFloat |
Double. The value of the retrieved data type. |
Example
Option Public
Uselsx "*lsxlc"
Sub Initialize
Dim Fld As New LCField (LCTYPE_TEXT)
Fld.Text = "1234.56789"
Dim vFloat As Double
vFloat = Fld.GetFloat (1)
Print "The Float representation of the field is " & vFloat
End Sub
Example Output
The Float representation of the field is 1234.56789.