Results 1 to 10 of 10

Thread: Object reference of DatGrid control

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2017
    Posts
    8

    Object reference of DatGrid control

    Hi

    I need to send different DataGrid control object references to a function. Something like this is possible with many controls like a Form:

    Code:
    Dim lForm as Form
    Set lForm = frmPrint
    
    msgbox(lForm.Caption)
    But it is not possible to do this with DataGrid control because it is diffrenet.
    Do you how I can do that?

    Code:
    Dim lGrid as ?  '( I tried DataGrid and Object here but not possible)
    set lGrid = myDataGrid
    
    Call myFunc(lGrid) 
    .
    .
    .
    
    Private myFunc(ByRef pMyGrid as ?)
    
       MsgBox pMyGrid.Caption
    
    End Function
    It is possible with MSFlexGrid control as well, but I need to use DataGrid control.

    Thanks
    Last edited by Al2017; Mar 13th, 2019 at 09:40 AM.

Tags for this Thread

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