SharePoint - what type is the Number field

I have a field that has Type="Number". What types of variables can I assign? Will there be field support floator double?

oListItem["numberField"] = data;

What type can databe?

+3
source share
1 answer

All values ​​that the string representation can be parsed as double, because SharePoint converts the input value to a string:

case SPFieldType.Number:
case SPFieldType.Currency:
  str1 = Convert.ToString(value, (IFormatProvider) CultureInfo.InvariantCulture);
  break;

(from SPListItem.SetValue (...))

You should be okay with string, int, doubleetc.

+3
source

All Articles