Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

Can't Declare as MsflexGrid.

i Can't Use the following in my Class Module.

Public Function MyMsfSort(byref pMaf as MsflexGrid)


is the any other way?
0
ackid32
Asked:
ackid32
  • 3
  • 3
  • 3
  • +1
1 Solution
 
hongjunCommented:
Make sure this is done
Project->Components
Check "Microsoft FlexGrid Control 6.0"

hongjun
0
 
sazhagianambiCommented:

Make Sure the Passing Object is alreday avail in Your Form.
For Ex,

Place Control MsFlex

Call Fun(MsFlex)

Place This Code in ClassModule,
Public function (Byref Nam as MsFlexGrid)
   Nam.additem("Nambi")
End function

This Will Work Finely.

Regards,
Nambi
0
 
catalin_tataCommented:
Make sure you check the component Microsfot flex grid control in the Project/Components
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ackid32Author Commented:
yes, i do all things, all i want is

public sub blabla(msf as msflexgrid)

the above line give error while compiling.

0
 
sazhagianambiCommented:
Plz Tryout With ByRef Keyword

Public sub blabla(byRef msf as msflexgrid)

Regards,
Nambi
0
 
ackid32Author Commented:
no, it also tried out
0
 
sazhagianambiCommented:
From You Question i hope You wrote the Function "MyMsfSort"
in a Class Module. likely,
Public Function MyMsfSort(byref pMaf as MsflexGrid)
    Msfl.Row = 1
    Msfl.Col = 1
    Msfl.Text = "Nambi"
end function

Assume Class Name is Class1 then,
Try out this.    

    Dim a
    Set a = New Class1
    Call a.MyMsfSort(MSFlexGrid1)
It Will Show the "Nambi" in Grid without any Problem

Regards,
Nambi
0
 
hongjunCommented:
What is the error message?

Make sure this is done
Project->Components
Check "Microsoft FlexGrid Control 6.0"


hongjun
0
 
hongjunCommented:
Any feedback
0
 
ackid32Author Commented:
i want to use this code in  ActiveX Control. Here it will not work.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
  • 3
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now