incorrect format in string.Format [closed] - string

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have the following code
string x = string.Format(text, args);
the text is a string and the args is a in array object[0]
I'm getting the exception
Input string was not in a correct format.
any help ?

Assuming this is c#, you need a number, starting with 0, in the {}.

Related

KeyError: 'text' [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
I'm trying to Load dataset but, error like this, how to fix thisenter image description here
I'm just trying like this

How to change specific part of a string? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
For example, I have a string like this
a = "starlight sunlight"
And I want to change it into
a = "starspot sunspot"
well i guessed you writing this in python so you can use the replace method
enter example
in your case you went to replace the word light with the word spot so just write
a=a.replace("light","post")

I am not able to access this filename [{"filename":"54526108_1946746692102415_4003062236024143872_n.jpg"}] [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have tried console.log(filename.filename); but it is not working.
[{"filename":"54526108_1946746692102415_4003062236024143872_n.jpg"}]
It’s an array with an object in it. Just try
console.log(filename[0].filename)

How to identify Encoding [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can you please cout me in which format this string is encoded
\u041f\u0440\u0430\u0446\u0430",realty:"\u041d\u0435\u0440\u0443\u0445\u043e\u043c\u0430\u0441\u0446\u044c",hitech:"Hi-Tech",sport:"\u0421\u043f\u043e\u0440\u0442",files:"\u0424\u0430\u0439\u043b\u044b",lady:"\u041b\u0435\u0434\u0437\u0456",
deti:"\u0414\u0437\u0435\u0446\u0456",health:"\u0417\u0434\u0430\u0440\u043e\u045e\u0435",travel:"\u041f\u0430\u0434\u0430\u0440\u043e\u0436\u0436\u044b",cards:"\u041f\u0430\u0448\u0442\u043e\u045e\u043a\u0456",horo:"\u0413\u0430\u0440\u0430\u0441\u043a\u043e\u043f\u044b",pogoda:"\u041d\u0430\u0434\u0432\u043e\u0440'\u0435",afisha:"\u0410\u0444\u0456\u0448\u0430",video:"\u0412\u0456\u0434\u044d\u0430
That looks like a fragment of a JSON document with Cyrillic text.

Stacked IF AND Statement returns #Value error [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I'm probably doing this wrong.. it returns a #Value error...
=IF(AND(B2=0,W2<>0),1,0),IF(AND(B2>0,W2=0),1,0)
IF only allows 3 arguments and you can't just join them outside each other with a ,.
=IF(OR(AND(B2=0,W2<>0),AND(B2>0,W2=0)),1,0)
Or if you only want 1 or 0 as the outputs then:
=--OR(AND(B2=0,W2<>0),AND(B2>0,W2=0))
The -- will turn TRUE/FALSE to 1/0 respectively.
As per #Jeeped's comment.

Resources