Solved

Does Class recognise typeof control if the control is Flex-Grid

Posted on 2002-06-08
6
345 Views
Last Modified: 2008-02-01
I have written a class which refers to a form's Control
collection. The form contains a Flex Grid control. While checking typeOf Property in the Control's collection I am ubnable to check the Flex Grid. Code is
If TypeOf Ctrl Is MsFlexGrid Then
  The Complier Gives error saying User Data type not defined. How to over come this error. Please Dont't suggest the code in which code depends on the Name of the Control. Thanking you.
Regards,
        bhatul
0
Comment
Question by:bhatul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 9

Expert Comment

by:Nitin Sontakke
ID: 7065094
Is the class declaration and the form part of the same project?

If not, include reference to the flex grid control in the class project too.

0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 7065210
Use TypeName (which returns a string) instead of TypeOf.

If TypeName(Ctrl) = "MsFlexGrid" Then
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7065794
ATTENTION bhatul -->  Please click the following link and BRING ALL YOUR OPEN QUESTIONS TO A CONCLUSION.
 
Administration will be contacting you in this regard if they remain open for another 7 days.  You have nine (9) questions to resolve.

http://www.experts-exchange.com/jsp/memberProfile.jsp?mbr=bhatul&showQHistory=true

Moondancer - EE Moderator
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7128851
My comment is an appropriate solution here!
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7297425
This question appears to be abandoned. A question regarding it will be left in the CleanUp
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

The link to the Community Support area is:
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7373265
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question