Generate Nullable Fields as Nullable Types

Posts   
 
    
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 03-Jun-2006 15:59:35   

This is a project setting.

There is also a checkbox in the Field Properties tab "Generate as Nullable Typ" (Note spelling mistake)

Does the project setting set the default for the checkbox or how do they interact?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 03-Jun-2006 18:06:24   

arschr wrote:

This is a project setting.

There is also a checkbox in the Field Properties tab "Generate as Nullable Typ" (Note spelling mistake)

Yes I noticed that yesterday simple_smile I've corrected it already in the code. Was related to the 'standard' vs. 'system' flatstyle setting.

There's also a gap between the groupbox and the bottom line of the form, this is due to a bug in the UI controls of janus, they've fixed it also so that's fixed in the next build as well simple_smile

Does the project setting set the default for the checkbox or how do they interact?

Correct. It's an initial value indicator. As there might be a lot of fields, you want a default value you can work with and which you'd change on a small set of fields. By default this setting is true, also for fields, so an older project will generate to nullable fields when applicable. You then switch off the fields you don't want to have as nullable field (if applicable).

For a new project, if you set it first to false, you'll get all checkboxes set to false for new fields.

It's a bit of a strange mechanism perhaps, but it's in general a setting you normally won't touch, unless you really need to avoid nullable types in your project.

Frans Bouma | Lead developer LLBLGen Pro