02-23-2005, 07:42 AM
Use regular expression:
wait 0 WV child("(New|Edit) Customer" "MauiForm" h 0x200)
If you want to know which child window it is:
int hc=wait(0 WV child("(New|Edit) Customer" "MauiForm" h 0x200))
if(childtest(hc "New Customer"))
out "it is New Customer"
else
out "it is Edit Customer"
wait 0 WV child("(New|Edit) Customer" "MauiForm" h 0x200)
If you want to know which child window it is:
int hc=wait(0 WV child("(New|Edit) Customer" "MauiForm" h 0x200))
if(childtest(hc "New Customer"))
out "it is New Customer"
else
out "it is Edit Customer"