Quote:
Originally posted by harishpatel
I want to know how to implement early binding
'Early binding using Excel for example
'Set a reference to Excel using Project-References menu options in VB IDE then:
Dim objExcel as New Excel.Application
'or you can:
Dim objExcel as Excel.Application
Set objExcel = New Excel.Application
Quote:
Originally posted by harishpatel
and late binding while creating a com object.
'Late Binding with Excel for example (no need to set Reference with menu options for Late Binding)
Dim objExcel as Object
Set objExcel = CreateObject("Excel.Application")
Quote:
Originally posted by harishpatel
I also want to know array starting element is zero but i want to start array from 4 number element.
'To make this the default for everything with an element you can
Option Base 4
'Or you can do it as you Dim
Dim myArray(4 to 100) as Integer
Quote:
Originally posted by harishpatel
I want to know how to create a n number parameters function.
Private Function myFunction(one as integer, two as double, ... , n as Long) As Double
'Code here
end Function
Quote:
Originally posted by harishpatel
I want to know the details for creating COM component and how to use it.
When starting a project in VB6, select ActiveX exe or ActiveX DLL instead of EXE. Access and use the compiled project (dll or exe) using early or late binding