Questions tagged [late-binding]

Late binding is a mechanism in which the method being called upon an object is looked up by name at runtime.

Late binding is a mechanism in which the method being called upon an object is looked up by name at runtime.

The specific type of a late bound object is unknown to the compiler at compile time. This is contrasted with early binding, where relationships between objects, methods are properties are established during compile time.

It is expected that questions tagged specifically relate to programming using late bound code. You should also tag your post with the specific programming language being used.

Example (VBA):

' late bound objects are declared As Object
Dim obj As Object
Set obj = CreateObject("Excel.Application")

Related Tags:

353 questions
0
votes
1 answer

Trouble with late-bound functions

Greetings I have the following code: Private Sub makeNewReports() Dim wkSheet As Worksheet Set wkSheet = ActiveWorkbook.Worksheets("Grades") Dim i As Long Dim myMap As Dictionary Set myMap = New Dictionary For i = 4 To 6…
bdpolinsky
  • 341
  • 5
  • 18
0
votes
1 answer

Java Polymorphism Exercise

Can someone please explain how the compiler/runtime runs the appropriate method in the example? There are 6 classes and a method void m(/* ... */) with different parameters. I know that the compiler analyses the declared types. The output is…
0
votes
1 answer

Spring Batch Late Binding Within SQL Using Java Config

We are converting xml-based spring batch configuration to java config. In xml form of JdbcCursorItemReader we were using late binding: SELECT * FROM MY_TABLE_#{jobParameters[param1]} How can this be implemented using Java config syntax?
0
votes
2 answers

Ms-Access to Excel Late Binging VBA

I am currently using late binding from MS Access 2016 to MS Excel: The conditional formatting code does not perform the required job, but does not complain of an error when run. I am able to create an Excel sheet and edit the sheet, but currently…
D.Shapiro
  • 3
  • 4
0
votes
1 answer

Convert early binding code to late binding

I have difficulty converting early binding code to late binding. I have tried several times but it doesn't work properly. When it comes to early binding it works well. Here is my code and I'd like to ask you to show me how it should look like and…
Arkadiusz
  • 369
  • 5
  • 18
0
votes
3 answers

Impossible to pass job parameter to step scoped bean in Spring Batch

I'm writing a batch using Spring Batch and am trying to pass a job parameter to the item reader bean definition, but when I'm executing the batch I keep getting the following error: org.springframework.expression.spel.SpelEvaluationException:…
François Dupire
  • 585
  • 3
  • 11
  • 32
0
votes
0 answers

scipy.optimize minimize not changing value. think it's due to late binding but unsure how to change...

I'm fairly new to this but will try and be as clear as possible. Essentially I have 5 different lists of lists. 4 are imported from txt files and the 5th is a merger of the 4. Each inner list contains a value at index position 3. My objective is to…
0
votes
1 answer

Trouble with different kinds of polymorphism

From what I learned so far, there are two kinds of polymorphism, compile-time, and runtime. In compile-time, the polymorphed function or operator is resolved by compiler, while in runtime, its resolved at runtime. Examples of compiile time…
0
votes
2 answers

Using VB.NET to create a Pivot Table on an Exported Document

I have a pipe-delimited text file that I need to read, turn into a pre-formatted Excel document - complete with separate pivot table sheet - and save. Reading the file and saving it as an Excel document are solved, but I can't seem to get the pivot…
user5046062
0
votes
1 answer

Type Mismatch (13) error when passing Recordset object as parameter using late binding

I am writing VBA UDFs to retrieve geographic data about coded locations. I have an Excel workbook with all the details in a shared location. When the user enters the UDF on their workbook and provides the requested coded parameters, the following…
0
votes
1 answer

late bind errors in Visual Studio 2015

I wonder if anyone has a solution or even a suggestion to the following problem. I have created a Visual Studio forms application in VB using Visual Studio 2015 Community edition. The application works fine within Visual Studio in debug mode and it…
0
votes
1 answer

(VBA) Late Binding (avaoid reference) of Acrobat Type Library

Is it possible to avoid the reference to the Adobe Acrobat Type Library somehow? I cannot figure it out how...I receive an ActiveX error message. I only paste an extract of my code as the rest is not that important. Here is the code with early…
smartini
  • 404
  • 6
  • 18
0
votes
0 answers

Can TypeForwardedTo be used without a direct project reference?

I have two C# projects, LibraryA and LibraryB, each producing a separate DLL. LibraryA makes use of the classes in LibraryB. LibraryB needs to make a TypeForwardedTo reference to class in LibraryA. (See this question for background.) Normally, I…
billpg
  • 3,195
  • 3
  • 30
  • 57
0
votes
1 answer

RuntimeBinderException when trying to instantiate an array of a dynamic type (late-binding)

I am trying to use Activator.CreateInstance() to instantiate an array that has fields of a dynamic type (I get the type that I must use for array fields during the runtime as Type arrayType = arrayFieldType.MakeArrayType()). singleSet.ZaznamyObjektu…
user7128558
0
votes
1 answer

Late binding not working with FlatFileItemReader

`JdbcStepExecutionDao:275 - Truncating long message before update of StepExecution, original message is: org.springframework.batch.item.ItemStreamException: Failed to initialize the reader at…
user3402702
  • 91
  • 1
  • 11