Frage

I have a Field, that has Type="Number". What type of variables can I assign to it? Will the field support float or double?

oListItem["numberField"] = data;

What type can data be?

Cross posted from StackOverflow

War es hilfreich?

Lösung

Could be Double or Decimal or Integer.

Use the ParseAndSetValue method to make sure it converts it to Double (see here http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldnumber.parseandsetvalue.aspx)

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top