Exract Characters From String

Hopefully a very simple question requiring a very simple answer.

I have the part number stored as a string

FileName = "123456-01"

How do I extract the first 4 characters from this variable and place them in another variable.

I tried using InStr but I could not figure out how to get it to work.

Can anyone help me?

Reply to
inthepickle
Loading thread data ...

auf VB...

NewString = Left (FileName,4)

Reply to
That70sTick

got it - thanks anyways

Left$(FileName, 4)

Reply to
inthepickle

got it - thanks anyways

Left$(FileName, 4)

Reply to
inthepickle

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.