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

Thread: FlexGrid ByRef

  1. #1
    Join Date
    Aug 2000
    Posts
    48

    FlexGrid ByRef

    Hello, I do have a control with a msflexgrid on it. I do want to give a ref to a class module but I do not really know how to do it:

    UserControl:
    Call myClassModule.SomeMethod(myFlexGrid)

    MyClassModule:
    Public Sub SomeMethod(myRefToMSFlexGrid As MSFlexGrid)

    If I do make it this way, i do get an error (private object-modules...) , but if I change the MyClassModule to:
    Public Sub Init(theControl As Object)
    there is no error and it does work!
    But I do not want to use "As Object". Does someone has an answer?

    THANKS!!!


  2. #2
    Join Date
    May 2001
    Posts
    11

    Re: FlexGrid ByRef

    Hi,
    Even I have observed the same kind of behavior. I think classes normally supports only late binding. There does not seems to be a work around for this other than declaring it as object....

    Hari


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