View previous topic :: View next topic |
Author |
Message |
arvibala Beginner
Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Wed Oct 21, 2009 1:36 pm Post subject: Unstring option in Easytrieve |
|
|
Hi,
Is there any function similar to Cobol Unstring, in Easytrieve?
I have a record
12345;Arvind;arv.vind@mail.com;develop
I want to unstring these and place the Name, Mail id in their respective fields.
Thanks _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
arvibala Beginner
Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Thu Oct 22, 2009 10:48 am Post subject: |
|
|
Thanks Kolusu,
Did the same using Do Until and having counters to read the delimited ";" for name and email address.
I started the Index variable from 0 and it gave correct results. Your example starts index variable with 1. Do u see any prob with mine?
Im not posting the code as it is much similar to ur examples.
Thanks, _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Thu Oct 22, 2009 5:04 pm Post subject: |
|
|
arvibala,
If you used index then start of value of 0 or 1 does not make a difference. but with a subscript it would be an error.
Kolusu |
|
Back to top |
|
|
|
|