Solved

Need a reference to the Extender object

Posted on 2002-03-28
3
163 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 50 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb6 connector to SQL Server 2 42
VBA: Select SQL query based on a config Sheet v2 11 52
VBA Shell can't Find Word document 11 131
Problem to With line 4 76
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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

730 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