|
-
Nov 27th, 2002, 12:02 PM
#1
Thread Starter
New Member
Contains and #include
Can I use the #include in VB and can I use contains. Something like if var contains "active"?
-
Nov 27th, 2002, 12:05 PM
#2
Lively Member
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 
-
Nov 27th, 2002, 12:08 PM
#3
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|