Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).![]() |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Mega Poster
Join Date: Mar 2004
Location: Not in Yorkshire. (Thank God)
Posts: 4,116
|
![]()
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
__________________
Not Grumpy, opinionated. |
![]() |
![]() |
![]() |
#2 | |
Guest
Posts: n/a
|
![]() Quote:
![]() ![]() |
|
![]() |
![]() |
#3 |
Guest
Posts: n/a
|
![]()
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. |
![]() |
![]() |
#4 |
Guest
Posts: n/a
|
![]()
what does fload and string mean?
|
![]() |
![]() |
#5 |
Guest
Posts: n/a
|
![]()
Change is bad.... it = more work :P
|
![]() |
![]() |
#6 |
Guest
Posts: n/a
|
![]()
*stays very very quiet but takes notes in the hopes of one day making a java programmer look stupid*
![]() |
![]() |
![]() |
#7 | |
Guest
Posts: n/a
|
![]() 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!! |
|
![]() |
![]() |
#8 | |
Member
Mega Poster
Join Date: Mar 2004
Location: Not in Yorkshire. (Thank God)
Posts: 4,116
|
![]() 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.
__________________
Not Grumpy, opinionated. |
|
![]() |
![]() |
![]() |
#9 |
Guest
Posts: n/a
|
![]()
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
|
![]() |
![]() |
#10 | ||
Guest
Posts: n/a
|
![]() 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! ![]() |
||
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Eye test, gone all techy | timwilky | Idle Banter | 18 | 01-03-09 06:44 PM |
another techy one | Wideboy | Idle Banter | 4 | 04-05-08 04:35 PM |
Techy Q re: Recording MP3s | Manguish | Idle Banter | 8 | 18-09-07 03:54 PM |
Techy help... Outlook & IMAP | Jelster | Idle Banter | 2 | 27-07-07 04:08 PM |
For all you IT techy lot... | Sid Squid | Idle Banter | 9 | 02-02-06 12:55 PM |