Sign in to follow this  
Followers 0
mesale0077

ie id Switch

3 posts in this topic

$obj = _IEGetObjById($oIE, "2")
ObjEvent($obj, "Products_")
$obj = _IEGetObjById($oIE, "3")
ObjEvent($obj, "Produ_")
$obj = _IEGetObjById($oIE, "1")
ObjEvent($obj, "Company_")
$obj = _IEGetObjById($oIE, "button_id")

okey but

ObjByIdnameObjEvent() ithink func ?

ı want to convert id Switch ,but how is it?

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch

$nid= ObjByIdnameObjEvent()
    Switch $nid
        Case 2
         Products_()
 Case 3
         Produ_()
    EndSwitch
    WEnd

thank you now

Share this post


Link to post
Share on other sites



ie id Switch ? how isit

Share this post


Link to post
Share on other sites

What was the question?

You want to make a switch strucutre based on the return value of ObjByIdnameObjEvent()?

It looks like you already have it set up.  Make sure the Case statements cover all of the possible return values.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0