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#?#4affffff:#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!
czonin said:
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#?#4affffff:#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!
Click to expand...
Click to collapse
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
kwerdenker said:
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
Click to expand...
Click to collapse
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?
czonin said:
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#?#4affffff:#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!
Click to expand...
Click to collapse
It looks like there is a little syntax error:
[c]$#C0Sd#==#C1Sd#&&#C1Sd#==C2Sd#&&#C0Sd#==#Dd#?#4affffff:#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
Related
Has anyone figured out how to have the htc calendar not only show a birthday/anniversary, but also their age/ # years? For example, Bob was born on 1/1/80. I can set up a reoccurring event to show his birthday every year, but not that he's 30 years old this year.
baileyjs said:
For example, Bob was born on 1/1/80. I can set up a reoccurring event to show his birthday every year, but not that he's 30 years old this year.
Click to expand...
Click to collapse
Actually I'm 37..
Man the text on this phone is HUGE!!! Even on the GN you were able to reduce the size of the text a bit more than this. Anyone else find this text way larger than it needs to be?
Also for all those who are consideirng buying. Handtec fantastic retailer. I use to buy from them back in my winmo days and they would always screw up the importing documents and the package would be stuck in customs but they have fixed that now. Fast and smooth transaction and it was also the cheapest i was able to find it.
I'm glad you had a good experience with Handtec. I was thinking about ordering from them here in a few days as well.
did you try and change the font size in settings?
settings..>..display & gestures..>..font size
do the packages always go to customs or they just choose them randomly
hello00 said:
do the packages always go to customs or they just choose them randomly
Click to expand...
Click to collapse
I believe its random. I've ordered twice from Handtec. Last year I got my GS II from them and it arrived the next day without being stopped by customs. My One X is in customs now. It was supposed to arrive today. I faxed the papers in and my phone has been released. It will arrive tomorrow. So it was only a 1 day delay.
beanbean50 said:
did you try and change the font size in settings?
settings..>..display & gestures..>..font size
Click to expand...
Click to collapse
Yea. I changed it to small but i believe the GN had a tiny setting that this device doesn't have or the small just isn't small enough.
Dimeezy said:
I believe its random. I've ordered twice from Handtec. Last year I got my GS II from them and it arrived the next day without being stopped by customs. My One X is in customs now. It was supposed to arrive today. I faxed the papers in and my phone has been released. It will arrive tomorrow. So it was only a 1 day delay.
Click to expand...
Click to collapse
I actually believe all packages go through customs. You only get stuck when some document is off or if some genius over there reads the document incorrectly. That last one really pisses me off. From my experience it goes through customs in the middle of the night. Once its starts moving the UK it gets to the US the following day. For the east coast folks i believe it stops in Memphis which has a customs office and then goes out from there.
at what time/day did you guys order it? and what color? did you choose Fedex or UPS? someone from NY said he got it the next day..his package didn't have to go through customs
hello00 said:
at what time/day did you guys order it? and what color? did you choose Fedex or UPS? someone from NY said he got it the next day..his package didn't have to go through customs
Click to expand...
Click to collapse
I'm not sure how anyone would know if it went through customs or not? There is a difference between being stuck in customs and going through customs. I think its like saying I didn't go through airport security just because you didn't go through extra screening. I'm pretty sure it all goes through customs but then again I've never worked for fedex or UPS so i don't really know.
In this case I ordered on Sunday afternoon and they shipped it out Tuesday evening UK time and I got it Wed morning before 1030AM.
Bxsteez said:
I'm not sure how anyone would know if it went through customs or not? There is a difference between being stuck in customs and going through customs. I think its like saying I didn't go through airport security just because you didn't go through extra screening. I'm pretty sure it all goes through customs but then again I've never worked for fedex or UPS so i don't really know.
In this case I ordered on Sunday afternoon and they shipped it out Tuesday evening UK time and I got it Wed morning before 1030AM.
Click to expand...
Click to collapse
I don't know? probably because he received it the next business day..Ive placed an order wed afternoon so hopefully i will get it this sat
At Handtec? If you placed it on Wed and you live in Miami you will probably get it Friday assuming they didn't mess up any documentation.
How much did you pay for your One X?Are there any tax/fee when you purchase from handtec?
fsrkewd said:
How much did you pay for your One X?Are there any tax/fee when you purchase from handtec?
Click to expand...
Click to collapse
It was 403.99 pounds without VAT, which you don't have to pay if you are in the US. That turned out to about 685 US dollars.
Bxsteez said:
At Handtec? If you placed it on Wed and you live in Miami you will probably get it Friday assuming they didn't mess up any documentation.
Click to expand...
Click to collapse
Let's hope so! Are you using it with att or tmo? im lucky to live in an area with the 1900mhz spectrum but if i travel Ill get stuck with edge..and I travel a lot..never thought of that, damn
hello00 said:
Let's hope so! Are you using it with att or tmo? im lucky to live in an area with the 1900mhz spectrum but if i travel Ill get stuck with edge..and I travel a lot..never thought of that, damn
Click to expand...
Click to collapse
I'm using on At&t but I believe it supports 850MHz and 1900MHz on the One X but only one of those for the One S. I haven't had any connectivity issues but I also have not left Melbourne FL since yesterday when I received it. I also bought a micro sim cutter. I'm sure you've already considered this but I wanted to let everyone know that the Noosy second generation cutter is great although the adapters SUCK!!!!!
Bxsteez said:
Man the text on this phone is HUGE!!! Even on the GN you were able to reduce the size of the text a bit more than this. Anyone else find this text way larger than it needs to be?
Also for all those who are consideirng buying. Handtec fantastic retailer. I use to buy from them back in my winmo days and they would always screw up the importing documents and the package would be stuck in customs but they have fixed that now. Fast and smooth transaction and it was also the cheapest i was able to find it.
Click to expand...
Click to collapse
You can set the text size to small and reduce it even more if you pinch to zoom when you're in an actual text message!!! It'll be bloody tiny! Or skip the: Settings - Small step and just pinch to zoom when you're in a message.
Reckless187 said:
You can set the text size to small and reduce it even more if you pinch to zoom when you're in an actual text message!!! It'll be bloody tiny! Or skip the: Settings - Small step and just pinch to zoom when you're in a message.
Click to expand...
Click to collapse
Hahah!! I did not try that. Thanks for the tip. It worked well. I just wish it would go through the entire overlay. Just so much wasted space but lets be honest we all know I'm waiting for a AOKP build lol. Probably won't happen till kernel source is available.
Bxsteez said:
Yea. I changed it to small but i believe the GN had a tiny setting that this device doesn't have or the small just isn't small enough.
Click to expand...
Click to collapse
hmm ok plan b.. install 'rom toolbox' from the market go to the last page of the tweaks and choose a font from the font installer..some of them are really tiny
Sadly I enjoy the current font. Just wish it was smaller. I mean to be honest its a nit picky thing. If my only complaint about the phone is the font is too big then HTC is doing something right.
Cannot agree more on the font size!!!
I'm getting a little annoyed by the font size too!!
Received my One S yesterday and the font size is the first thing that caught my nerves!!! I was like !!!
Especially in the Email app, even setting the body font size to small, the text is HUGE on the emails!!!
I own a Galaxy Nexus too, and the font size is SOOOOO MUCH more normal and gives you more sizes to choose from!!!
So I'm guessing its a HTC Sense issue...
I actually posted a thread on this problem too (http://forum.xda-developers.com/showthread.php?p=24749856)
---------- Post added at 05:25 PM ---------- Previous post was at 05:16 PM ----------
beanbean50 said:
hmm ok plan b.. install 'rom toolbox' from the market go to the last page of the tweaks and choose a font from the font installer..some of them are really tiny
Click to expand...
Click to collapse
Does it require the phone to be rooted to use "rom toolbox"??
Hi, I've just purchased Zooper Pro and cannot find an example that gives me the years and days accumulated since arriving on this Planet
Any example to the solution would be very helpful thanks
I understand it's a simple task but am unfamiliar with how Zooper works
Steve...
Echo_Steve said:
Hi, I've just purchased Zooper Pro and cannot find an example that gives me the years and days accumulated since arriving on this Planet
Any example to the solution would be very helpful thanks
I understand it's a simple task but am unfamiliar with how Zooper works
Steve...
Click to expand...
Click to collapse
While something like that should be possible with Zooper, there is currently a bug related to this that makes it impossible to use the included variables to do what you want. The only thing that currently works is the total days since your birthday, which would be #D<year><month><day>0000Td#.
Thank you
Sent from my C6603 using Tapatalk
Echo_Steve said:
Thank you
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Yeah, I have the string that was suggested to me from the Help thread, which comes close, but the days are way off: my birthday is in August, and it changed over in late February. But it just gives me a (roughly) accurate year count.
$(int(#D199901010000Td#/365.25))$ gives you the number of years, to about six month accuracy it seems.
Sokudoningyou said:
Yeah, I have the string that was suggested to me from the Help thread, which comes close, but the days are way off: my birthday is in August, and it changed over in late February. But it just gives me a (roughly) accurate year count.
$(int(#D199901010000Td#/365.25))$ gives you the number of years, to about six month accuracy it seems.
Click to expand...
Click to collapse
The problem here is that you're using INT which rounds so at six months it is rounding up. Replace INT with FLOOR and it is accurate.
Hi all,
So I have a progress bar for my data usage for my billing cycle (7th of the month). Underneath that I would like another progress bar to show how far along I am in my billing cycle (to easily glance if my data usage is lining up with the cycle usage). My thinking is the min would be the 6th of this month and max would be 7th of next month. But I have no idea how to implement that.
Am I thinking in the wrong direction or is there an easier way to do this?
Thanks,
Cliff
cwwilson said:
Hi all,
So I have a progress bar for my data usage for my billing cycle (7th of the month). Underneath that I would like another progress bar to show how far along I am in my billing cycle (to easily glance if my data usage is lining up with the cycle usage). My thinking is the min would be the 6th of this month and max would be 7th of next month. But I have no idea how to implement that.
Am I thinking in the wrong direction or is there an easier way to do this?
Thanks,
Cliff
Click to expand...
Click to collapse
This probably is the 100% exact answer, but I believe it will be close:
In the Min/Max section of the progress bar:
MIN: $(#DMM#*30)+6$
VALUE: $(#DMM#*30)+#Dd#$
MAX: $((#DMM#+1)*30+7)$
This is basing everything off of a 30 day month, which I believe is how most billing companies do as well.
So with that being said, let me explain what is going on here:
MIN:
$(#DMM#*30+6)$
$( <-- Starts a calculation
#DMM# <-- Is the current month
* <-- Multiply
30 <-- by 30 (number of days in a month)
+ <-- Add
6 <-- the 6th of the month
)$ <-- End the calculation
The Value and Max are pretty much the same except there is a #Dd# which is the current day
Basically I converted everything over to the days of the year (so since this is March (3), it the min would be 96, Today is the 13th so 90+13 = 103 us the value and the max is 3+1 (for April) * 30 = 120+7 making it 127
Next month it will be:
126
--- What ever day
157
Hope that points you in the right direction
Thanks,
Jeff
Check out my new MobiStyles Forum... Hints, tips, themes, widgets, scripts and much more coming! mobistyles com
Thanks!
Wow, I wouldn't have thought of that. Thanks! And thanks for the explanation. My only question now is how to account for the 1st through 5th of each month since that would be out of the min/max range. Any idea?
Thanks,
Cliff
cwwilson said:
Wow, I wouldn't have thought of that. Thanks! And thanks for the explanation. My only question now is how to account for the 1st through 5th of each month since that would be out of the min/max range. Any idea?
Thanks,
Cliff
Click to expand...
Click to collapse
hmmm.... Yeah I didn't think about that either.
So we would have to have a conditional statement in VALUE: $(#Ddd#)<=6?((#DMM#+1)*30+#Ddd#)#DMM#*30+#Ddd#)$
Now this will work like this:
$( <-- Starts a calculation
#Ddd# <-- This is the Current Day
<= <-- Less than or equals to
6 <-- The start date of your billing cycle
Here is the conditional stuff:
(#Ddd#)<=6?((#DMM#+1)*30+#Ddd#):(#DMM#*30+#Ddd#)
[------ IF ------] [------------ THAN ----------] [-------- ELSE ---------]
Pretty much the rest is easy to figure out... At which I found another bug, if that VALUE line is too long, it moves everything off the page. I will inform the Dev.
Hope that helps,
Jeff
As far as I can follow, that conditional makes perfect sense. I guess I'll find out for sure next month. I got around the line limitation by copying and pasting into the value.
Thanks dude, you rock.
Cliff
Ive been using the following command to show remaining days before event. ..
#C0STd#
However, if it is an all day event, for example, on a Thursday. By Tuesday it just says 1.
Meaning, 1 full day between mid Tuesday and 12 am Thursday.
What I want is for it to always show 2 days in this scenario.
At first, I thought just plus 1 to all events. But when the event is 8pm Thursday, it would say 3 days on Tuesday until 8pm and then 2. I want it to 2 all day.
So I guess I need it to ignore the time of the event and just count down the days of the events day.
Possible?
strewth78 said:
Ive been using the following command to show remaining days before event. ..
#C0STd#
However, if it is an all day event, for example, on a Thursday. By Tuesday it just says 1.
Meaning, 1 full day between mid Tuesday and 12 am Thursday.
What I want is for it to always show 2 days in this scenario.
At first, I thought just plus 1 to all events. But when the event is 8pm Thursday, it would say 3 days on Tuesday until 8pm and then 2. I want it to 2 all day.
So I guess I need it to ignore the time of the event and just count down the days of the events day.
Possible?
Click to expand...
Click to collapse
You can use the day of year to get a quick calculation of the days between,
$(#C0SD#-#DD#)$
Unfortunately, this won't work when crossing into the new year, so one can build it up a bit:
$(#C0SD#-#DD#+(#C0Syyyy#-#Dyyyy#)*365)$
Now adding a day in there if we are currently on a leap year.
$(#Dyyyy#%4)=0?(#C0SD#-#DD#+(#C0Syyyy#-#Dyyyy#)*366)#C0SD#-#DD#+(#C0Syyyy-#Dyyyy#)*365)$
That final one should work as long as the events are fairly close (within a month). For example, it will fail if the current date is 2015-12-30 and the next event is 2017-01-10 because it doesn't account for the leap year in 2016.
This all seemed a bit convoluted, so I came up with this new formula:
$(floor((#C0STm#+#DH#*60+#Dmm#)/60/24))$
strewth78 said:
Ive been using the following command to show remaining days before event. ..
#C0STd#
However, if it is an all day event, for example, on a Thursday. By Tuesday it just says 1.
Meaning, 1 full day between mid Tuesday and 12 am Thursday.
What I want is for it to always show 2 days in this scenario.
At first, I thought just plus 1 to all events. But when the event is 8pm Thursday, it would say 3 days on Tuesday until 8pm and then 2. I want it to 2 all day.
So I guess I need it to ignore the time of the event and just count down the days of the events day.
Possible?
Click to expand...
Click to collapse
So what was your final solution?