Monday, July 13, 2009
Early and Late Binding
6:42 AM |
Posted by
Sheen |
Edit Post
Declaring an variable with specific object type called Early Binding.
Example:
Example:
' Create a variable to hold a new object of type File Stream.
Dim fs As System.IO.FileStream
Declaring an variable with type object called Late Binding,
later this variable can hold any object type.
' Create a variable to hold a new object
Dim anyObject As Object
or
Dim fs
' Later you can assign any object type to this variable
anyObject = CreateObject("Excel.Application")
or you can use the anyObject to hold any other your object type
anyObject = CreateObject("Define.Start")
Subscribe to:
Post Comments (Atom)
Blog Archive
Important Blogs
-
-
Git Workflow For Enterprise development6 years ago
-
-
Watch Live Cricket Online Free14 years ago
-
-
-
0 comments:
Post a Comment