/ Forums / Advansys Formativ / Creating Solutions with Formativ / How do I use TrZCheckGroup properly?

  • Creator
    Topic
  • #4268
    sfritz
    Participant

    I am using TrZCheckGroup in a form to allow the user to select the type of request. I have populated TStrings with my choices, however at runtime I am unable to obtain the item selected.

    This is the code I am using

    for x = 0 to WSFORM.Request_Type.count -1
    if WSFORM.Request_Type.ItemChecked(x) then
    iCheckedItems = iCheckedItems & WSFORM.Request_Type.items.strings(x) & vbcrlf
    end if
    next

    I receive the following error:

    Object doesn’t support this property or
    method: ‘WSFORM.Request_Type.Count’ at line 500, column 6

    Any guidance would be much appreciated.

  • Author
    Replies
  • #7669
    Support 1
    Participant

    I think your code omits the Items property of TRzCheckGroup. The following edited version of your code should do the job:

      for x = 0 to WSFORM.Request_Type.Items.Count - 1
        if WSFORM.Request_Type.ItemChecked(x) then
          iCheckedItems = iCheckedItems & WSFORM.Request_Type.Items.Strings(x) & vbCrLf
        end if
      next
    

    I hope this helps.

    Regards,
    Advansys Support

    #7671
    sfritz
    Participant

    Much appreciated!

    #7670
    Support 1
    Participant

    We are always glad to be helpful.

    Regards,
    Advansys Support

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.