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
VulpesPosted Oct 18, 2013, 8:35 AM
kritika RanaPosted Oct 18, 2013, 8:31 AM
I can I select random words and replace them with dash(____).
Posted Oct 18, 2013, 8:18 AM
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