Codes from Developers

PHP

Paginating,mySQL,data

Paginating the mySQL data


C#

reverse,c#,string,function

This Code Reverses a String with Predefined Function


C#

c#,calculate,compound,interest

This Code Shows How to Calculate Compound Interest


C#

Parallel,LINQ,c#

Parallel LINQ


JavaScript

Using,Parameters,with,Event,Listeners,Javascript,js

Using Parameters with Event Listeners in Javascript


C#

webpage,preview,thumbnail,website,get,image,c#,url,link

this code will get you preview image of any website or url


C#

c#,icomparable,interface

This Code Shows How to Implement IComparable Interface


C#

auto,reset,event,c#,thread

this is the usage of autoresetevent in c#


C#

c#,nullable,data,reader

C# 2.0 Nullable Data Readers This code shows nullable data readers for .NET 2.0 nullable types.


C#

c#,Asynchronous,method,report,progress

This code shows how to Report Progress in Asynchronous Method


Delphi

ClientDataSets,DBGrids,delphi

This example requires two ClientDataSets, two DBGrids, two DataSources, and two DBNavigators. Name the two ClientDataSets CDS and CDS2. Set the DataSet property in the first DataSource to CDS and name that DataSource DS. Set the DataSet property in the second DataSource to CDS2 and name that DataSource DS2. Set the DataSource in the first DBNavigator to DS and the DataSource in the second DBNavigator to DS2. Set the DataSource in the first DBGrid to DS and the DataSource in the second DBGrid to DS2. Right-click CDS and select the Fields Editor, then right-click the Field Editor form and create two fields by selecting "new field". In the field configuration window, set the name to HOST; the Component value will automatically be set to CDSHOST. Set the filed type to String. In the field configuration window for the second field, set the name to PORTA; the Component value will automatically be set to CDSPORTA. Set the field type to Integer. The file used to load CDS must have an attribute name of HOST with an attribute type of string and an attribute name of PORTA with an attribute type of integer. Add DB, DBCtrls, Grids, DBGrids, DBClient, and SwSystem to the uses clause. LoadFormFile to start with the file or CreateDataSet to start from scratch. You must CloseDataSet after a LoadFromFile before you can do another CreateDataSet.


Delphi

DateUtils,delphi

This example demonstrates the use of some routines in the DateUtils unit.


C#

thread,safety,in,c#,lock,unsafe,code

this is a sample of thread safety sample


Java

Auto,Complete,JComboBox,java

Auto Complete JComboBox in Java


PHP

Function,to,generate,calendars,on,the,fly

Function to generate calendars on the fly


Delphi

RTTI,TMapModel,TMapView,TMapModel,delphi

This example shows how to use the RTTI of an event to invoke it. Two classes are defined: TMapModel (event producer) and TMapView (event consumer). TMapModel has a specific event: OnChange (of type TMapModelChangeEvent). Procedure InvokeOnChangeEvent retrieves the RTTI available for this event and invokes it.


Delphi

ExtractFileName,fileread,delphi

The following example uses a button, a string grid, and a Save dialog box on a form. When the button is clicked, the user is prompted for a filename. When the user clicks OK, the contents of the string grid are written to the specified file. Additional information is also written to the file so that it can be read easily with the FileRead function.


C#

c#,http,server

This Code Shows How to Write a simple HTTP server


C++

Copying,one,or,more,than,one,file,into,one,file,c++

Copying one or more than one file into one file c++


PHP

A,database,abstraction,layer,for,the,PHP,Oracle,8,module

A database abstraction layer for the PHP Oracle 8 module