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
#20756 - 09/27/07 09:51 AM Data selection question
airwin Offline
Junior Member

Registered: 02/16/04
Posts: 27
Loc: Etobicoke
I am selecting a line of date and I need to display only up to a particular character

Sample:
POLYETHYLENE WHT 3.8M TC248 V156 1.5PET

I need to ignore everything after the "V".

Can I do this?
_________________________
Andrew

Top
#20757 - 09/28/07 09:55 AM Re: Data selection question
Anonymous
Unregistered


Hi there,

This can be accomplished by using the left function in a PPTalk object.

Quote:
define(&data,string,@(2,1,41))

%Define string

define(&x,integer, pos('V', &data))

%Find position of V

%Print the string up to the V character, if found

if(&x>1)

show(left(&data,&x))

endif()
Hope this helps,

Rina

Top
#20758 - 09/28/07 03:06 PM Re: Data selection question
airwin Offline
Junior Member

Registered: 02/16/04
Posts: 27
Loc: Etobicoke
Yes thank it is excatly what I needed.
_________________________
Andrew

Top


Moderator:  cosimo, OL Newsgroup Support