Hello you great people of this forum. I really mean that you’ve answered soon many questions for me it’s awesome.
So i’m scraping data from a website (Cisco Call Manager) and the data i’m scraping is in a text box on the page. See below:
I can pull each line into an array with the following:
I then created several variables to store each item in the array:
Each one of these is just
variable name = AssDevices(0).ToStringjust changing the array location on each one.
I’m then doing an if statement for each array location that moves the device i’m needing to move (from a data table) down to another text box. See below:
It should be looking to see if that data in the array location 0 matches the device name and if it does move it down. The next if statement does the same for array location 1 and so on.
The issue i’m running into is if the text box doesn’t have enough fields for all the array locations I get
Assign Fifth Device: Index was outside the bounds of the array.
Or whatever number it goes to, not always the 5th.
Is there another way for me to do this? I just need it to match the number in the data table and move it if it finds it. The only way I found to do this was to scrape the text box and match each entry with an equals if statement. It seems to work some times but not all the time.
Thanks for any help with this. It’s much appreciated.