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?
ackid32Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.