Routines that handle Cut, Copy, Paste and Delete operations on a TWebBrowser control have been added to the Code Snippets Database's TWebBrowser category. Two support routines that help to invoke commands on the web browser control were also added.
link
A new "Structures" category has been added to the Code Snippets database that is to be used to store simple and advanced records and their related constructor functions. Three new snippets have been added and several others moved from the "Mathematics" category, which is now getting overloaded. The new snippets are TRange, a record that encapsulates the lower and upper bounds of a range; Range, a constructor function for TRange and TRangeEx, an advanced record version of TRange that supports construction and a couple of other useful range-related methods. CodeSnip users will require v4.4.2 or later to see TRangeEx. The snippets that have moved from "Mathematics" are: BoundsF, PointF, RectF, Size, TPointF, TRectF and TSizeEx.
link
This is maintenance update to CodeSnip 4.5 that fixes a few bugs and tweaks the UI a little. The main fix is that CodeSnip will now let you relocate your user database to a network share - it no longer insists that the database is stored on a local drive. Operations that update local copies of database files can take a long time when the database is located on slow drives such as on a WiFi network or old USB memory sticks. CodeSnip 4.5.1 now displays progress bars or marquees in these cases so it should be obvious that the program is doing work and hasn't simply hung. These fixes have been made available in both the standard and portable editions.
link
CodeSnip v4.5.1 has been released.
This is maintenance update to CodeSnip 4.5 that fixes a few bugs and tweaks the UI a little.
The main fix is that CodeSnip will now let you relocate your user database to a network share - it no longer insists that the database is stored on a local drive.
Some operations that update local copies of database files can take a long time if there are a lot of snippets and the data files are stored on slow drives such as on a WiFi network or old USB memory sticks. CodeSnip could give the appearance of having hung in these circumstances. CodeSnip 4.5.1 now displays progress bars or marquees in these cases so it should be obvious that the program is doing work.... read more
Support for test compiling and displaying compiler results for Delphi XE4 has just been added to both CodeSnip 4 and, for those who haven't yet updated, to CodeSnip 3. The releases are v4.5.0 and v3.12.0 respectively. Release v3.12.0 also fixes the same window restoration bug fixed that has already been fixed in v4.
link
CodeSnip v3.12.0 has been released.
Like the recent release of v4.5.0, this new release of the CodeSnip 3 adds support for test compiling with Delphi XE4.
This update is only suitable for those who still use CodeSnip 3 instead of release 4. Everyone is recommended to move up to v4.
If you really want this release, you can get it here
CodeSnip v4.5.0 has been released.
This new releases adds support for the new Delphi XE4 compiler. Compile results can be reported for XE4 and, where installed, XE4 can be used by CodeSnip to perform test compiles.
Download the new release below:
A new category has been added to the Code Snippets Database to store routines that manipulate the TWebBrowser control. Seven new routines have been added to the category as a start.
link
CodeSnip v4.4.2 has been released. This release fixes three bugs, one of which affected the way the program handled some advanced records, meaning test compilation and unit generation would fail. Because of this bug, some future additions to the Code Snippets Database will require v4.4.2 as a minimum to be able to display those additions. Consequently you are **strongly recommended** to update to this release.
link
CodeSnip v4.4.2 has just been released.
This release fixes three bugs, one of which affected the way the program handled some advanced records, meaning test compilation and unit generation would fail.
Because of this bug, some future additions to the Code Snippets Database will require v4.4.2 as a minimum to be able to display those additions. Consequently you are strongly recommended to update to this release.... read more
The EllipsifyText routine in the Grpahics category of the Code Snippets database has had a bug fixed to make it work correctly when compiled with a Unicode version of Delphi. Thanks to Bill Miller for the fix.
link
A alternative version of the IsPrime function, named IsPrime2, has been added to the Code Snippets database. This routine is shorter than IsPrime and does not use any floating point arithmetic. Also the GCD and LCD have had bugs fixed to ensure that they always return positive results, even after passing them negative parameters. Finally the test status of IsPrime, IsPrime2 and LCD has been increaed now they have passed unit tests.
link
A new "Snippets & Tips" section has been added to the site. The "Delphi Tips" scetion has been moved into the new section. The old Code Snippets section has also been moved into "Snippets & Tips", and has been marked as "mothballed". Also in the new section are links to the Code Snippets Database Take 2 and SWAG Archive web applications.
link
Just released the first beta of a new web application that displays the content of the old SWAG Pascal code database. There's no new code but the database has been tidied up a little and the new interface is, I hope, cleaner than the old versions. Any feedback welcome.
link
Two new snippets, URIEncode and URIDecode, have been added to the Code Snippets Database. URIEncode URL encodes a string according to RFC 3986 while URIDecode decodes an encoded string back to its original form. Both routines have the option to encode and decode URL query strings. These routines supersede URLEncode and URLDecode which are not standards compliant.
link
CodeSnip v4.4.1 has just been rushed out to fix a silly little bug in v4.4.0 that I really should have noticed before release. The program was using the wrong URL for web services, giving a 404 error. I've patched the website to recognise the bad URL and redirect it to the correct place, so the bug shouldn't bite you now - no more 404 errors in v4.4.0 now! Best to update though. That'll teach me to test only on my development web server and forget to test on the live server!
link
CodeSnip v4.4.1 has just been rushed out to fix a silly little bug in v4.4.0 that I really should have noticed before release.
The program was using the wrong URL for web services, giving a 404 error. I've patched the website to recognise the bad URL and redirect it to the correct place, so the bug shouldn't bite you now - no more 404 errors in v4.4.0 now! Best to update though.
That'll teach me to test only on my development web server and forget to test on the live server!... read more
CodeSnip v4.4.0 has just been released. It adds a facility to automatically check for program and online Code Snippets database updates. Update checking runs in a background thread and any available updates are notified to the user by means of a small pop up window at the bottom right of the main window. By default CodeSnip checks for updates no more that once per week. The frequency can be changed or the feature switched off from the Updates tab of the Preferences dialogue box.
link
CodeSnip v4.4.0 has just been released.
It adds a facility to automatically check for program and online Code Snippets database updates.
Update checking runs in a background thread and any available updates are notified to the user by means of a small pop up window at the bottom right of the main window.
By default CodeSnip checks for updates no more that once per week. The frequency can be changed or the feature switched off from the Updates tab of the Preferences dialogue box.... read more
A rag-bag of six unrelated snippets has been added to the Code Snippets Database. The snippets are: GetDefaultPrinterName - returns name of any default printer on the computer; DirPurge - deletes a directory and all its contents; FileInProgramDir - returns the path to a given file, located in side the same directory as the program; SafeFreeEncoding - frees a TEncoding object unless it is one of the standard encodings; IsIEInstalled - checks if Internet Explorer is installed; EnglishColorName - returns the name of a known colour in American English.
link
Two new routines have been added to the Mathematics category of the Code Snippets database. The first, Pow, raises an integer to value to a non-negative integer power. The second snip is named SAR and performs an arithmetic right shift operation on an integer (Pascal's 'shr' is a logical left shift operator). Don't forget that new snippets now don't display in the old Code Snippets online viewer - you need the CodeSnip program or the new viewer at http://snippets.delphidabbler.com/cs to see them.
link
Latest point release of CodeSnip, v4.3.0, has just been released.
Three new features:
Three new routines for working with fractions have been added to the Code Snippets Database. NormaliseFractionSize ensures that the numerator of a fraction carries the sign while the denominator is always positive. The remaining two routines are for formatting a fraction as a string. FractionToStr formats a given numerator and denominator while FractionToStrEx does the same thing but also gives the option of normalising the fraction's sign.
link
CodeSnip release 4.2.1 fixes a bug in the new Favourites dialogue box, introduced in v4.2.0. The dialogue box was displaying the old-style unique snippet name but now displays the correct snippet display name.
Download the update from:
CodeSnip v4.2.0 has now been released.
It adds support for flagging your frequently used snippets as favourites and provides easy access to them by means of a non-modal dialogue box that can float alongside the main window.
Also changed Duplicate Snippets dialogue box to enable snippet display name to be changed and to have option of opening the duplicated snippet in the Snippets Editor.
Some minor tweaks to the database stats displayed in the status bar and a minor bug fix complete the changes.... read more