Solved

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

Posted on 2002-06-08
6
328 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
6 Comments
 
LVL 6

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 69

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 69

Expert Comment

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now