From: Alex H. <al...@9p...> - 2003-08-11 21:34:36
|
I have been doing something like this to get the count of a repetitive segment.. int count = msg.currentReps("DG1"); I'd like to know too however if this is the best way to do this. -----Original Message----- From: hl7...@li... [mailto:hl7...@li...]On Behalf Of Phillip Tornroth Sent: Monday, August 11, 2003 3:30 PM To: hl7...@li... Subject: [HAPI-devel] message segment counts I'm pretty new to hapi, and I'm having trouble figuring out this construct.. I have an object of type RDE_O11_ORCRXONTERXRRXCNTERXERXRRXCOBXNTECTI... crazy. Anyways, I can make calls like getRXE() and getORC(), but I don't know how to deal with multiplicity. There are two RXC calls. One that takes an int index, and one that does not. The one that takes an index seems like what I want, but what's my mechanism for iterating them? Is there a count/length/size somewhere, or am I expected to call the method starting at index = 0 until I get a null or exception? thanks, -Phill ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |