News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

"Left" function in color callout

Started by kiler40, April 19, 2013, 01:03:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kiler40

Hi Everybody,

I`m trying to add Left function to a color callout, but for some reason nothing is happening.
Can you please help me a little-bit.

In the example i have 3 color callout. And in the shape sheet if i change first one that says
STRSAME("r",Prop.Row_1,TRUE)

and change it to
STRSAME(LEFT(Prop.Row_1,1)="r",Prop.Row_1,TRUE)

OR JUST
STRSAME(LEFT(Prop.Row_1,1),Prop.Row_1,TRUE)

It seems nothing to happen.... the box turns white.

Can you please tell me what i`m doing wrong...

Thank you in advance

Surrogate

what value may be in prop.row_1 ?

look about STRSAME function syntax there

kiler40

Value will be for example "R/W" of "R/G" or "R/whatever"

But the important symbol is "R"

Surrogate


kiler40

It seems that i`m not changing the right thing. I have to change

Prop.Row_1
to
LEFT(Prop.Row_1,1)

STRSAME("r",LEFT(Prop.Row_1,1),TRUE)


in order things to work. And still use STRSAME :)
Thanks :)

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 254 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1078KB.
Tokens: post-login.
Cache hits: 13: 0.00139s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]