Solved

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

Posted on 2002-06-08
6
340 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
Technology Partners: 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

697 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