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
#55259 - 09/06/17 12:29 PM Re: Removing Some Line Data via Talk [Re: Gina Godbey]
Gina Godbey Offline
OL User

Registered: 08/16/06
Posts: 93
Loc: Hickory, NC USA
When there are asterisks on a line, I only want to show that line from column 86 to 106. When there are no asterisks on a line, I want to show whatever else/data is there.

Top
#55260 - 09/06/17 12:34 PM Re: Removing Some Line Data via Talk [Re: Gina Godbey]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
%%Something like that

define(&dataToShow,string,'')
define(&i,integer,0)
define(&nbLine,integer,66)

for(&i,1,1,&nbLine)
if(@(&i,86,90) = '*****')
&dataToShow := @(&i,86,106)
else()
&dataToShow := @(&i,1,132)
endif()
show(&dataToShow)
crlf()
endfor()
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
Page 2 of 2 < 1 2