How to read resource from beginning to the end

Support
  • Hello again,
    Im really beginning with BAS so please be indulgent.
    I have created a resource ACCOUNTS which load lines from text files manually in the right panel.
    I do not use multithread, just 1 browser to read from the resource and do actions.
    I would like to go through the resource element 1 to the end.
    I have tried FOR 1 to a number but it does seems i do not have access to resource while BAS running.
    I can not even get the resource number of elements
    Please help needed!
    Thanks

  • If you want to loop through the resource you should convert it to list then for loop from that list.

  • @hnb said in How to read resource from beginning to the end:

    Hello again,
    Im really beginning with BAS so please be indulgent.
    I have created a resource ACCOUNTS which load lines from text files manually in the right panel.
    I do not use multithread, just 1 browser to read from the resource and do actions.
    I would like to go through the resource element 1 to the end.
    I have tried FOR 1 to a number but it does seems i do not have access to resource while BAS running.
    I can not even get the resource number of elements
    Please help needed!
    Thanks

    Test script

  • @Darkstone i finally made it with list as you said
    @Fox Fantastic, it was so simple with your test script ! it is working fine! thank you for this wondefull tool

  • 1 Votes
    2 Posts
    572 Views
  • 0 Votes
    2 Posts
    1024 Views
  • reload resource bugged

    Support
    0 Votes
    2 Posts
    1034 Views
  • Best way to trim end of line?

    Support
    0 Votes
    1 Posts
    826 Views
  • How to read by line with BAS?

    Support
    0 Votes
    5 Posts
    1765 Views