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
#19934 - 08/24/06 09:07 AM crlf in a sring variable
Simon Vankrunkelsven Offline
Junior Member

Registered: 06/22/06
Posts: 8
Loc: Belgium
Hello,

We would like to put text in a string variable with Planet Press talk, with crlf caracters in the string.

Is this possible, and how?

thanks for your help!

Simon

Top
#19935 - 08/24/06 11:38 AM Re: crlf in a sring variable
Anonymous
Unregistered


Hi Simon,

yes indeed, there's a tricky way to put text in a string variable with PPT with crlf caracters in a string.

Here's an example:
Quote:
define(&string1,string,' ')
&string1:= 'Hello'+'\015'+'\012'+'there'+'\015'+'\012'+'Simon!'
search(&string1,'\015\012')
show(&string1)
crlf
endsearch
show(&string1)
When you define your string, you do a search function to search for a LF(012) and a CR(015) . This will allow you to show your string, make a CRLF and show the next line in the string.

Top
#19936 - 08/28/06 02:51 AM Re: crlf in a sring variable
Simon Vankrunkelsven Offline
Junior Member

Registered: 06/22/06
Posts: 8
Loc: Belgium
Thanks for your help!

Simon

Top


Moderator:  cosimo, OL Newsgroup Support