Switch values are always strings.
So in case of number switching, visual basic's ToString must be used.
When entering a Case value you must NOT use quotation marks. It is always considered to be the string container value.
eg Switch value (DoubleValue).ToString(Format"0.00") -> "1678.56" for a double value of 1678.56138
Case value should be set 1678.56 NOT "1678.56"
If you use quotation marks no error is reported. SAC supposes that you refer to visual basic's string value ""1678.56"" !!!
So in case of number switching, visual basic's ToString must be used.
When entering a Case value you must NOT use quotation marks. It is always considered to be the string container value.
eg Switch value (DoubleValue).ToString(Format"0.00") -> "1678.56" for a double value of 1678.56138
Case value should be set 1678.56 NOT "1678.56"
If you use quotation marks no error is reported. SAC supposes that you refer to visual basic's string value ""1678.56"" !!!
No comments:
Post a Comment