Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Parse Info Out of FileName

    ltrim(rtrim(SUBSTRING([filename], charindex('Invoice', [filename])+8, LEN([filename]) - (CHARINDEX('Invoice', [filename])+11))))

    [p]This snippet pulls out the invoice number from a filename. The filename is in a consistent format "MyCustomerName_Invoice_12345678.pdf". The snippet above uses...

Viewing post 1 (of 1 total)