B4J Question Custom Views - How to specify a default value that has a comma?

Mashiane

Expert
Licensed User
Longtime User
Hi the

When creating custom views, one can specify a default value. The designer scripts are comma delimited.

B4X:
#DesignerProperty: Key: EventHeaderFormat, DisplayName: Event Header Format, FieldType: String, DefaultValue: MM d, yyyy, Description: Event Header Format

How can I solve this issue?

Thanks.
 

emexes

Expert
Licensed User
My first guess would be to try quotation marks around (at least) the comma-containing field eg:

B4X:
#DesignerProperty: Key: EventHeaderFormat, DisplayName: Event Header Format, FieldType: String, DefaultValue: "MM d, yyyy", Description: Event Header Format
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
My first guess would be to try quotation marks around (at least) the comma-containing field eg:

B4X:
#DesignerProperty: Key: EventHeaderFormat, DisplayName: Event Header Format, FieldType: String, DefaultValue: "MM d, yyyy", Description: Event Header Format
No, it does not work.

DefaultValue:"Two, words"
or
DefaultValue:'Two, words'

take only:
"Two
or
'Two
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
I just chanced on same post you made in 2021 and @Erel says he will work on it. Maybe it skipped him. This will serve as reminder to him.

 
Upvote 0
Top