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



  • 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


Log in to reply