Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Correct data types?


Go to End


2 Posts   786 Views

Avatar
StefanDpunkt

Community Member, 14 Posts

8 October 2013 at 8:36pm

Edited: 08/10/2013 8:37pm

Hi there,

I have not so the survey in terms of data types and ask you for your help.

Value 1 = Integer value 0-100
Value 2 = 0 or 1 only

what types of data you would use in the backend?

Thanks for your help!

Avatar
Willr

Forum Moderator, 5523 Posts

11 October 2013 at 8:07pm

For integers use the 'Int' data type - http://api.silverstripe.org/3.1/class-Int.html

For 0/1 you could represent it as a Boolean field - http://api.silverstripe.org/3.1/class-Boolean.html