Tuesday, 15 July 2014

c# - Showing a string without a substring -


I got a little "problem" I have these two strings (showing a message, and showing the index to another Where "## Document ##" starts):

  string text = current node. Properties ["menuinternet"] value; String index = text Index ("## Document ##"). ToString ();  

I have another string for the message without "## Document ##". Any solution to continue with the above code, or any other solution?

For example: Message: BlobBubble ## Document ## 123

And what I want to show: Balabalabla 123

Thank you for the noobish question and sorry is.

just change such method: < Pre> string text = currentNode.Properties ["menuEntry"]. Values; String Message = Text Replace ("## Document ##", string.Empty);


No comments:

Post a Comment