FIELD_CSCONVERT

From MapPrep

FIELD_CSCONVERT

 

Inserts a string indicating the appropriate C# string to numeric conversion method to use to attempt to parse a string into a numeric value.

For non-numeric fields the token is replaced by nothing.

Usage

<FIELD_CSCONVERT>

Possible values

•bool.TryParse

•byte.TryParse

•decimal.TryParse

•double.TryParse

•int.TryParse

•float.TryParse

•long.TryParse

•sbyte.TryParse

•short.TryParse

•uint.TryParse

•ulong.TryParse

•ushort.TryParse

Alternate forms

None

Example of use

if (!<FIELD_CSCONVERT>(recordInString.Substring(<FIELD_POSITION_ZERO>,<FIELD_SIZE>),out p_<Field_Sqlname>))

          p_<Field_Sqlname> = 0;

See also

•<FIELD_CSDEFAULT>

•<FIELD_CSTYPE>

•Other field loop expansion tokens

 

 

 


Copyright © 2018  Synergex International, Inc.