Ask a Question

Delphi keyword script If object exists then else statement

SOLVED
wnull3
Occasional Contributor

Delphi keyword script If object exists then else statement

I'm trying to setup my test that If and Object exists then the operation (keys) performs [Enter]

 

else

 

continue with script.

 

so basically if the object is there perform [Enter] and move on if it's not there then just keep moving on.

 

This is for an Delphi application for zipcodes.  if the user enters the zipcode that doesn't match the city/state then it sometime displays a pop up with the correct city and state matching it.  I'm performing a data loop with generated data, so if this comes up I just want to blow past it for now.

 

Should I do a If Object exists with a If...Then as the child?

1 REPLY 1
Ryan_Moran
Valued Contributor

Basically...

 

pseudocode:

 

If WaitObject.Exists Then

    Object.Keys("whatever")

End If

 

Also, make sure you use the wait method.

See example in the link.


''-Praise the sun and Give Kudos.''
cancel
Showing results for 
Search instead for 
Did you mean: