Welcome To Snipplr


Everyone's Recent Snippets Tagged format



1 1059 posted 13 years ago by tudisco
Very simple and basic TextHandle class, extends TextField... You can extend to fit your needs. Basic usage: var a:TextHandle = new TextHandle("some text"); addChild(a) Optional params: _size: uint ( default 22 ) - size of the textfiled...
1 840 posted 13 years ago by burnandbass
Create a String centered and filled with a character
0 782 posted 13 years ago by miceno
0 931 posted 13 years ago by sukantahazra
The code works if and only if your system is using English(United States) date format (i.e. "Web 05/11/2011"). If your systems is using English(United Kingdom) date format just replace %%B in the first and third rows with %%A.
0 1248 posted 13 years ago by cappellin
Turns /n to <br> and /n/n to </p><p> Usage: echo stripslashes(nl2br(nls2p($text)));
0 772 posted 14 years ago by jmiller
30 minutes spent on this :)
4 790 posted 14 years ago by TEHEK
0 612 posted 14 years ago by antti
0 842 posted 14 years ago by housecor
Format number using a comma as a separator
3 903 posted 14 years ago by Tmeister
Como convertir tiempo a formato de 24 horas y viceversa.
2 1323 posted 14 years ago by derebus
0 548 posted 14 years ago by vorp
Assumes that the record has a `name` field which represents the name of the location and always has a defined two character `country` field.
0 813 posted 14 years ago by iloveitaly
To style the text in a TextArea component, create a TextFormat object and pass it to the TextArea's setStyle method.
0 1145 posted 14 years ago by adrianparr
converts date/time that sharepoint kicks out to m/d/y format.
0 801 posted 14 years ago by rumremix
This code removes all the spaces and then inserts a single space so that the there are only 3 characters on the right-hand side (the inward code).
0 879 posted 14 years ago by adrianparr
This returns a string with a single space after the fifth character. Useful for displaying a UK mobile number which is easy to read.
0 957 posted 14 years ago by adrianparr
Es muss eine Formatierung gespeichert werden (Format :: Formatvorlagen) Einzutragen in: Format :: Bedingte Formatierung
0 633 posted 14 years ago by tscheckenbach
this will convert bytes to a readable format with 2 decimal places
1 1014 posted 14 years ago by rondog
0 596 posted 14 years ago by dalcacer
0 1442 posted 14 years ago by jmcd
Format a number so it is more humanly readable. It allows for setting the number of decimal places (inc. adding 0000s to the end) and separating thousands with a comma. Example usage: trace(numberFormat(1234.695, 2, true, false)); // Output:...
0 1282 posted 14 years ago by adrianparr