Hi David,

    Look on the third item in the object model. There is a list of enumerations 
and you want the one for Dialog box.
    There click on the one for dialog and take your mouse down and look at the 
list of events.

    There you will find the click event or the double click. Now your check box 
can have 2 states or 3 states and you set it up for which you want.
    There are also values that come back depending on which state it is. Now, 
when you click on that check box you check those states as they come in.

    Then you make the choice of where to branch to from there.

    But always first go to the dialog box since you are using that, and look at 
the enumerations for the events for the dialog box.

    there you will get the state to check. In other words you do the case if 
clicked after the case of the ID number.

checkbox clicked...

  Sent: Sunday, February 24, 2013 6:26 PM
  Subject: Checkbox - please help?


  In my XML file, I have created a Dialog, that does hold a Checkbox. The 
Checkbox has been given the ID MyCheckbox.

  In the VBS code, I have a variable:
  Dim Showbox
  which is a Boolean, and hence should be set to True, if the MyCheckbox is 
checked, otherwise set to False.

  In the 
  Function DialogEventHandler
  I have the following code. But, I don't know, which term to use, to check for 
the checbox state. In the sample, I have marked it with the term WhatToPutHere. 
Please, can anyone enlighten me a bit here? I tried to look in the Developer's 
Reference, but apparently did not look the right place, as I did find no 
answer, and therefore hoped for some assistance from the community. Maybe I am 
doing something wrong in my code, but I just don't know what. :)

    Case "MyCheckbox"
     If DEvent = WhatToPutHere? Then
      Showbox = True
      DialogEventHandler = True
      Exit Function
     Else
      Showbox = False
      DialogEventHandler = True
      Exit Function
     End If 'MyCheckbox.

Reply via email to