Re: String length in ICE... How?

2013-05-14 Thread Amaan Akram
Nice one Andy!
On 14 May 2013 09:03, "Dan Yargici"  wrote:

> That's a great trick, thanks Andy!
>
> Hope you're well mate, haven't seen you round these parts much lately...
>
> DAN
>
>
> On Mon, May 13, 2013 at 8:13 PM, Andy Nicholas wrote:
>
>>  You can do it without a loop, but you have to specify a character that
>> you know
>> will never be in the string whose length you're testing.
>>
>> See attached image. Pretty sure it works for all cases.
>>
>> A
>>
>>
>>
>> On 13 May 2013 at 16:39 Alan Fregtman  wrote:
>>
>>
>> > For what it's worth, I tried it in 2013 and worked for me.
>> >
>> >
>>
>
>


Re: String length in ICE... How?

2013-05-14 Thread Dan Yargici
That's a great trick, thanks Andy!

Hope you're well mate, haven't seen you round these parts much lately...

DAN


On Mon, May 13, 2013 at 8:13 PM, Andy Nicholas wrote:

>  You can do it without a loop, but you have to specify a character that
> you know
> will never be in the string whose length you're testing.
>
> See attached image. Pretty sure it works for all cases.
>
> A
>
>
>
> On 13 May 2013 at 16:39 Alan Fregtman  wrote:
>
>
> > For what it's worth, I tried it in 2013 and worked for me.
> >
> >
>


Re: String length in ICE... How?

2013-05-13 Thread Raffaele Fragapane
Clever.
Not that I've needed strings for much insofar, but I hadn't thought of that
approach.

Thanks Andy


On Tue, May 14, 2013 at 3:13 AM, Andy Nicholas wrote:

>  You can do it without a loop, but you have to specify a character that
> you know
> will never be in the string whose length you're testing.
>
> See attached image. Pretty sure it works for all cases.
>
> A
>
>
>


Re: String length in ICE... How?

2013-05-13 Thread Vladimir Jankijevic
that's very neat a nice one andy!

thanks for sharing


On Mon, May 13, 2013 at 7:13 PM, Andy Nicholas wrote:

>  You can do it without a loop, but you have to specify a character that
> you know
> will never be in the string whose length you're testing.
>
> See attached image. Pretty sure it works for all cases.
>
> A
>
>
>
> On 13 May 2013 at 16:39 Alan Fregtman  wrote:
>
>
> > For what it's worth, I tried it in 2013 and worked for me.
> >
> >
>



-- 
---
Vladimir Jankijevic
Technical Direction

Elefant Studios AG
Lessingstrasse 15
CH-8002 Zürich

+41 44 500 48 20

www.elefantstudios.ch
---


Re: String length in ICE... How?

2013-05-13 Thread Dan Yargici
Yeah, that works, thanks.  It was probably the 'Embed Internal Compounds'
checkbox.



On Mon, May 13, 2013 at 6:12 PM, Vladimir Jankijevic <
vladi...@elefantstudios.ch> wrote:

> hmm, strange. here it is again, sorry
>
>
> On Mon, May 13, 2013 at 5:02 PM, Dan Yargici  wrote:
>
>> Thanks Vladimir, but I think that compound's missing some nodes...
>>
>> DAN
>>
>>
>> On Mon, May 13, 2013 at 5:48 PM, Vladimir Jankijevic <
>> vladi...@elefantstudios.ch> wrote:
>>
>>> oh, I thought you mean the length of a comma separated string. sorry for
>>> that.
>>>
>>> attached is a compound to get the length of any arbitrary string into a
>>> custom attribute.
>>>
>>> cheers
>>> vlad
>>>
>>>
>>> On Mon, May 13, 2013 at 4:17 PM, Dan Yargici wrote:
>>>
 Nope, doesn't work for me.

 string("test") -> String to Array -> Get Array Size -> Set
 Data(this.Debug)

 The output of the 'String to Array' is black and the 'Get Array Size'
 is red.

 2012 SP1



 On Mon, May 13, 2013 at 5:07 PM, Vladimir Jankijevic <
 vladi...@elefantstudios.ch> wrote:

> string to array -> get array size ?
>
> :P
>
>
> On Mon, May 13, 2013 at 4:02 PM, Dan Yargici wrote:
>
>> Digging up a reeeally old thread...
>>
>> Care to share?  Coz it's eluding me... :)
>>
>> Thanks,
>>
>> DAN
>>
>>
>> On Thu, May 6, 2010 at 12:43 AM, Malcolm Zaloon 
>> wrote:
>>
>>> Oh... i found a way just 10 seconds after send the e-mail...
>>>
>>>
>>> ;)
>>>
>>>
>>> On Wed, May 5, 2010 at 6:42 PM, Malcolm Zaloon 
>>> wrote:
>>>
 Hi.

 How can i get string length? Is it possible?

 thanks.



 --
 __
 Malcolm Zaloon - Lighting TD - XSI Generalist
 Quote:
 "Everything can be interconnected and will update according by
 interface"

>>>
>>>
>>>
>>> --
>>> __
>>> Malcolm Zaloon - Lighting TD - XSI Generalist
>>> Quote:
>>> "Everything can be interconnected and will update according by
>>> interface"
>>>
>>
>>
>
>
> --
> ---
> Vladimir Jankijevic
> Technical Direction
>
> Elefant Studios AG
> Lessingstrasse 15
> CH-8002 Zürich
>
> +41 44 500 48 20
>
> www.elefantstudios.ch
> ---
>


>>>
>>>
>>> --
>>> ---
>>> Vladimir Jankijevic
>>> Technical Direction
>>>
>>> Elefant Studios AG
>>> Lessingstrasse 15
>>> CH-8002 Zürich
>>>
>>> +41 44 500 48 20
>>>
>>> www.elefantstudios.ch
>>> ---
>>>
>>
>>
>
>
> --
> ---
> Vladimir Jankijevic
> Technical Direction
>
> Elefant Studios AG
> Lessingstrasse 15
> CH-8002 Zürich
>
> +41 44 500 48 20
>
> www.elefantstudios.ch
> ---
>


Re: String length in ICE... How?

2013-05-13 Thread Vladimir Jankijevic
hmm, strange. here it is again, sorry


On Mon, May 13, 2013 at 5:02 PM, Dan Yargici  wrote:

> Thanks Vladimir, but I think that compound's missing some nodes...
>
> DAN
>
>
> On Mon, May 13, 2013 at 5:48 PM, Vladimir Jankijevic <
> vladi...@elefantstudios.ch> wrote:
>
>> oh, I thought you mean the length of a comma separated string. sorry for
>> that.
>>
>> attached is a compound to get the length of any arbitrary string into a
>> custom attribute.
>>
>> cheers
>> vlad
>>
>>
>> On Mon, May 13, 2013 at 4:17 PM, Dan Yargici wrote:
>>
>>> Nope, doesn't work for me.
>>>
>>> string("test") -> String to Array -> Get Array Size -> Set
>>> Data(this.Debug)
>>>
>>> The output of the 'String to Array' is black and the 'Get Array Size' is
>>> red.
>>>
>>> 2012 SP1
>>>
>>>
>>>
>>> On Mon, May 13, 2013 at 5:07 PM, Vladimir Jankijevic <
>>> vladi...@elefantstudios.ch> wrote:
>>>
 string to array -> get array size ?

 :P


 On Mon, May 13, 2013 at 4:02 PM, Dan Yargici wrote:

> Digging up a reeeally old thread...
>
> Care to share?  Coz it's eluding me... :)
>
> Thanks,
>
> DAN
>
>
> On Thu, May 6, 2010 at 12:43 AM, Malcolm Zaloon wrote:
>
>> Oh... i found a way just 10 seconds after send the e-mail...
>>
>>
>> ;)
>>
>>
>> On Wed, May 5, 2010 at 6:42 PM, Malcolm Zaloon wrote:
>>
>>> Hi.
>>>
>>> How can i get string length? Is it possible?
>>>
>>> thanks.
>>>
>>>
>>>
>>> --
>>> __
>>> Malcolm Zaloon - Lighting TD - XSI Generalist
>>> Quote:
>>> "Everything can be interconnected and will update according by
>>> interface"
>>>
>>
>>
>>
>> --
>> __
>> Malcolm Zaloon - Lighting TD - XSI Generalist
>> Quote:
>> "Everything can be interconnected and will update according by
>> interface"
>>
>
>


 --
 ---
 Vladimir Jankijevic
 Technical Direction

 Elefant Studios AG
 Lessingstrasse 15
 CH-8002 Zürich

 +41 44 500 48 20

 www.elefantstudios.ch
 ---

>>>
>>>
>>
>>
>> --
>> ---
>> Vladimir Jankijevic
>> Technical Direction
>>
>> Elefant Studios AG
>> Lessingstrasse 15
>> CH-8002 Zürich
>>
>> +41 44 500 48 20
>>
>> www.elefantstudios.ch
>> ---
>>
>
>


-- 
---
Vladimir Jankijevic
Technical Direction

Elefant Studios AG
Lessingstrasse 15
CH-8002 Zürich

+41 44 500 48 20

www.elefantstudios.ch
---


JV_StringLenght.xsicompound
Description: Binary data


Re: String length in ICE... How?

2013-05-13 Thread Dan Yargici
Thanks Vladimir, but I think that compound's missing some nodes...

DAN


On Mon, May 13, 2013 at 5:48 PM, Vladimir Jankijevic <
vladi...@elefantstudios.ch> wrote:

> oh, I thought you mean the length of a comma separated string. sorry for
> that.
>
> attached is a compound to get the length of any arbitrary string into a
> custom attribute.
>
> cheers
> vlad
>
>
> On Mon, May 13, 2013 at 4:17 PM, Dan Yargici  wrote:
>
>> Nope, doesn't work for me.
>>
>> string("test") -> String to Array -> Get Array Size -> Set
>> Data(this.Debug)
>>
>> The output of the 'String to Array' is black and the 'Get Array Size' is
>> red.
>>
>> 2012 SP1
>>
>>
>>
>> On Mon, May 13, 2013 at 5:07 PM, Vladimir Jankijevic <
>> vladi...@elefantstudios.ch> wrote:
>>
>>> string to array -> get array size ?
>>>
>>> :P
>>>
>>>
>>> On Mon, May 13, 2013 at 4:02 PM, Dan Yargici wrote:
>>>
 Digging up a reeeally old thread...

 Care to share?  Coz it's eluding me... :)

 Thanks,

 DAN


 On Thu, May 6, 2010 at 12:43 AM, Malcolm Zaloon wrote:

> Oh... i found a way just 10 seconds after send the e-mail...
>
>
> ;)
>
>
> On Wed, May 5, 2010 at 6:42 PM, Malcolm Zaloon wrote:
>
>> Hi.
>>
>> How can i get string length? Is it possible?
>>
>> thanks.
>>
>>
>>
>> --
>> __
>> Malcolm Zaloon - Lighting TD - XSI Generalist
>> Quote:
>> "Everything can be interconnected and will update according by
>> interface"
>>
>
>
>
> --
> __
> Malcolm Zaloon - Lighting TD - XSI Generalist
> Quote:
> "Everything can be interconnected and will update according by
> interface"
>


>>>
>>>
>>> --
>>> ---
>>> Vladimir Jankijevic
>>> Technical Direction
>>>
>>> Elefant Studios AG
>>> Lessingstrasse 15
>>> CH-8002 Zürich
>>>
>>> +41 44 500 48 20
>>>
>>> www.elefantstudios.ch
>>> ---
>>>
>>
>>
>
>
> --
> ---
> Vladimir Jankijevic
> Technical Direction
>
> Elefant Studios AG
> Lessingstrasse 15
> CH-8002 Zürich
>
> +41 44 500 48 20
>
> www.elefantstudios.ch
> ---
>


Re: String length in ICE... How?

2013-05-13 Thread Vladimir Jankijevic
oh, I thought you mean the length of a comma separated string. sorry for
that.

attached is a compound to get the length of any arbitrary string into a
custom attribute.

cheers
vlad


On Mon, May 13, 2013 at 4:17 PM, Dan Yargici  wrote:

> Nope, doesn't work for me.
>
> string("test") -> String to Array -> Get Array Size -> Set Data(this.Debug)
>
> The output of the 'String to Array' is black and the 'Get Array Size' is
> red.
>
> 2012 SP1
>
>
>
> On Mon, May 13, 2013 at 5:07 PM, Vladimir Jankijevic <
> vladi...@elefantstudios.ch> wrote:
>
>> string to array -> get array size ?
>>
>> :P
>>
>>
>> On Mon, May 13, 2013 at 4:02 PM, Dan Yargici wrote:
>>
>>> Digging up a reeeally old thread...
>>>
>>> Care to share?  Coz it's eluding me... :)
>>>
>>> Thanks,
>>>
>>> DAN
>>>
>>>
>>> On Thu, May 6, 2010 at 12:43 AM, Malcolm Zaloon wrote:
>>>
 Oh... i found a way just 10 seconds after send the e-mail...


 ;)


 On Wed, May 5, 2010 at 6:42 PM, Malcolm Zaloon wrote:

> Hi.
>
> How can i get string length? Is it possible?
>
> thanks.
>
>
>
> --
> __
> Malcolm Zaloon - Lighting TD - XSI Generalist
> Quote:
> "Everything can be interconnected and will update according by
> interface"
>



 --
 __
 Malcolm Zaloon - Lighting TD - XSI Generalist
 Quote:
 "Everything can be interconnected and will update according by
 interface"

>>>
>>>
>>
>>
>> --
>> ---
>> Vladimir Jankijevic
>> Technical Direction
>>
>> Elefant Studios AG
>> Lessingstrasse 15
>> CH-8002 Zürich
>>
>> +41 44 500 48 20
>>
>> www.elefantstudios.ch
>> ---
>>
>
>


-- 
---
Vladimir Jankijevic
Technical Direction

Elefant Studios AG
Lessingstrasse 15
CH-8002 Zürich

+41 44 500 48 20

www.elefantstudios.ch
---


JV_StringLenght.xsicompound
Description: Binary data


Re: String length in ICE... How?

2013-05-13 Thread Dan Yargici
Nope, doesn't work for me.

string("test") -> String to Array -> Get Array Size -> Set Data(this.Debug)

The output of the 'String to Array' is black and the 'Get Array Size' is
red.

2012 SP1



On Mon, May 13, 2013 at 5:07 PM, Vladimir Jankijevic <
vladi...@elefantstudios.ch> wrote:

> string to array -> get array size ?
>
> :P
>
>
> On Mon, May 13, 2013 at 4:02 PM, Dan Yargici  wrote:
>
>> Digging up a reeeally old thread...
>>
>> Care to share?  Coz it's eluding me... :)
>>
>> Thanks,
>>
>> DAN
>>
>>
>> On Thu, May 6, 2010 at 12:43 AM, Malcolm Zaloon wrote:
>>
>>> Oh... i found a way just 10 seconds after send the e-mail...
>>>
>>>
>>> ;)
>>>
>>>
>>> On Wed, May 5, 2010 at 6:42 PM, Malcolm Zaloon wrote:
>>>
 Hi.

 How can i get string length? Is it possible?

 thanks.



 --
 __
 Malcolm Zaloon - Lighting TD - XSI Generalist
 Quote:
 "Everything can be interconnected and will update according by
 interface"

>>>
>>>
>>>
>>> --
>>> __
>>> Malcolm Zaloon - Lighting TD - XSI Generalist
>>> Quote:
>>> "Everything can be interconnected and will update according by interface"
>>>
>>
>>
>
>
> --
> ---
> Vladimir Jankijevic
> Technical Direction
>
> Elefant Studios AG
> Lessingstrasse 15
> CH-8002 Zürich
>
> +41 44 500 48 20
>
> www.elefantstudios.ch
> ---
>


Re: String length in ICE... How?

2013-05-13 Thread Sebastian Kowalski
wait, does this work also when just using one string without a comma?
cause you get an array size of one with that..


Am 13.05.2013 um 16:07 schrieb Vladimir Jankijevic :

> string to array -> get array size ?
> 
> :P
> 
> 
> On Mon, May 13, 2013 at 4:02 PM, Dan Yargici  wrote:
> Digging up a reeeally old thread...
> 
> Care to share?  Coz it's eluding me... :)
> 
> Thanks,
> 
> DAN
> 
> 
> On Thu, May 6, 2010 at 12:43 AM, Malcolm Zaloon  wrote:
> Oh... i found a way just 10 seconds after send the e-mail...
> 
> 
> ;)
> 
> 
> On Wed, May 5, 2010 at 6:42 PM, Malcolm Zaloon  wrote:
> Hi.
> 
> How can i get string length? Is it possible?
> 
> thanks.
> 
> 
> 
> -- 
> __
> Malcolm Zaloon - Lighting TD - XSI Generalist
> Quote:
> "Everything can be interconnected and will update according by interface"
> 
> 
> 
> -- 
> __
> Malcolm Zaloon - Lighting TD - XSI Generalist
> Quote:
> "Everything can be interconnected and will update according by interface"
> 
> 
> 
> 
> -- 
> ---
> Vladimir Jankijevic
> Technical Direction
> 
> Elefant Studios AG
> Lessingstrasse 15
> CH-8002 Zürich
> 
> +41 44 500 48 20
> 
> www.elefantstudios.ch
> ---



Re: String length in ICE... How?

2013-05-13 Thread Dan Yargici
Digging up a reeeally old thread...

Care to share?  Coz it's eluding me... :)

Thanks,

DAN


On Thu, May 6, 2010 at 12:43 AM, Malcolm Zaloon  wrote:

> Oh... i found a way just 10 seconds after send the e-mail...
>
>
> ;)
>
>
> On Wed, May 5, 2010 at 6:42 PM, Malcolm Zaloon  wrote:
>
>> Hi.
>>
>> How can i get string length? Is it possible?
>>
>> thanks.
>>
>>
>>
>> --
>> __
>> Malcolm Zaloon - Lighting TD - XSI Generalist
>> Quote:
>> "Everything can be interconnected and will update according by interface"
>>
>
>
>
> --
> __
> Malcolm Zaloon - Lighting TD - XSI Generalist
> Quote:
> "Everything can be interconnected and will update according by interface"
>


Re: String length in ICE... How?

2013-05-13 Thread Vladimir Jankijevic
string to array -> get array size ?

:P


On Mon, May 13, 2013 at 4:02 PM, Dan Yargici  wrote:

> Digging up a reeeally old thread...
>
> Care to share?  Coz it's eluding me... :)
>
> Thanks,
>
> DAN
>
>
> On Thu, May 6, 2010 at 12:43 AM, Malcolm Zaloon wrote:
>
>> Oh... i found a way just 10 seconds after send the e-mail...
>>
>>
>> ;)
>>
>>
>> On Wed, May 5, 2010 at 6:42 PM, Malcolm Zaloon wrote:
>>
>>> Hi.
>>>
>>> How can i get string length? Is it possible?
>>>
>>> thanks.
>>>
>>>
>>>
>>> --
>>> __
>>> Malcolm Zaloon - Lighting TD - XSI Generalist
>>> Quote:
>>> "Everything can be interconnected and will update according by interface"
>>>
>>
>>
>>
>> --
>> __
>> Malcolm Zaloon - Lighting TD - XSI Generalist
>> Quote:
>> "Everything can be interconnected and will update according by interface"
>>
>
>


-- 
---
Vladimir Jankijevic
Technical Direction

Elefant Studios AG
Lessingstrasse 15
CH-8002 Zürich

+41 44 500 48 20

www.elefantstudios.ch
---