Codes from Developers

PHP

Image,Resizer,php

Image Resizer in PHP


Delphi

Automatic,Reference,Counting,arc,delphi

This code example indicates how the Automatic Reference Counting (ARC) mechanism manages objects' lifetimes. ARC is the default for the Delphi mobile compilers.


C#

c#,passing,pass,parameter,for,thread

This Code Shows How to Illustrate the Concept of Passing Parameter for Thread


C#

c#,matrix,subtraction

This Code Shows How to Perform Matrix Subtraction


C# JavaScript

associative,arrays,client-side,caching,ajax,javascript

Using Associative Arrays for Client-side Caching using AJAX & Javascript


C#

c#,calculate,compound,interest

This Code Shows How to Calculate Compound Interest


PHP

Load,delimited,textfile,into,MySql,table,php

Load delimited textfile into MySql table in PHP


Delphi

dataset,FetchPooler,delphi

This example fills in the parameters of a client dataset from the entries of a list box.


Transact-SQL

sql,get,tables,sizes,of,db,size

this code block returns sizes of tables in your db


Delphi

FileRead,read,buffer,delphi

The following example uses a button, a string grid, and an Open dialog box on a form. When the button is clicked, you are prompted for a file name. When you click OK, the specified file is opened, read into a buffer, and closed. Then the buffer is displayed in two columns of the string grid. The first column contains the character values in the buffer. The second column contains the numeric values of the characters in the buffer.


Delphi

DateUtils,TDateTime,format,date,delphi

This example shows how to use DateUtils routines for transforming a TDateTime variable in other date formats.


C#

c#,create,generic,delegate

This Code Creates Generic Delegate


Java

Using,JTextField,and,JPasswordField,java

Using JTextField and JPasswordField in Java


Java

Inserting,an,Image,into,SQL,Server,java

Inserting an Image into SQL Server in Java


Java

Delegate,servlet,requests,to,a,handler,java

Delegate servlet requests to a handler in Java


C#

prototype,pattern

Prototype Pattern


Delphi

,AfterEdit,event,BeforeEdit,event,delphi

This example adds an entry to a memo with a message when an AfterEdit event occurs and when a BeforeEdit event occurs. Click Run SQL to populate the DBGrid. Then select a cell to edit and click the Edit current cell button, or just start editing the cell to invoke the BeforeEdit and AfterEdit events.


Delphi

TEdit,FileOpen,delphi

This example requires a TEdit, a button, and a string grid. Enter the file name in the TEdit and click the button to open that file. Notice that the file cannot be read. Remove the fmOpenWrite and the fmShareDenyNone access and the string grid will load.


C#

c#,search,directory,list,files

This Code Searches Directories and List Files


C++

This,Program,Will,Encrypt,And,Decrypt,Any,File,Text,Document,c++

This Program Will Encrypt And Decrypt Any File Text Document in C++