ListSize function in RoutineBot

ListSize( List:String )
List:String –

String, that contains comma separated handles. You can get this string as result of function FindWindows.

Return Value
Returns number of items in string. E.g. ListSize(‘5,6,7’) returns 3 and ListSize(”) returns 0.

s := FindWindows('Opera');//searching browser handle
cnt := ToString(ListSize(s));
MsgBox('Found ' + cnt + ' handles');
s := '1,2,3';
cnt := ToString(ListSize(s));
MsgBox('Count of items in string ' + s + ' = ' + cnt);

Download example ListSize

Posted in Articles
Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *


Example: GUI test with RoutineBot

RoutineBot is testing GUI, trying to enter various values into the text fields and processing warning messages that tested program shows.

Gui Test Automation

GUI Testing TipsCheck out our GUI Test Automation tips.
Test Automation Step-by-Step
Learn more than 99% users know about test automation! Subscribe to maillist now! Learn how to create scripts that will do routine job for you.