Dear Jan,
                Assuming you store your text string in a TEXT variable named 
vMyVar,
                SET VAR vMyText = (SGET(.vMyText,(SLEN(vMyText)) - 1,1))
                You may be able to save yourself a step, and avoid a cursor 
completely using LISTOF, but that depends on your data structure and what else 
you are using the cursor for.
                                                                Jason


Jason Kramer
University Archives and Records Management
002 Pearson Hall
(302) 831 - 3127 (voice)
(302) 831 - 6903 (fax)

From: [email protected] [mailto:[email protected]] On Behalf Of jan johansen
Sent: Thursday, June 25, 2015 4:23 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Last postion

Group,

I need to run a cursor to get a comma separated list of emails.
My solution ends up with a comma in the last position of the TEXT string.

How would you trim the last comma off?

Jan

Reply via email to