Search results for query: *

  1. D

    how to get random item from array

    Seems to work.. so far so good. Thanks for all your help, it's working now and also have picked up a little more experience on the way so double bonus
  2. D

    how to get random item from array

    Looking back at my code Should I maybe be using TopAffiliate.Item(autorand.Next(0, TopAffiliate.Count - 1)) rather than TopAffiliate.Item(autorand.Next(0, TopAffiliate.Count + 1)) as by putting the + would i not be creating this duff number that I keep calling?
  3. D

    how to get random item from array

    Hi Cjard, Thanks for your past few posts. Just to clarify with your last two. I am currently using an array list as shown earlier in the post. My code is as follows:- Dim ExampleArrayList As New ArrayList Dim sr As New StreamReader("C:\example.txt") Do While sr.peek <> -1...
  4. D

    how to get random item from array

    JuggaloBrotha, or anyone else for that matter. I am just testing my application and keep receiving an error message as follows. ArgumentOutOfRangeException Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index I only sometimes...
  5. D

    how to get random item from array

    Thats great, works fine. Thanks for your assistance
  6. D

    how to get random item from array

    Hi There, thanks for the response. What I am actually doing with this array is randomizing it and using a random value in a hperlink. Is this still the same, and would I use the Array List? if so how would i call it in my code? I currently have My Array(autoRand.Next(102)) Thanks...
  7. D

    Filling an Array from a Text File

    i am just finishing off my first app in vb.net and i would just liek to make it a bit more easier to maintain in future. I would need to fill an array which could be hundreds to thousands of lines long so adding to this would be easier by just adding a line to a text file. I have searched...
  8. D

    Using Random Strings.

    Thank you, just tried it and it works so well, thanks for also posting the article link. will have a read up on arrays in general.
  9. D

    Using Random Strings.

    Thanks for your reponse. I have managed to set up an array and populated it with all the entries. The part that is confusing me is how i call it in my code. for example my array is called Hyperlinks(105) as string. the line of code where I want the string to appear is as follows Do...
  10. D

    Using Random Strings.

    Hi all, I was wondering if anyone could point me in the right direction how to do the following. I am creating 20k different HTML pages and have got my app working to do this as I wish. What i would like to do is randomly change a few variables each time a page is created. For example...
  11. D

    Creating HTML Pages.

    than you for responses on both posts both have heled me out and saved a headache:)
  12. D

    Creating HTML Pages.

    Hi all. I am attempting to write an application which i need to use to create 20,000 html pages. They are all very basic and will be named as 2 sets of 00001.html up to 10000.html. The contents of these pages will be pretty much the same apart from 4 individual lines which will need to be a...
  13. D

    A string that contains speech marks

    Hi all, Firstly sorry if this is very simple but I am a complete novice. i am tring to write an app which creates HTML pages. To do this my strings will need to contain speech marks for the hyperlinks. how do i type these so they apppear as hyperlinks when i create the text files to convert...
Back
Top