What?
A very quick article on a cool snippet of code, another regular expression, I've been trying out to round up a number or at least to remove the trailing zeros. I could have added this to my Zoho ...
... "")
; loop until there are no more double spaces
while InStr( v_NewName, " ")
v_NewName := StrReplace( v_NewName, " ", " ")
; trim any leading/trailing spaces ...
... getUrlAlias($p_Name){
// lowercase and trim preceding/trailing spaces
$v_Output = strtolower(trim($p_Name));
// replace all non alphanumeric characters (except underscore) to an underscore
...
What?
A quick article on how to trim in MySQL along with getting rid of any leading or trailing tab characters.
Why?
I use MS Excel for organizing data and then converting to MySQL commands. ...
... headings) in the Excel spreadsheet for it to wrap text and save the file. Hereafter, you will NOT need to do this on each data refresh.
Ensure that there is a trailing space after the label and before ...
... Prefix It should be a short alphanumeric value with a trailing underscore (eg. "abc12_")
Check if you have more than one asset with a parent_id equal to zero:
SELECT COUNT(*) FROM #__assets WHERE parent_id=0
-- ...
... symbols)
ValueToConvert = textInfo.ToTitleCase(ValueToConvert.ToLower());
// add a trailing space to catch below exceptions (eg. "Director of It ")
...
What?
Some methods of removing trailing spaces, tabs, carriage returns and line feeds (new lines).
How?
First in Transact-SQL:
SELECT
RTRIM( REPLACE( REPLACE( REPLACE( @myString, CHAR(9), ...
What?
I have a mySQL database table of room assets that has a field containing the ID numbers of images relevant to this room.
The Problem?
When I select specifying the statement "WHERE IN (c.RoomImages)", ...
... A_Loopfield, 6, 15 ) ; get the cursor name, no trailing space with substr
CursorID := SubStr( A_Loopfield, 1, 5 ) ; get the cursor id
SystemCursor = 1
If ( CursorName = Cursor ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.