Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I am trying to replace a string content with another but it does not replace
string oldValue= "iif([PricingTKt_US]>0,1-([F221-B01]/iif([PricingTKt_US]=0,1, [PricingTKt_US])),0)";
oldValue=oldValue.Replace("[PricingTkt_US]","[F123]")
Please help me to understand the mistake I am doing.
string oldValue= "iif([PricingTKt_US]>0,1-([F221-B01]/iif([PricingTKt_US]=0,1, [PricingTKt_US])),0)";
PricingTKt_US Capital K.
oldValue=oldValue.Replace("[PricingTkt_US]","[F123]")
PricingTkt_US Small k
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 months ago.
Improve this question
I am new to ASP.net and try to perform CRUD operation but My page didn't run on browser?
You have a typo, it should be
<connectionStrings>
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
In php, it is possible to directly call a method on a newly created class instance.
(new MyClass())->classMethod();
Is it possible to do this in C#?
Yes, possible, although I am not sure why you need to do it (it is not recommended).
new MyClass().CallMethod();
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I have a string and when I try to convert that to a DateTime it's throwing an error. Why?
string str = "3/23/2016 5:10:32 PM";
datetime= convert.ToDateTime(str);
Convert.ToDateTime should work fine if your current culture allows this.
You however have some strange characters in your string... I have copied and pasted it and it didn't work, however writing it directly did.
Check it in a fiddle: https://dotnetfiddle.net/l5nzso
It seems you have some left-to-right mark (0x200E) Unicode characters scattered between the characters in your string. Check it in this other fiddle
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
I'd like to know how I can take an item selected in my combobox, and convert it to a string variable, which I then use to complete my MySQL query. I'm very much a beginner at C# so any help would be appreciated.
I've tried the following code which I found here on stackoverflow, but it doesn't do the trick. I tried to fill the label1 so I could see if it's working, but I actually need to put it into an mysql query:
string selected0
= this.clubComboBox0.GetItemText(this.clubComboBox0.SelectedItem);
label1.Text = selected0;
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I cannot seen to find out the purpose of the ^ in a C# method call.
For example:
SomeObject::somemethod(ObjArg^ arg)
{
// method body
}
What is the effect of the ^?
This is not C#. This is C++/CLI. The ^ is the Handle to Object Operator. It is used here to indicate that arg is a handle to a managed class of type ObjArg.