Change State Snippets


Toggle a column bit regardless of state. Useful to change state without doing a query first to detect the state of the bit.

12 February, 2012   

ASP code example for DataList data binding with objects

Completely different version of populating a drop-down from an array. Can be simple or complex depending on the parameters. Supports JavaScript and auto-selection.

13 November, 2012   

Use this snippet to let your visitors change the background color of your Web page. Combined with a cookie, the setting could follow them through your whole site.

03 August, 2013   

Example shows bash code to change CWD to file's directory

Oracle 10G has enhanced the flashback feature further and has turned it into a much more powerful feature by introducing a number of additional function. Some of the more common ones are discussed here. - Flashback Table - Flashback Drop - Flashback Database

Change Date from dd/mm/yyyy to yyyy-dd-mm

16 March, 2013   

CSS code example to change Text Selection Color

07 April, 2012   

CSS code to change Text Selection Color

21 February, 2011   

Change Text Selection Color

jQuery code example to show content based on select option.

24 July, 2016   

Dynamically add form fields to your forms.

When placed in startup scripts, this snippet activates every time user opens a file. It then traverses the directory path backwards and looks for user created project folders. If one is found, script offers to switch it on. This is very useful when working with a number of projects at a time.

This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match.

Create in dbgrid one column and insert the caption "RecNo" or other in title property. In dbgrid onDrawColumnCell event insert the following code:

A Template for building OpenGL applications using GLUT.

03 January, 2013   

Choose a color scheme as found in the Display control panel applet

15 December, 2011   

Here shown Java code example - The protected keyword

Note that to add a new column to the query, just add in an input box to the HTML, the PHP generates an insert for each field.

* Code to generate spiral matrix for n elements where n >= 1 * To generate spiral matrix for n elements just * Change the value of MAX to whatever u want :)