Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,116 Members 44,195 Now Online
XDA Developers Android and Mobile Development Forum

Need Help with a String

Tip us?
 
czonin
Old
#1  
czonin's Avatar
Senior Member - OP
Thanks Meter 87
Posts: 362
Join Date: Apr 2010
Location: Huntington, NY
Default Need Help with a String

Hey everyone i'm trying to write out a string but i'm getting the wrong value returned and I don't know why. I want to have a rectangle change colors if the first event day of month, second event day of month, and third event day of month are the same AND the first event day of month is today. Right now my string is:

[c]$#C0Sd#=#C1Sd#&&#C1Sd#=C2Sd#&&#C0Sd#=#Dd#?#4afffff f:#00ffffff$[/c]

and i'm getting [c]#00ffffff[/c] even though all of the event days are the same and the first event day of the month is today. Any help would be appreciated!
 
kwerdenker
Old
#2  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 2,119
Posts: 1,360
Join Date: Apr 2010
Location: Probably the Zooper Forums

 
DONATE TO ME
Quote:
Originally Posted by czonin View Post
Hey everyone i'm trying to write out a string but i'm getting the wrong value returned and I don't know why. I want to have a rectangle change colors if the first event day of month, second event day of month, and third event day of month are the same AND the first event day of month is today. Right now my string is:

[c]$#C0Sd#=#C1Sd#&&#C1Sd#=C2Sd#&&#C0Sd#=#Dd#?#4afffff f:#00ffffff$[/c]

and i'm getting [c]#00ffffff[/c] even though all of the event days are the same and the first event day of the month is today. Any help would be appreciated!
Looks like you're missing a # on #C2Sd# or is that just a typing error in your post?

Send from my secret moonbase via space carrier pigeons

Please use the forums for your Zooper related questions. I won't respond to PMs with questions that can/should be asked there. Thank you.
 
czonin
Old
#3  
czonin's Avatar
Senior Member - OP
Thanks Meter 87
Posts: 362
Join Date: Apr 2010
Location: Huntington, NY
Quote:
Originally Posted by kwerdenker View Post
Looks like you're missing a # on #C2Sd# or is that just a typing error in your post?

Send from my secret moonbase via space carrier pigeons
Ya I realized that just as you answered, thanks! What I have been trying to get working is still running into issues. If you have some free time would you mind giving me a hand with it?
 
jbrown1028
Old
#4  
Junior Member
Thanks Meter 5
Posts: 3
Join Date: Jul 2008
Quote:
Originally Posted by czonin View Post
Hey everyone i'm trying to write out a string but i'm getting the wrong value returned and I don't know why. I want to have a rectangle change colors if the first event day of month, second event day of month, and third event day of month are the same AND the first event day of month is today. Right now my string is:

[c]$#C0Sd#=#C1Sd#&&#C1Sd#=C2Sd#&&#C0Sd#=#Dd#?#4afffff f:#00ffffff$[/c]

and i'm getting [c]#00ffffff[/c] even though all of the event days are the same and the first event day of the month is today. Any help would be appreciated!
It looks like there is a little syntax error:

[c]$#C0Sd#==#C1Sd#&&#C1Sd#==C2Sd#&&#C0Sd#==#Dd#?#4aff ffff:#00ffffff$[/c]

What you were doing was stating #C0Sd# EQUALS #C1Sd# not asking -- IF #C0Sd# EQUALS #C1Sd#

A single = means this is going to equal that
A double = means does this equal that

If you want it to NOT equal then != or less than equal to <= etc...
Now, here is the other thing... If you are trying to use the [c] COLOR in markup text, then it is [c=#00ffffff]Your text[/c]

Let me know if that is what your looking for, I tried to duplicate it on mine, but it just shows #00ffffff

Good Luck
The Following User Says Thank You to jbrown1028 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes