| | |
split up sentences and place in diff label?
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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.
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.
![]() |
Similar Threads
- non rectangular labels (VB.NET)
- Scanning for more than one object (VB.NET)
- Login used to work (ASP.NET)
- random up sentences. please help me!! (Visual Basic 4 / 5 / 6)
- random selection with drag and drop label function( help needed!! ) (Visual Basic 4 / 5 / 6)
- Dedication ... (Geeks' Lounge)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: making of cd player
- Next Thread: How to make Excel disappear!!
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window






