Can I use the #include in VB and can I use contains. Something like if var contains "active"?
Printable View
Can I use the #include in VB and can I use contains. Something like if var contains "active"?
dear,
contains is the instr function
if instr(strLongText, strSearchText) > 0 then ...
kind regards,
big nell
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