Daestrum Expert Licensed User Longtime User Jan 25, 2016 #1 In the #DesignerProperty: does DefaultValue: None have special meaning? I am trying to set a String property to the literal None and I get effectively null as the default.
In the #DesignerProperty: does DefaultValue: None have special meaning? I am trying to set a String property to the literal None and I get effectively null as the default.
Erel B4X founder Staff member Licensed User Longtime User Jan 25, 2016 #2 No. However you can leave it empty for strings: Code: #DesignerProperty: Key: StringExample, DisplayName: String Example, FieldType: String, DefaultValue: The default value will be an empty string. Upvote 0
No. However you can leave it empty for strings: Code: #DesignerProperty: Key: StringExample, DisplayName: String Example, FieldType: String, DefaultValue: The default value will be an empty string.
Daestrum Expert Licensed User Longtime User Jan 25, 2016 #3 Unfortunately I actually want it to say None Upvote 0
DonManfred Expert Licensed User Longtime User Jan 25, 2016 #4 #DesignerProperty: Key: StringExample, DisplayName: String Example, FieldType: String, DefaultValue: "None" Click to expand... ?? Upvote 0
#DesignerProperty: Key: StringExample, DisplayName: String Example, FieldType: String, DefaultValue: "None" Click to expand... ??
Daestrum Expert Licensed User Longtime User Jan 25, 2016 #5 I've tried double quotes, single quotes , no quotes but it still won't show in designer, the int fields are fine they show the value I specified as defaults. Upvote 0
I've tried double quotes, single quotes , no quotes but it still won't show in designer, the int fields are fine they show the value I specified as defaults.
Daestrum Expert Licensed User Longtime User Jan 25, 2016 #6 Found the problem, you can't have a key: name the same as a variable defined in the app. When I renamed the private variables in Class_Globals, the None shows in the designer. Upvote 0
Found the problem, you can't have a key: name the same as a variable defined in the app. When I renamed the private variables in Class_Globals, the None shows in the designer.
Erel B4X founder Staff member Licensed User Longtime User Jan 25, 2016 #7 There should be no quotes. Make sure to test it by adding a new control. It will not affect an existing control. Upvote 0
There should be no quotes. Make sure to test it by adding a new control. It will not affect an existing control.
Erel B4X founder Staff member Licensed User Longtime User Jan 25, 2016 #8 Daestrum said: Found the problem, you can't have a key: name the same as a variable defined in the app Click to expand... I don't think that it is related. Upvote 0
Daestrum said: Found the problem, you can't have a key: name the same as a variable defined in the app Click to expand... I don't think that it is related.
Daestrum Expert Licensed User Longtime User Jan 25, 2016 #9 Correct it was your second point that solved it. (but I was keeping quiet so I didn't look silly ) Upvote 0