Thank you to all that helped on this!! Both of the statements
string(part.partdesc,"x(15)" and substring(part.partdesc,1,15) work to get
me what I needed in the e-mail.
Thanks again for the help!
Steve
-----Original Message-----
From: Carl Peterson [mailto:cpeterson@...]
Sent: November 19, 2008 4:52 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: E-mail alert with detail
Right and Left Trim Functions are based on a specific character like an * or
/ or | or whatever. It is not designed to parse a string based on a
specific number of characters like the Progress statement of substring. The
Progress string statement would work, too. String(part.partdesc,"x(15)")
From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
[mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com] On
Behalf Of
Norman Hutchins
Sent: Wednesday, November 19, 2008 5:15 PM
To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
Subject: [Vantage] Re: E-mail alert with detail
I'm not a progress programmer by any means. The .p program that I posted, I
created by taking a couple of example .p programs, edited and combined a
little. And some help from this group too.
I also bought a book, Progress OpenEdge Development: Progress 4GL Handbook
by John Sadd (ISBN 0-923562-04-4) which I see is available online
(http://www.psdn
<http://www.psdn.com/library/servlet/KbServlet/download/1142-102-953/dvhbk.p
In that book there are three trim functions: (pages 2-22 to 2-23)
Function: LEFT-TRIM
Arguments: string AS CHAR. trim-chars AS CHAR
Returned Value: CHARACTER - The input string with the trim-chars removed
from the beginning of the string. The trim-chars argument is optional and
defaults to all white space (spaces, tabs, carriage returns, and line
feeds).
Function: RIGHT-TRIM
Arguments: string AS CHAR. trim-chars AS CHAR
Returned Value: CHARACTER - The input string with the trim-chars removed
from the end of the string. The trim-chars argument is optional and
defaults to all white space.
Function: TRIM
Arguments: string AS CHAR. trim-chars AS CHAR
Returned Value: CHARACTER - The input string with the trim-chars removed
from both the beginning and the end of the string. The trim-chars argument
is optional and defaults to all white space.
Hope this helps, maybe someone else out there will be able to give you an
example of the syntax.
Norman Hutchins
Network Administrator
Howell Laboratories, Inc.
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
string(part.partdesc,"x(15)" and substring(part.partdesc,1,15) work to get
me what I needed in the e-mail.
Thanks again for the help!
Steve
-----Original Message-----
From: Carl Peterson [mailto:cpeterson@...]
Sent: November 19, 2008 4:52 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: E-mail alert with detail
Right and Left Trim Functions are based on a specific character like an * or
/ or | or whatever. It is not designed to parse a string based on a
specific number of characters like the Progress statement of substring. The
Progress string statement would work, too. String(part.partdesc,"x(15)")
From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
[mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com] On
Behalf Of
Norman Hutchins
Sent: Wednesday, November 19, 2008 5:15 PM
To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
Subject: [Vantage] Re: E-mail alert with detail
I'm not a progress programmer by any means. The .p program that I posted, I
created by taking a couple of example .p programs, edited and combined a
little. And some help from this group too.
I also bought a book, Progress OpenEdge Development: Progress 4GL Handbook
by John Sadd (ISBN 0-923562-04-4) which I see is available online
(http://www.psdn
<http://www.psdn.com/library/servlet/KbServlet/download/1142-102-953/dvhbk.p
> com/library/servlet/KbServlet/download/1142-102-953/dvhbk.pdf)
In that book there are three trim functions: (pages 2-22 to 2-23)
Function: LEFT-TRIM
Arguments: string AS CHAR. trim-chars AS CHAR
Returned Value: CHARACTER - The input string with the trim-chars removed
from the beginning of the string. The trim-chars argument is optional and
defaults to all white space (spaces, tabs, carriage returns, and line
feeds).
Function: RIGHT-TRIM
Arguments: string AS CHAR. trim-chars AS CHAR
Returned Value: CHARACTER - The input string with the trim-chars removed
from the end of the string. The trim-chars argument is optional and
defaults to all white space.
Function: TRIM
Arguments: string AS CHAR. trim-chars AS CHAR
Returned Value: CHARACTER - The input string with the trim-chars removed
from both the beginning and the end of the string. The trim-chars argument
is optional and defaults to all white space.
Hope this helps, maybe someone else out there will be able to give you an
example of the syntax.
Norman Hutchins
Network Administrator
Howell Laboratories, Inc.
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]