Codes from Developers

Delphi

BevelInner,BevelOuter,BevelWidth,BorderWidth,delphi

This example uses a panel component and a button named CreateStatusLine on a form. The code moves the panel to the bottom of the form when you click the button. The code also gives the panel the appearance of a status line by changing the value of the BevelInner, BevelOuter, BevelWidth, and BorderWidth properties.


Java

Background,tasks,java

Background tasks in Java


Java

Adding,KeyListener,to,gain,focus,on,a,componet,java

Adding KeyListener to gain focus on a componet in Java


C++

An,implementation,of,Stack,data,structure,C++

An implementation of Stack data structure in C++


Delphi

Select,ActivePage,property,delphi

This example requires a TPageControl already be on the form. Also, you must add pages to the TPageControl by right- clicking and selecting New Page. The example code allows you to select the ActivePage property through the selection of a ComboBox item. While the form is created, the Combo Box control is loaded with the names of each of the tabs, as well as the instance pointers to the corresponding tab. When you select the Combo Box item, the associated TTabSheet object contained in the Combo Box Objects array is used to set the ActivePage property. Select the Lines property of the TRichEdit to enter a string. Select the string before justifying.


PHP

Paginating,mySQL,data

Paginating the mySQL data


PHP

Simple,script,send,emails,html,form,different,users

Simple script to send emails via a html-form to different users


Delphi

FMXAttachTAnimation,delphi

This example demonstrates how the AnimationType and Interpolation properties affect the rate at which the value of a property changes under their control. This is illustrated by controlling the X and Y of a TRectangle with TFloatAnimation instances. The Interpolation properties on the TFloatAnimation objects are set to Linear, making the change of X and Y constant over time. The Interpolation and AnimationType properties of the TFloatAnimation instance can be set in the Object Inspector to any TInterpolationType and any TAnimationType. Drawing of the path is done using the DrawLine method of the form's Canvas. Points are collected and drawn using a TPointF array in the animation's OnProcess event handler and then redrawn in the form's OnPaint event handler. The TFloatAnimation instances have to be created as children of the TRectangle. Many of the TFloatAnimation properties can be set at design time. To replicate this example, create a Multi-Device Application - Delphi and add the following components to the form: A TRectangle--the animated object Two TButton objects Two TComboBox objects Two TFloatAnimation objects Rename the buttons to MoveRect and ReturnRect. Using the Object Inspector, add event handlers for the Form1.OnCreate, MoveRect.OnClick, ReturnRect.OnClick, FloatAnimation1.OnProcess, and Form1.OnPaint events. Fill in with the sample code below. The form should look like the following image.


C#

c#,swap,contents,numbers,bitwise,xor

C# Program to Swap the Contents of two Numbers using Bitwise XOR Operation


C++

Snake,Game,c++

Snake Game in C++


PHP

A,database,abstraction,layer,for,the,PHP,ODBC,module

A database abstraction layer for the PHP 3.0 ODBC module


C#

c#,find,standart,deviation,of,set,given,numbers

This Code Shows How to Find the Standard Deviation of a Set of Given Numbers


PL/SQL

sql,table,size,tablo,boyutları

This code block returns table sizes of db


Delphi

BeginUpdate,EndUpdate,delphi

The following example adds a panel to the status bar control when the user clicks the button and adds a caption to the panel. The code uses BeginUpdate and EndUpdate to prevent repaints until the operation is complete. A try...finally block ensures that EndUpdate is called even when an exception occurs.


Transact-SQL

sql,foreach,loop

this is an sql code for foreach loop


C#

c#,calculate,size,of,folder

This Code Calculates the Size of Folder


PHP

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

A database abstraction layer for the PHP Oracle 8 module


Delphi

client,dataset,index,delphi

The code below creates a new case-insensitive index at run time and then sorts the client dataset using that index. The user specifies the field on which to sort the client dataset in an edit control.


C#

c#,generate,fibonacci,series

This Code Shows How to Generate Fibonacci Series


C#

c#,bubble,sort

This Code Shows How To Perform Bubble Sort. Here bubble sort changes the postion of numbers or changing an unordered sequence into an ordered sequence.