The line
SwfWindow("MyScreen").SwfLabel("Project Code:").Exist
returns a boolean value i.e.,"true" or "false" .Hence we are supposed to either assign the above statement to a variable or use it in a conditional statement.The two codes shown below demonstrates the usage
or
Hope this clarifies your query
Regards,
Ravi
SwfWindow("MyScreen").SwfLabel("Project Code:").Exist
returns a boolean value i.e.,"true" or "false" .Hence we are supposed to either assign the above statement to a variable or use it in a conditional statement.The two codes shown below demonstrates the usage
Code:
strChk=SwfWindow("MyScreen").SwfLabel("Project Code:").Exist
msgbox strChkCode:
If SwfWindow("MyScreen").SwfLabel("Project Code:").Exist Then
msgbox "item Exists"
End IfRegards,
Ravi

