01-02-2012 03:19 AM
Greetings to all,
Wishing you a Happy 2012!!!!!!!!!
Would like to discuss about an issue am facing in this sample code:
The Code works very well. But am not able to insert "Testing"in the 3rd column. I tried to initialize the index to 3 but dint work. Any suggestions as to how i can insert the values in the the 3rd column of the table.
Also is there a way through which I can check the current URL with all the old URLs in the Table for repetition???So that it generates an error message stating "the URL is repeated, Please add a new one". I tried to use string matching but was not successful.
Looking forward to your replies,
Thanks & Regards,
Sushruth.
01-02-2012 03:35 AM - edited 01-02-2012 03:37 AM
Hi Sushruth,
once you figure out the row and column indexing it's quite easy:
For testing the URLs you can use the "Search 1D array" function...
RubeGoldberg alarm:
Why do you test for a stop condition in your FOR loop? You already wired the "N" terminal of the loop, so why explicitely stop on last iteration???
01-02-2012 04:16 AM
Thanks Gerd,
Sometimes silly mistakes looks like big issues!!!!!!!!!Really thankful for helping me out......
Actually I was testing this program with While loop. I dont want the Fixed N as I wanted to stop whenever i want to. But in case of while, after pressing Stop it used to take one iteration extra to stop the program. So i guess i have to wire ''i'+1 to stop. Correct me if I am wrong.
In case of Search 1D array, there is no provision to send error out right??I mean I want to compare the current URL with all the previous URLs and if any error it needs to send an error. If not continue with next one. I have ideas(like using feedback) but i dont know how to implement....Really appreciate any sugestions or inputs....
Thanks & Regards,
Sushruth.
01-10-2012 03:27 AM
Hi,
I don't know if you still have that problem but what I can see is that if you stop the program, it will stop exactly at the same iteration. But because it start from 0, it looks an extra iteration. If you want to see the number of iteration then you can add i+1 to Stop.
About the Search 1D array there is no provision to send an error but with this function you can compare the list of your URL links with the new URL and if it is there, you will get -1 at the output of Search 1D array. After that, you can write a code to create an error. For example, if the value is >= 0 you have an error, others you can put the new URL in your list.
I hope it would be useful and if you have more questions don't hasitate to ask.
Best regards,
Hossein