944,167 Members | Top Members by Rank

Ad:
Oct 30th, 2005
0

split up sentences and place in diff label?

Expand Post »
hi , i need to know how to split up and place in diff label.?
and randon up the labels

i attach a sample program of wat i need.
can anyone please help me..
Attached Files
File Type: zip randomDrag.zip (1.8 KB, 14 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bang2711 is offline Offline
24 posts
since Aug 2005
Oct 31st, 2005
0

Re: split up sentences and place in diff label?

I don't understand what you are wanting to do.... do you want each word of the sentence in a new label, or do you want a random word of the sentence in the one label???
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Nov 1st, 2005
0

Re: split up sentences and place in diff label?

I'm Pretty Sure This Is What You Are Asking For. The Key To Understand How This Works, Is To Take A Good Hard Look At The Collection. A Collection, Which Is Like An Array, Has Methods That Makes Working With Data Easier. We Populate The Collection With All The Words Of The Sentence, And Then Loop Through All The Words We Have, Generating A Random Number Between Zero And The Same Length As The Collection. Then, We Remove The Element Of The Collection That Was Randomly Selected (After Assigning It To An Array), Which Will Make The Max Variable (The Variable Used As The Upper Border Of The Random Seed) Decrement, Making The Random Selection One Less Than Before (Not Just One Less, But The One We Have Already Randomly Chosen On The Previous Loop).

I'm Probably Complicating The Situation By Trying To Explain It So In Depth, So Examine The Code And Comments, And Let Me Know How It Works Out For You.
Attached Files
File Type: zip RandomSent.zip (2.4 KB, 22 views)
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: making of cd player
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: How to make Excel disappear!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC