Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If statement with multiple conditions
#5
Solved: 11 Years, 4 Months ago
Lorena,
Try This
Code:
Dim oDialog:set oDialog=Dialog("text:=Login")

set obj1=description.Create()
set obj2=description.Create()
obj1("Micclass").Value="WinEdit"
obj2("Micclass").Value="WinButton"
set oCount=oDialog.Childobjects(obj1)
set oCount1=oDialog.Childobjects(obj2)
'Msgbox oCount
's=oCount.Coun
     If oCount.Count=1 then
         Msgbox"Editbox is exist"
    End if    
    If oCount1.Count=0 then
         Msgbox"Button is exist"
    End if


Thanks,
Arul.D
Reply


Messages In This Thread
If statement with multiple conditions - by mv8167 - 08-16-2011, 10:38 PM
RE: If statement with multiple conditions - by Arul - 08-20-2011, 08:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Correcting If statement looking for multiple strings mv8167 5 5,613 11-03-2011, 11:51 AM
Last Post: ravi.gajul
  exit conditions stevol 0 1,953 08-11-2008, 03:35 PM
Last Post: stevol

Forum Jump:


Users browsing this thread: 5 Guest(s)