![]() |
Why I hate Microsoft (Techy)
OK my boss is insisting I write his new app using C#.net. I have explained that java runs perfectly well on a PC but he is the boss.
I need to read some values off of a sql database. He won't even let me use oracle. one of the values is of type float. So when I then use the appropriate function, ie DbDataReader.GetFloat(), it errors with cannot cast infinity. WTF. so before the call I have a debug line to return the DbDataReader.GetDataTypeName() and it tells me it is of type Float. So lots of banging of heads against a wall, then I look at the database and check there is appropriate values. yes there are. I then accidently go into the table design. and oh! SQL server allocates 8 bytes to a floating point number. Change my call to float value = (float) DbDataReader.GetDouble(); and everthing works. 4 hours chasing a bug, to find it is an incompatability between data type definitions in Microsoft ****ty products. AAAAAAAAAAAAAAAAGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHH Sorry the above is techy coding. I just need to shout at somebody and Microsoft don't listen |
Re: Why I hate Microsoft (Techy)
Quote:
|
I always find it amusing when MS stuff doesn't even work together as they should.
I'm almost exclusively a Java coder and I'm quite happy that way. I'm lucky though, the co I work for are very adamant about sticking with Java as long as it's viable. |
what does fload and string mean?
|
Change is bad.... it = more work :P
|
*stays very very quiet but takes notes in the hopes of one day making a java programmer look stupid*
;) |
Re: Why I hate Microsoft (Techy)
Quote:
Somtimes I find it helps if you write down the word Microsoft and then draw little stick men with guns and stuff shooting the word Microsoft with little dots for bullets and stuff. At the same you can make your own explosion sound effects with your mouth!! Then just crumple up the piece of paper and set it on fire... Job done!! |
Quote:
float is a floating point number as in not an integer, as in contains a decimal point although I have not made any reference in my post to a string, a string is a simple text object, such as a persons name. Both these data types have properties and methods etc. I aint in the business of teaching anyone code hacking. suffice to say a method is a way of doing things with a data object, and a property is information about that object such as the number of characters in the string etc. |
ahh i see, i know you didn't say anything about strings but when i have heard them they have been in the same context hence why i asked
|
Quote:
Inkey$ I think, a command to wait for a key to be pressed... :?: And I think everyone remembers the 10 Print "Whatever"; 20 Goto 10 (The ; is there to make it not just scroll down the page but across it too.) I'll shut up now! :wink: |
All times are GMT. The time now is 03:00 AM. |
Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.