Results 1 to 4 of 4

Thread: efficiency of the With statement

  1. #1

    Thread Starter
    New Member bazjack's Avatar
    Join Date
    Jun 2001
    Location
    Worcester, MA
    Posts
    1

    efficiency of the With statement

    How much more efficient is it to use a With statement than to just refer to the object several times? Say, if you have three or four statements.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    It isn't, to my knowledge, it's just easier to read and deal with.

    Code:
    With Bla Bal
     .do this
     .do that
     .do nothing
    End With
    and a lost less typing.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Megatron
    Guest
    And (I think) it's slightly faster.

  4. #4
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    When its compiled The compiler treats them the same

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