This documentation is archived and is not being maintained.

Early and Late Binding

SharePoint Portal Server 2001

Using Visual Basic, the developer can use either early or late binding. However, by using Microsoft Visual Basic® Script, the developer can use only late binding. Furthermore, there is a difference in the use of the prog ID for early and late binding. The difference is shown in the following code snippets.

Early Binding (Visual Basic only)

The following code snippet shows the correct prog ID for creating a document management object:

Dim oKnowledgeDocument as PKMCDO.KnowledgeDocument
Set oKnowledgeDocument = New PKMCDO.KnowledgeDocument

The following code snippet shows the correct prog ID for creating a subscription object:

Dim oSubscriptionManager as PKMSUBSLib.SubscriptionManager
Set oSubscriptionManager = New PKMSUBSLib.SubscriptionManager
Late binding

The following code snippet shows the correct prog ID for creating a document management object:

Dim oKnowledgeDocument
Set oKnowledgeDocument = CreateObject("CDO.KnowledgeDocument")

The following code snippet shows the correct prog ID for creating a subscription object:

Dim oSubscriptionManager
Set oSubscriptionManager = CreateObject("PKM.SubscriptionManager")



 

Show: