Scan Value Function

Converts characters at the beginning of string to the data type represented by default, according to the conversion codes in format string, and returns the converted number in value and the remainder of string after the match in output string.

The connector pane displays the default data types for this polymorphic function.


icon

Inputs/Outputs

  • cstr.png string

    string is the input string the function scans.

  • cstr.png format string

    format string specifies how to convert the input arguments into value.

    Use the format string syntax.
  • cdbl.png default (0 dbl)

    default is the numeric representation for value.

    The default is a double-precision, floating-point value of 0.
  • istr.png output string

    output string is the remaining characters in string after the match or string if there is no match.

  • idbl.png value

    value is the converted value or the value in default if there is no match.

    If value is an integer, it can overflow if the input is out of range. In that case, value is set to the maximum or minimum value for the data type. For example, if the input string is 300 and the data type is an 8-bit signed integer, LabVIEW sets the value to 127.