View Single Post
  #4  
Old 09-07-2007, 10:37 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,049
Quote:
Originally posted by jeffnc
What step type would I create to put your code in?
It depends on what you want to do with the parsed value. You might just use the expression inline in the field(s) that need it. Or you could assign it to a macro (via a Set Macro step or by using the expression as the value of a macro) and use the macro as needed.

Quote:
For parsing, it looks like it can be this simple.

blah blah blah 1.2.3.4

I want 1.2.3.4, so it could be as simple as getting the last "token", or whatever comes after the last space.
[Mid("%PROJDIR%", InStrRev("%PROJDIR%", " ")+1)]
Reply With Quote