![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Problem with VBScript, Outlook and line jumps I'm trying to create an script to process all the NDR messages that we receive in an Exchange mailbox, and I need to locate some text strings inside the message body. So I have a text string with the hole message body (and multiple lines) and I want to "cut" a string from one specific word to the end of that line. I've tried to locate the line end with InStr and every option I've found on the internet... Chr(10), Chr(13), vbCrLf, vbCr, "\n"... and everyone of them with both text and binnary comparisons... and no luck !!! ![]() Any suggestions?? Please?? ![]() |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Problem with VBScript, Outlook and line jumps "Bernardo Achirica" <Bernardo Achirica@xxxxxx> wrote in message news:BC02C00F-6067-465F-AC9E-2372E4DB95C2@xxxxxx Quote: > I'm trying to create an script to process all the NDR messages that we > receive in an Exchange mailbox, and I need to locate some text strings > inside > the message body. > > So I have a text string with the hole message body (and multiple lines) > and > I want to "cut" a string from one specific word to the end of that line. > I've > tried to locate the line end with InStr and every option I've found on the > internet... Chr(10), Chr(13), vbCrLf, vbCr, "\n"... and everyone of them > with > both text and binnary comparisons... and no luck !!! ![]() > > Any suggestions?? Please?? ![]() |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Problem with VBScript, Outlook and line jumps Il giorno Mon, 20 Apr 2009 06:04:01 -0700, =?Utf-8?B?QmVybmFyZG8gQWNoaXJpY2E=?= <Bernardo Achirica@xxxxxx> ha scritto: Quote: >I'm trying to create an script to process all the NDR messages that we >receive in an Exchange mailbox, and I need to locate some text strings inside >the message body. > >So I have a text string with the hole message body (and multiple lines) and >I want to "cut" a string from one specific word to the end of that line. I've >tried to locate the line end with InStr and every option I've found on the >internet... Chr(10), Chr(13), vbCrLf, vbCr, "\n"... and everyone of them with >both text and binnary comparisons... and no luck !!! ![]() You obtain a zero-base array in which to search the strings with instr. then cut the string from instr(myarray(i)) to len(myarray(i)) using mid( ) -- Giovanni Cenati (Bergamo, Italy) Write to "Reventlov" at katamail com http://digilander.libero.it/Cenati (Esempi e programmi in VbScript) -- |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| How to edit the description of shares using command-line or vbscript? | VB Script | |||
| Output XML to Single Line Log File using VBScript | VB Script | |||
| Returning a line from an input file using vbscript | VB Script | |||
| How to debug a vbscript/ show each line BEFORE execution and with var values? | VB Script | |||
| vbscript with outlook pst | VB Script | |||