Index | Prev | Next

Links from string

  • A string-to-boolean link or string-to-statusBoolean link has a “False Value” converter property, with a default value of false. Any other source string value, instead of (or in addition to) this “False Value” string (case insensitive) results in the target boolean or statusBoolean value to be true. Note that a blank string source value is also a boolean or statusBoolean true (unless the “False Value” is blank).
  • A string-to-double or string-to-float link requires a source string using decimal numerals only, expressed as a decimal number or integer, either positive or negative. Any other source sting characters (or blank string) results in the linked double or float slot to have an “nan” (not a number) value.
  • A string-to-long or string-to-integer link requires a source string expressed as an integer only, either positive or negative. Any additional characters in the source string results in the linked long or integer slot to have a 0 value, or the last non-zero value.
  • A string-to-statusNumeric link requires a source string using decimal numerals only, expressed as a decimal number or integer, either positive or negative. Any other source sting characters (or blank string) results in the linked statusNumeric slot to have a “fault” condition, with no value change.
  • A string-to-statusString link results in that string value in the statusString.
  • A string-to-ord link provides no Niagara ord format/error checking—use sparingly.
  • A string-to-absTime link requires an ISO-formatted string—otherwise, the linked absTime value remains null. The ISO format is “yyyy-mm-ddThh:mm:ss.mmm[+/-]hh:mm”, for example, “2011-01-31T13:23:53.772-05:00”, which an absTime slot could show as “31-Jan-2011 01:23 PM EST”.

Links to other “Conversion link "From" notes”.

Related Links

  • Conversion link "From" notes (Parent Topic)
  • Index | Prev | Next