Are you gathering the string to <lf> before you pass it to the
substrings?
I am issuing the advnetstats command to the polycom hdx and it
returns:
call:1 tar:24k rar:24k tvr:64.3k rvr:104k
tvru:63.8k rvru:114.6k tvfr:15.0 rvfr:15.0 vfe ---
tapl:66 rapl:0 taj:46mS raj:40mS tvpl:122 rvpl:0
tvj:21mS rvj:60mS dc:--- rsid:Polycom_4.2
at the end of each line is a <cr><lf>. right now i am just creating
a
test program using a serial send to simulate the command return i
then am using a substring to get the individual parameters i need.
When i try to grab a substring at a position after the end of the
first line i get an empty string.
--- In Crestron@..., Heath Volmer <hvolmer@> wrote:
You shouldn't be getting hung up on the CRLFs, depending on what
you're using to extract the strings. Can you provide more
details
about how your pulling out the strings?
Heath
On Jan 24, 2009, at 8:07 AM, lcochbdr wrote:
I have a string comming from a polycom hdx that is 4 lines of
text
seperated by <cr><lf>'s i am trying to pull sub strings from
it
however
i cannot get any from past the first <cr>. is there a way to
remove
the
<cr><lf>'s, or to read get to the parts of the strings past
them?
Thanks
Laurence
------------------------------------
Check out the Files area for useful modules, documents, and
drivers.
A contact list of Crestron dealers and programmers can be found
in
the Database area.
Yahoo
! Groups Links