Basic Instr question

  • Thread starter Thread starter Mike Anderson
  • Start date Start date
M

Mike Anderson

I'm trying to get the "string" results of anything
before "IEA*" in my incoming text file. However the
instr returns the integer (char number 4968) verses the
string itself.

Any suggestions would be most appreciated.

i = InStr(strinfile, "IEA*") 'returns 4968 vs long string

Cheers,
Mike
 
Mike Anderson said:
I'm trying to get the "string" results of anything
before "IEA*" in my incoming text file. However the
instr returns the integer (char number 4968) verses the
string itself.

Any suggestions would be most appreciated.

i = InStr(strinfile, "IEA*") 'returns 4968 vs long string

Use String.Substring to retrieve the string itself.
 

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