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
#33866 - 11/09/10 10:14 AM MetaData formatting Question
A.J. Rosner Offline
OL Newbie

Registered: 11/09/10
Posts: 2
I'm kinda new to PP Design, but I have created a metadata field from a flat file which has a currency field that has leading "0". It is a 8 digit field, last two being the decimal(cents) of the field. How do I format the MetaData I'm pulling in to suppress leading "0"'s?

Thanks,
A.j.


Edited by A.J. Rosner (11/09/10 10:15 AM)

Top
#33880 - 11/10/10 10:00 AM Re: MetaData formatting Question [Re: A.J. Rosner]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
AJ,

Maybe you can try converting the amount to a currency, and then back to a string.

For example, in the value of your metadata field, you could use:

curtostr(strtocur(@(1,1,10)))

The @(1,1,10) is a sample data selection, use your own data selection.

Here, we first convert the amount to an actual currency variable. By doing this, it should take care of the leading zeroes. Of course, we need to convert it back to a string, so we use curtostr to put it back to string. However, the zeroes will have been removed.

Hope that helps!

Regards,
Raphaël Lalonde Lefebvre

Top
#33894 - 11/10/10 02:58 PM Re: MetaData formatting Question [Re: Raphael Lalonde Lefebvre]
A.J. Rosner Offline
OL Newbie

Registered: 11/09/10
Posts: 2
smile Thank you soooo much. Worked like a charm..

a.j.

Top