>MyProp = "This is a string" -> appears as: This is a string
>MyProp = 1.00 -> appears as: 1.00
>MyProp = "1.00" -> appears as: ="1.00"
>
>The behaviour would need to change to:
>
>MyProp = "This is a string" -> appears as: "This is a string"
>MyProp = 1.00 -> appears as: 1.00
>MyProp = "1.00" -> appears as: "1.00"
Well,
1.
? "This is a string"
2.
? 1.00
3.
? "1.00"
In words: If you print a string you also don't print it's delimiters, those are only needed in source code and delimit the string itself from code. Therefore I think the property sheet is quite okay all in all. It's of course needed to make a difference of a numeric value 1.00 from a string containing what could also be a numeric value "1.00", which therefore is shown as ="1.00". It's making use of the normal behaviour of the sheet to evaluate anything starting with =, and so it's not to be confused by a string containing delimiters eg as in stringvar = ["string"], which really has the " in it's string value.
If the sheet would show all strings with delimiters, then you'd need to assure the user can't delete a single one of them. Also you couldn't write a string in the property window, which has " in it. So I don't agree this your proposed way is more elegant. What I would prefer as elegant is coloring the values depending on their type, like you can color strings and expressions differntly in code, but for the sake of entering differnt things, it's good as it is, because you can enter =..., but you can't enter color, you would need to determine the type. If I think of dates alone, you'd either need a format independant on any country specific formatting or you'd need to define that format too.
I don't feel you thought about this thoroughly enough.
Bye, Olaf.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only