DataValue.ToBestInt Method
- Updated2023-02-21
- 2 minute(s) read
Namespace:
NationalInstruments.VeriStand.Data
Assembly: NationalInstruments.VeriStand.DataTypes (in NationalInstruments.VeriStand.DataTypes.dll) Version: 2013.0.0.0 (2013.0.0.0)
Assembly: NationalInstruments.VeriStand.DataTypes (in NationalInstruments.VeriStand.DataTypes.dll) Version: 2013.0.0.0 (2013.0.0.0)
| Visual Basic (Declaration) |
|---|
Public Shared Function ToBestInt ( _ value As String _ ) As DataValue |
| C# |
|---|
public static DataValue ToBestInt( string value ) |
| Visual C++ |
|---|
public: static DataValue^ ToBestInt( String^ value ) |
Parameters
- value
- Type: System.String
An integer representation.
Return Value
A DataValue object representing an I32Value, U32Value, I64Value, or U64Value.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Unable to determine data type of value. Ensure that the string value is an integer. |