Results 1 to 2 of 2

Thread: Explanation for Option Compare Text .. etc

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Post

    could someone please explain what are these and what is there main purpose. And also is there anymore like these.

    Option Explicit
    Option Compare Text



    ------------------
    OmarSwan

    [email protected]

    http://omarswan.cjb.net


    "Jesus is Lord"



  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    Option Compare statement sets the default string comparison method.

    Set the string comparison method to Binary.
    Option compare Binary That is, "AAA" is less than "aaa".
    ' Set the string comparison method to Text.
    Option compare Text That is, "AAA" is equal to "aaa".


    Option Explicit forces you to declare variables and in my opintion this should ALWAYS be used

    this id put in automativcaly if you check
    "Force Variable Declaration" from Tool -> Options menu


    Option private Module Indicates that module is private.

    Option base 1 Set default array subscripts to 1.


    take a look in the vb help files for more info!

    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company

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