PDA

View Full Version : Does a String Have a Handle?



pm3bob
1-Feb-2005, 06:33 AM
I need to process a rather large text string (up to 500,000 bytes) and I
would like to do this with more than one function. This string consists of
a number of segments, each separated from the next by a "~" (tilde) rather
than a CR/LF. I have no trouble parsing it and extracting the segments, but
I would like different functions look at it to find specific data.

I guess I could pass the string as a parameter, but is that the best way to
do this? I'm wondering if I could capture the string's "handle" and pass
and use that. Or does it not matter?

LasseJ
1-Feb-2005, 01:29 PM
Bob,

You could try to pass the string BYREF.

/Lars J

"Bob Stearns" <rstearns@lowcountrybilling.com> skrev i meddelandet
news:FvxE5FFCFHA.4336@dacmail.dataaccess.com...
> I need to process a rather large text string (up to 500,000 bytes) and I
> would like to do this with more than one function. This string consists
of
> a number of segments, each separated from the next by a "~" (tilde) rather
> than a CR/LF. I have no trouble parsing it and extracting the segments,
but
> I would like different functions look at it to find specific data.
>
> I guess I could pass the string as a parameter, but is that the best way
to
> do this? I'm wondering if I could capture the string's "handle" and pass
> and use that. Or does it not matter?
>
>

pm3bob
1-Feb-2005, 01:42 PM
That's what I'm doing ... I was just wondering if it was the right thing to
do, or maybe was going to rise up and bite me later.

"Lars Jarnhäll" <LasseJ@oasystem.se> wrote in message
news:Wfgv8vICFHA.4336@dacmail.dataaccess.com...
> Bob,
>
> You could try to pass the string BYREF.
>
> /Lars J
>
> "Bob Stearns" <rstearns@lowcountrybilling.com> skrev i meddelandet
> news:FvxE5FFCFHA.4336@dacmail.dataaccess.com...
> > I need to process a rather large text string (up to 500,000 bytes) and I
> > would like to do this with more than one function. This string consists
> of
> > a number of segments, each separated from the next by a "~" (tilde)
rather
> > than a CR/LF. I have no trouble parsing it and extracting the segments,
> but
> > I would like different functions look at it to find specific data.
> >
> > I guess I could pass the string as a parameter, but is that the best way
> to
> > do this? I'm wondering if I could capture the string's "handle" and
pass
> > and use that. Or does it not matter?
> >
> >
>
>

Garret Mott
1-Feb-2005, 05:40 PM
"or maybe was going to rise up and bite me later."

Byte you, maybe....

Sorry, had to do it.

Garret

"Bob Stearns" <rstearns@lowcountrybilling.com> wrote in message
news:HvzRs1ICFHA.4336@dacmail.dataaccess.com...
> That's what I'm doing ... I was just wondering if it was the right thing
> to
> do, or maybe was going to rise up and bite me later.
>
> "Lars Jarnhäll" <LasseJ@oasystem.se> wrote in message
> news:Wfgv8vICFHA.4336@dacmail.dataaccess.com...
>> Bob,
>>
>> You could try to pass the string BYREF.
>>
>> /Lars J
>>
>> "Bob Stearns" <rstearns@lowcountrybilling.com> skrev i meddelandet
>> news:FvxE5FFCFHA.4336@dacmail.dataaccess.com...
>> > I need to process a rather large text string (up to 500,000 bytes) and
>> > I
>> > would like to do this with more than one function. This string
>> > consists
>> of
>> > a number of segments, each separated from the next by a "~" (tilde)
> rather
>> > than a CR/LF. I have no trouble parsing it and extracting the
>> > segments,
>> but
>> > I would like different functions look at it to find specific data.
>> >
>> > I guess I could pass the string as a parameter, but is that the best
>> > way
>> to
>> > do this? I'm wondering if I could capture the string's "handle" and
> pass
>> > and use that. Or does it not matter?
>> >
>> >
>>
>>
>
>

Mike Klujeske
2-Feb-2005, 03:33 PM
vBob
You wouldn't happen to be attempting to work on a HIPAA X12 file would you?
If you are I have developed some nifty items to read these.
"Bob Stearns" <rstearns@lowcountrybilling.com> wrote in message
news:FvxE5FFCFHA.4336@dacmail.dataaccess.com...
> I need to process a rather large text string (up to 500,000 bytes) and I
> would like to do this with more than one function. This string consists
of
> a number of segments, each separated from the next by a "~" (tilde) rather
> than a CR/LF. I have no trouble parsing it and extracting the segments,
but
> I would like different functions look at it to find specific data.
>
> I guess I could pass the string as a parameter, but is that the best way
to
> do this? I'm wondering if I could capture the string's "handle" and pass
> and use that. Or does it not matter?
>
>