[Stackoverflow] [Progress OpenEdge ABL] How to get the last comma separated data stored in a variable? - Progress 4gl

Status
Not open for further replies.
B

Bharat

Guest
I am new to progress 4gl but don't know how to write a logic to get the last value after the last comma and last before value using comma separator. Please help

Code:
define variable cdata as character no-undo initial "1,14,13,45".
define variable lvc_data1 as character no-undo.
define variable lvc_data2 as character no-undo.

Expected Results to be assigned (using only separator):

lvc_data1 = "45"

lvc_data2 = "1,14,13"

Continue reading...
 
Status
Not open for further replies.
Top