Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21254

[RESOLVED] removing spaces from random words in a paragraph...

$
0
0
hi guys, i'm trying to achieve a kinda string function in which when a paragraph is entered by the user...it randomly removes the spaces between a few words each time giving different results( thats the idea of what i'm trying to achieve..) for example
Quote:

tiger is the most powerful animal
may be converted to
tigeris the most powerfulanimal
or
tiger isthe mostpowerful animal and n such results...
now what ive done upto now is get all the text into separate words in an array using the split function.now i was thinking to reintroduce spaces into all except few random ones.. how do i achieve this? or may be a different approach??

Viewing all articles
Browse latest Browse all 21254

Trending Articles