[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Need a reference to the Extender object

Posted on 2002-03-28
3
Medium Priority
?
169 Views
Last Modified: 2010-05-02
This should be easy for a VB person, but I'm not.  I'm a FoxPro person using VB for creating an activex control.  I am going through the VB example for creating an ActiveX control.  In the 'Saving the ShapeLabel Control's Property Values" exampel, the user puts the code "Caption = Extender.Name" in the WriteProperties method. When I try this, I have no intellisense and control doesn't work at the conclusion of the example.  What's up?
0
Comment
Question by:vfper
3 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 200 total points
ID: 6903111
What's up is something called late binding.

Since the Extender is object depends on where the control appears at (its) run-time, there is no way for the design mode to know who the container is.  As such, the extender object is a generic object reference which doesn't know the container's exposed properties and methods, so the Intellisense cannot show it.

One way to get around that in the design mode is to use a valid container reference to get the intellisense, then later change the reference to "Extender."  Also, make sure to include error-trapping since it's possible that the container may change (since it's user-controlled, not designer controlled) and may eventually end up in a container that does not support the Extender property/method you're referencing.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7637942
Hi vfper,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept rspahitz's comment(s) as an answer.

vfper, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7754853
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

873 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