Hi
I have an array which contains 5 strings (like This is a very big apple.) .What I want is make fill ups in the 5 strings in random fashion.I want to pick any word from the line and replace it with dash (______). When ever the user selects the option ,it will automatically fits in the blank area (i.e dash ____).
Let me know the steps for the above process
kritika
Loading

Posted Oct 18, 2013, 4:18 AM EDT
you can use replace function of string class, see the syntax below
D = D.Replace("oldValue", "newValue");
Example if you want to replace apple by _ you can use below code
string D="like This is a very big apple.";
D = D.Replace("apple.","_");
hop this code will help you, please mark as answer, if it helps you
kritika RanaRank #7,001 · 251 reputationPosted Oct 18, 2013, 4:31 AM EDT
I can I select random words and replace them with dash(____).
VulpesRank #55 · 29.2K reputationPosted Oct 18, 2013, 4:35 AM EDT