Wednesday, July 7, 2010

Re: Trouble with long text strings...

0 comments
Hi All -

From Crestron's Simpl+ help file...

NOTE: The maximum string length for a STRING_OUTPUT is 255
characters. Assigning a string with a length of more than 255 will
result in a loss of data.

OK BUT...

Is there a way to send string chunks from Crestron to iPad iViewer and
display more than 255 characters?

Somethink like Autonomic Controls is doing with their xPanel demo;
displaying paragraph style DVD sysnopsis text.

Also like Fiasco is doing with XBMC.

TIA - Brad

> AUTONOMIC CONTROLS RESPONSE AND CODE
> =====================================
>
> Brad,
> Since Crestron panels can only receive 255 characters of text at a
> time, this sequence is a concatenation command, telling the panel to
> add further text to the object, rather than replace it.  You should be
> able to edit the S+ module to eliminate this behaviour.
>
>                 case (property="Synopsis"):
>                 {
>
>                         if (len(value) > 600)
>                         {
>                                 value=left(value,600);
>                                 value = left(value,reversefind(".",value));
>                         }
>                         else
>                         {
>                                 print("Value Length = %i",len(value));
>                         }
>                         MediaInfo7$ = "";
>                         while (len(value) > 0)
>                         {
>                                 if (len(value)>100)
>                                 {
>                                         chunk = removebylength(100, value);
>                                 }
>                                 else
>                                 {
>                                         chunk = value;
>                                         value = "";
>                                 }
>
> //commented out by BN           MediaInfo7$ = "\xFE\x02" + chunk;
>                                 MediaInfo7$ = chunk;
>                         }
>                 }

--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to commandfusion@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.

Comments

0 comments to "Re: Trouble with long text strings..."

Post a Comment

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com