Results 1 to 3 of 3

Thread: Contains and #include

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    1

    Contains and #include

    Can I use the #include in VB and can I use contains. Something like if var contains "active"?

  2. #2
    Lively Member
    Join Date
    Dec 2001
    Location
    vienna, austria
    Posts
    118
    dear,

    contains is the instr function
    if instr(strLongText, strSearchText) > 0 then ...

    kind regards,
    big nell
    visit me on www.big-nell.com to find out the truth

  3. #3
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    There are compiler directives in VB and they start with #, but no #include.

    one way to do that is to create a .BAS module with all of the variables and functions declared Public for the ones you want all modules to see.

    contains = Instr
    Code:
    If Instr(mystring,"abc") >0 then
         ' found it 
    End if

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