IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Page 2 of 2 < 1 2
Topic Options
#52036 - 07/10/15 08:20 AM Re: Need help to remove one line in Data Selection [Re: GBowlsby]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
Well then I would guess that the string is found on a line that starts with a '1', which is handled by the previous check in the condition. Reverse those checks to look for the 'Find Me' string first, like so:

Code:
if(pos(&str,'Find Me')>0)
  set(&current.line,&current.line + 1)
  store(&current.line,'')
elseif(eq(left(&str,1),'1'))
  set(&current.line,&current.line + 1)
  store(&current.line,right(&str,length(&str)-1))
else()
  set(&current.line,&current.line + 1)
  store(&current.line,&str)
endif()

if(eq(left(&str,1),'1'))
  doform()
  clearpage()
endif()
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#52045 - 07/10/15 04:29 PM Re: Need help to remove one line in Data Selection [Re: GBowlsby]
GBowlsby Offline
OL Expert

Registered: 08/07/14
Posts: 167
Loc: Tallahassee FL
Still shows up on last page. The string I am trying to find is '1*****D98 END OF SPOOL' %This is in the data

The 1 is on the left and should be it's own page then would be ignored by my conditions.

However in the Sample Data view it only shows *****D98 END OF SPOOL

On the printed letter it shows ***D98 END OF SPOOL

Top
Page 2 of 2 < 1 2