How to check what the first 10 letters of a string are

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

I am using vartext and split to read in one line at a time the data
from a text box.

I would like to know how to check if vartext(1) starts with the phrase
"Company in"

Thank you,

Gary.
 
I'm assuming 'vartext' is an array? If so ...

If Left$(vartext(1), 10) = "Company in" Then

See 'Left Function' in the help file for details.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top