Announcement

Collapse
No announcement yet.

How to enumerate segments?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to enumerate segments?

    Hi everybody. Does anyone knows how to enumerate segments? I want to parse X-12 message with structure like this:
    CLP***
    SVC**
    SVC**
    CLP***
    SVC**


    In that sample SVC[0] and SVC[1] related with CLP[0] and SVC[2] with CLP[1]. If I use msg..CLP and msg..SVC - sure I lose structure and relations between them. I see just one way - it's going segment by segment and for each SVC bind it with last CLP, but I do not see any function to enumerate msg. What type msg has?
    For example, this code doesn't work:
    Code:
    for(segment in msg){}
    Can anybody knows how to solve this problem?

    Post edited by: vovchic, at: 05/16/2008 20:01

    Post edited by: vovchic, at: 05/16/2008 20:02
Working...
X