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)

Topic Options
#21116 - 03/12/09 01:52 PM User Defined Emulation
aoneil Offline
OL Guru

Registered: 08/11/06
Posts: 108
I used this emulation on a previous job. It will not work correctly on this new job because two of the fields in the file could have a possible length of 2000. Does anyone have any ideas of how I could achieve this by modifying the below code?

Thank you for your help. Everything I try doesn't seem to work correctly.


if(mid(&str,1,3)<>&CurrentDealer)
doform()
clearpage()
set(&CurrentDealer,mid(&str,1,3))
endif()
search(&str,'|')
set(&sTempLine,&sTempLine+left(&str+' ',50))
endsearch()
set(&sTempLine,&sTempLine+left(&str+' ',50))
set(¤t.line,¤t.line + 1)
store(¤t.line,&sTempLine)
set(&sTempLine,'')
if(ge(¤t.line,¤t.lpp))
doform()
clearpage()
endif()

Top
#21117 - 03/12/09 02:00 PM Re: User Defined Emulation
Anonymous
Unregistered


Hi:

The line length must be modified in the document properties:

Click on Format, Document, then select Compilation options and set the maximum data line length to 3000.

Hope this helps,

Top
#21118 - 03/12/09 02:06 PM Re: User Defined Emulation
aoneil Offline
OL Guru

Registered: 08/11/06
Posts: 108
Ha! Worked like a charm. :p

Thank you!!!

Top


Moderator:  cosimo, OL Newsgroup Support