Results 1 to 6 of 6

Thread: Early vs Late binding

  1. #1

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444

    Post

    I had recieved help on this board that showed me how to use the spell check in word for a text box. I believe the code given to me uses late binding. Is it possible to use early binding?(not the complete code just what I think to be late binding)

    Dim Word As Object, retText$
    Set Word = CreateObject("Word.Basic")
    Word.AppShow

    if this is late binding, can early binding be used and how does early binding work?



    ------------------
    I am so skeptacle, I can hardly believe it!

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    Funny, I was asked this question on an interview! To the best of my knowledge it's late binding and just by referring to the object through the object browser it's available. Early binding is creating the object from scratch (I think). I'm still a new-be and I look forward to someone clarifying this further.
    Joey O.

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    I have posted a similar response here:
    http://www.vb-world.net/ubb/Forum1/HTML/012324.html

  4. #4

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444

    Post

    RogerH:
    OK it opens up word.
    how can I tell it to open up a document for me? Is there a help file or a website that will help. The intellisense is not very intelligent for me.
    thank you for your time and have a good day


    ------------------
    I am so skeptacle, I can hardly believe it!

  5. #5

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444

    Post

    never mind I found how to open a document

  6. #6
    Lively Member
    Join Date
    Dec 1999
    Location
    Karlsruhe, Germany
    Posts
    122

    Post

    Sorry, but there's an essential diff between late and early binding!

    Select in menu Project - References the "MS Word Object library". Your code with early binding:

    Dim objword As word.Application
    Set objword = New word.Application
    objword.Visible = True

    Benefits: Faster and IntelliSense (the function that shows you possible parameters and so on while you're writing the code)

    RogerH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width