|
How can assign a null value to a field that is integer but allows null value.?
int? nullval = null;
mydataSet.mytable[myBindingSource.Position].myIntField = nullval ;
isn't found.....
|
|
|
|
|
Have you tried DBNull.Value ?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
yes, when compile have this error:
"cannot implicitly convert type 'System.DBNull.value' to int"
|
|
|
|
|
Of course not. You have to rewrite that little bit of assignment code you posted to check for a null value in the int, and then, if null, you have to assign DBNull.Value to your database column.
|
|
|
|
|
I solved it that way...
mydataSet.mytable[myBindingSource.Position].SetmyIntFieldNull();
Thank you very much...
|
|
|
|
|
You don't need the local variable.
|
|
|
|
|
Hello,
How to pass parameter to crystal reports from a C# (winform) application when my parameter is a string type and contain quate or double quate charecter?
I keep getting error "Error in formula" when it contains quate or double quate.
My parameter name is Address and the address contain double quate sign
Thanks in advanced
|
|
|
|
|
Try providing ASCII values for the double quotes or precede it with escape charachters.
Regards,
SPanicker.
|
|
|
|
|
No, It doesn't work.
I keep getting the same error
|
|
|
|
|
Can you please provide few lines of the code where u get the error?
Regards,
SPanicker.
|
|
|
|
|
C# code
-------
int intCopies = 1;
string strAddress = "6534 Burbank, next to the \"Amy Books\" bookstore";
string temp = orpt.DataDefinition.FormulaFields["Address1"].Text;
orpt.DataDefinition.FormulaFields["Address1"].Text = temp.Replace("Address1", strAddress1);
orpt.Refresh();
orpt.PrintToPrinter(intCopies, true, 1, 1); -------------------------
Crystal Reports
---------------
in crystal reports I have a formula named: @Address
formula text: "Address"
--------------------------
I'm using VS 2005 with Crystal reports version 8.5
Thanks!
|
|
|
|
|
Ok, I finally found it.
it has to be replaced by a double quate as follow
"The word ""hello"" is quoted."
so in C# it will be:
"The word \"\"hello\"\" is quoted."
thanks anyway!
|
|
|
|
|
Use paramterized queries instead of putting SQL strings together using string concatentation.
|
|
|
|
|
|
|
damn...is (S)he troll
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I need not troll here and its of no use for me .
Regards,
SPanicker.
|
|
|
|
|
|
then first Learn how to ask question[^]
you just asked what in which file, nothing more than it
SPanicker* wrote: Hi Folks,
I would like to know where does the .NET IDE save the breakpoints?
Is it with the .suo or .sln or .csproj/.vbproj file?
If we set a breakpoint and close the IDE it never asks to save the project (and I find no files getting changed in the projects folder) but can set them back if you launch the project again.
Can any one please clarify?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
modified on Wednesday, December 17, 2008 8:28 AM
|
|
|
|
|
|
SPanicker* wrote: My question was specific.
and i posted the reply of your SPECIFIC question if you bothered to read
SPanicker* wrote: Do you expect me to spoon feed u?
well, i dont need any retard to do so
SPanicker* wrote: Don't waste others time.
i could say same when i checked for you in files even you hell get answered
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Dont waste time you --- So better get on to them on your own.
And you are calling words which i didnt do - so you desrved this post u retard (hope thts ur fav name).
|
|
|
|
|
SPanicker* wrote: hope thts ur fav name
wow, you hope too, amazing huh !
PS.
one more suggestion, Dont think too much else you will get pain in your knees
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
0) You posted in more than one forum. That is not acceptable practice on this site.
1) You asked in the wrong forum. Your question belongs in the visual studio forum.
2) You're not doing yourself any favors by arguing with people. Believe me when I say that you don't want to earn the reputation here as a troublemaker.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Well put, John.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|