Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Number to String conversion
mh10
Hi,
I am trying to use following 'vlb' variable value in a string comparing with value.equals() funtion.
when i use, vlb = "07" --- it works fine
when i use, (value.equals("5th Month"+lb.toString()))...it doesn't work
if (dph.getSeriesDisplayValue().equals("Series 1"))
{
value = dph.getBaseValue();
// compare with "5th Month07"
if ( value.equals("5th Month"+lb))
fill.set(0,0,255);
}
Any suggestions?
Find more posts tagged with
Comments
mwilliams
mh10,
Most likely if it's in integer form, it won't have the '0' in front of the '7'. It'll just be '7'. So, when you do your concatenation of "5th Month" and lb.toString(), you're probably getting "5th Month7". If you do "5th Month0" + lb.toString(), does it work?
mh10
Thanks Michael...it worked...<br />
<br />
<blockquote class='ipsBlockquote' data-author="mwilliams"><p>mh10,<br />
<br />
Most likely if it's in integer form, it won't have the '0' in front of the '7'. It'll just be '7'. So, when you do your concatenation of "5th Month" and lb.toString(), you're probably getting "5th Month7". If you do "5th Month0" + lb.toString(), does it work?</p></blockquote>