CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Posts
    6

    How can I use Withevents as Array

    Hello,

    Can I use Withevents as an array like this:

    Dim withevents Button(1 to 10) as CommandButton 'this code doesn't work



    Alexander Holtkamp


  2. #2
    Join Date
    Apr 1999
    Location
    Hyderabad, India
    Posts
    4

    Re: How can I use Withevents as Array

    Hi!
    I think dimension is not possible for withevents because it is used for object variables in the class events.Keyword that specifies that varname is anobject variable used to respond to events triggered by anActiveX object. WithEvents is valid only inclass modules. You can declare as many individual variables as you like using WithEvents, but you can't createarrays with WithEvents. You can't use New with WithEvents.

    satya


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