correct syntax for Floats ?
Posted: Fri Feb 09, 2018 1:55 pm
Hi Team guys,
This morning I came across an issue which is 'something small' but which threw me for quite a while.
I mistakenly thought that most code ('semi' syntax plus) could be done in X# how it is seen in C#. Well, that is what I have been doing successfully for quite some time
So when I had this code shown below :-
I thought nothing of it - until I got compilation errors ;-0((
It is line 182 (and many like it) which gave me issues as the (6F,6F) did not translate as {6F,6F} and work, as I thought it would.
After messing around a while (the error messages from the compiler were NOT much help at all) I found out it would work with {6S, 6S} - that is 'S' where 'F' was previously in C#.
Can you explain this please, why F does not work. Here is what X# code compiles and runs :-
And for 'fun' and interest here is the report page in the DevExpress (DX) framework which I was trying to hand code :- [ .. thanks to Nick Friend for his help and support generally .. ]
Okay, I am up and running, I think, but I have noticed that if and when I get a compilation error, that often I don't get any meaningful message(s). Shall I report back to you what message is provided when I have F and not S ?
I get by with the VS behaviour as it is BUT it is not conducive to other guys coming new to VS I feel.
Thanks for listening, and have a nice day,
Phil.
Wales, UK.
Best regards,
Phil.
Wales, UK.
This morning I came across an issue which is 'something small' but which threw me for quite a while.
I mistakenly thought that most code ('semi' syntax plus) could be done in X# how it is seen in C#. Well, that is what I have been doing successfully for quite some time
So when I had this code shown below :-
I thought nothing of it - until I got compilation errors ;-0((
It is line 182 (and many like it) which gave me issues as the (6F,6F) did not translate as {6F,6F} and work, as I thought it would.
After messing around a while (the error messages from the compiler were NOT much help at all) I found out it would work with {6S, 6S} - that is 'S' where 'F' was previously in C#.
Can you explain this please, why F does not work. Here is what X# code compiles and runs :-
And for 'fun' and interest here is the report page in the DevExpress (DX) framework which I was trying to hand code :- [ .. thanks to Nick Friend for his help and support generally .. ]
Okay, I am up and running, I think, but I have noticed that if and when I get a compilation error, that often I don't get any meaningful message(s). Shall I report back to you what message is provided when I have F and not S ?
I get by with the VS behaviour as it is BUT it is not conducive to other guys coming new to VS I feel.
Thanks for listening, and have a nice day,
Phil.
Wales, UK.
Best regards,
Phil.
Wales, UK.