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
#37581 - 10/24/11 06:20 AM Tab in a variable?
JT Offline
OL User

Registered: 01/30/08
Posts: 52
For example, in a layout I have;
Code:
@faxnumber@[tab]@mobilenumber@


and the variable for faxnumber;

Code:
IF([Fax]="","",[Fax]&" fax")


which removes the fax text if no fax number is present, but the problem is the tab space entered on the layout remains.
Is it possible to insert the tab as part of the IF variable?

Thanks.

Top
#37587 - 10/24/11 02:23 PM Re: Tab in a variable? [Re: JT]
Sander vd Berg Offline
OL Expert

Registered: 06/10/08
Posts: 207
Loc: Objectif Lune NL
Sure, in the expression editor you can use Ctrl+Tab to insert a tab character.

An alternative would be to append CHR(9).

Top
#37591 - 10/25/11 03:42 AM Re: Tab in a variable? [Re: Sander vd Berg]
JT Offline
OL User

Registered: 01/30/08
Posts: 52
Great! I love simple solutions. wink

Thanks.


Edited by JT (10/25/11 03:42 AM)

Top