12-15-2011, 09:51 AM
(This post was last modified: 12-15-2011, 10:11 AM by ravi.gajul.)
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 strChk
Code:
If SwfWindow("MyScreen").SwfLabel("Project Code:").Exist Then
msgbox "item Exists"
End If
Regards,
Ravi