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)
Report # 1 : Pending Questions
nuraniuscc
1) How do I shrink the gap between 2 data elements and also add a coma.
For Eg; My Date shows up as " January 02 2009".
How do I format it to make it more readable etc.
My ideal output should be "January 02, 2009".
2) Does every line in the script end with a ";" . How about the lines in a IF
THEN ELSE block of code?
3) How to comment lines/block of lines in a script?
Thanks
Nurani Sivakumar
Find more posts tagged with
Comments
mwilliams
Hi Nurani,
1) That's how your date comes in from the database?
2) You use a ';' after you do a line that actually executes something. An if/else statement would look like:
if (blah == blah){
blah = blah + 2;
blah;
}
else{
blah = blah + 3;
blah;
}
3) To write a comment, one way is to use '//' before you write the comment. i.e. blah = 0; //initialize blah to 0
nuraniuscc
Hi Mike,
My Data comes in Integer format which I convert. But I need to get rid of the un-necessary spaces (This shows up on the PREVIEW window) and make it nicely formatted and readable.
Thanks
Nurani Sivakumar
mwilliams
Nurani,
So, the spaces are introduced in your conversion? What does the integer date look like?