Interesting issue
-
Has anyone had any trouble with concatenation with the new 2.0 framework. Here is the scenerio. We are migrating our site from 1.1 to 2.0 and I am working out some bugs and found this to really funny. UnitStr += sdr("UnitID") UnitStr is defined a string and sdr("UnitID") is pulled from the database as an integer. In the 1.1 framework(VS2003) it allows it to conncatenate but the 2.0(VS2005) it gives me a "input string is invalid", "Conversion from string "" to type 'Double' is not valid.". The funny thing it shows as an integer in the table and when you watch the variable. Any one have any ideas? Keep putting the pieces of the puzze together. Thats a programmer!@
-
Has anyone had any trouble with concatenation with the new 2.0 framework. Here is the scenerio. We are migrating our site from 1.1 to 2.0 and I am working out some bugs and found this to really funny. UnitStr += sdr("UnitID") UnitStr is defined a string and sdr("UnitID") is pulled from the database as an integer. In the 1.1 framework(VS2003) it allows it to conncatenate but the 2.0(VS2005) it gives me a "input string is invalid", "Conversion from string "" to type 'Double' is not valid.". The funny thing it shows as an integer in the table and when you watch the variable. Any one have any ideas? Keep putting the pieces of the puzze together. Thats a programmer!@
try using &= instead of +=
-------------------------------------------------- Play Nation States and join The Code Project region with the password: byalmightybob
-
try using &= instead of +=
-------------------------------------------------- Play Nation States and join The Code Project region with the password: byalmightybob
I'd say not to use EITHER....look for String concatenation memory c# in google. The suggestion is to use the StringBuilder class....
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
-
I'd say not to use EITHER....look for String concatenation memory c# in google. The suggestion is to use the StringBuilder class....
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
Yeah. Good call.
-------------------------------------------------- Play Nation States and join The Code Project region with the password: byalmightybob