Daestrum Expert Licensed User Longtime User Mar 3, 2016 #1 I know in the tutorial it says what data types are valid, but I cannot get it to recognise Double. (but it does recognise Float instead, but won't allow decimal places). Anyone have a workaround ?.
I know in the tutorial it says what data types are valid, but I cannot get it to recognise Double. (but it does recognise Float instead, but won't allow decimal places). Anyone have a workaround ?.
Erel B4X founder Staff member Licensed User Longtime User Mar 3, 2016 #2 It was a mistake in the tutorial. It should be Float. You can use decimal values with float fields. Upvote 0
Daestrum Expert Licensed User Longtime User Mar 3, 2016 #3 Thanks for the reply. I still can't input decimal places in the internal designer properties grid, it acts like an int and removes them. Upvote 0
Thanks for the reply. I still can't input decimal places in the internal designer properties grid, it acts like an int and removes them.
stevel05 Expert Licensed User Longtime User Mar 3, 2016 #4 It works OK here. Code: #DesignerProperty: Key: FloatExample, DisplayName: Float Test, FieldType: Float, DefaultValue: 0, Description: Example of a Float property. In fact it also suffers from the typical float value storage problem (0.15 ends up as 0.15000000596046448) . I would probably use a string value and cast it to a Double when reading. Upvote 0
It works OK here. Code: #DesignerProperty: Key: FloatExample, DisplayName: Float Test, FieldType: Float, DefaultValue: 0, Description: Example of a Float property. In fact it also suffers from the typical float value storage problem (0.15 ends up as 0.15000000596046448) . I would probably use a string value and cast it to a Double when reading.
Daestrum Expert Licensed User Longtime User Mar 3, 2016 #5 stevel05 said: It works OK here. Click to expand... Works here too, because I'm an idiot. (How many more times am I going to forget to delete/create the control in the designer when I change something.) Upvote 0
stevel05 said: It works OK here. Click to expand... Works here too, because I'm an idiot. (How many more times am I going to forget to delete/create the control in the designer when I change something.)