User =?iso-8859-1?q?Sankara=20Narayanan?= (firstname.lastname@example.org) posted:
Here, rc captures the return code that is returned by
the TSL builtin function win_exists here. If
win_exists executes successfully, it will return 0 and
if not, it will return some error code. For the list
of error codes see TSL online reference.
The TSL online reference gives the same list of error
codes for all the TSL Functions. Iam wondering how it
is possible. Long time back I raised a question
regarding this. I didnt get any reply and hence Iam
repeating the same question once again. Requesting
your thoughts on this.
Thanks in advance.
The Police Dog.
= = = Original message = = =
I am new to WinRunner and programming in general. I
see "rc" in the
code but am not sure what it does (se example below).
I've checked the
glossary and it does not really explain it. Can
someone give me a brief
hour = get_system_date_or_time("hour");
rc = win_exists(DST_FA_LIST_WINDOW, 20);
if((hour < 15) | | (hour > 19))
"Trading is UP", "Trading is DOWN!", rc, 1);
Yahoo! Groups Sponsor
Re: Error Codes
The list of TSL Error codes is the complete list of all TSL functions possible errors.
Naturally each TSL function returns only its own relevant subset of these errors.