CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Tag Property in VB6.0

    The below code throws out an error in VB 6.0, the error message is
    " is not a legal control name.
    Why does this error occur in the propperty sheet for the form the Tag property is blank, I havent set any form.tag property.


    frmReq.Controls(Me.Tag).Text = SelectColumnValue(grdResults, 0)


  2. #2

    Re: Tag Property in VB6.0

    If you haven't set a form.tag property, frmReq.Controls(Me.Tag) will cause the error you describe. Me.tag will = ""; thus, frmReq.Controls(Me.Tag) will attempt to reference a control on the form that is named "".


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured