Codes from Developers

C#

search,element,array,indices,index

This Code Shows How to Search an element with Array Indices


Delphi

FMXInteractiveGestures,delphi

This interactive gestures example is designed for a touch screen interface. The example works on both Windows 8 and Windows 7. The Add Picture option makes an Open dialog appear, where you can select pictures (.jpg, .jpeg, .bmp, .png – more extensions can be added in the procedure TForm36.MenuItem1Click). The pictures are added as 200x200 images on the form (one on top of the other if more than one picture is selected). You can manipulate the picture(s) by using interactive gestures: Pan – moves picture around Zoom – makes picture smaller/bigger Rotate – rotates the picture Press and Tap – deletes the picture TGestureEventInfo is used by the interactive gesture procedures.


C#

c#,generate,fibonacci,series

This Code Shows How to Generate Fibonacci Series


PHP

Paginating,mySQL,data

Paginating the mySQL data


C#

c#,event,interface

This Code Shows How to IIlustrate Handling an Event Declared in an Interface


C#

c#,create,generic,delegate

This Code Creates Generic Delegate


Delphi

FileAttributes,delphi,getting,setting

This examples demonstrates the use of getting and setting the attributes to a file.


Java

Background,tasks,java

Background tasks in Java


PHP

Connect,MySQL,database,php

Connect to a MySQL database in php


C#

c#,display,abbreviation,of,text

This Code Shows How to Display the Abbreviation of a Text


C#

reverse,c#,string,function

This Code Reverses a String with Predefined Function


C#

c#,factors,factor,of,number

This Code Shows How to Display the Factors of the Entered Number


Java

Copy,items,from,one,JList,to,another,JList,java

Copy items from one JList to another JList in Java


JavaScript

Loading,JSON,with,Ajax,Javascript

Loading JSON with Ajax


Delphi

DownNumGlyphs,DownGlyph,,UpNumGlyphs,,UpNumGlyph,delphi

This example shows how to dynamically change the Vcl.Samples.Spin.TSpinButton.DownNumGlyphs and the Vcl.Samples.Spin.TSpinButton.DownGlyph of a Vcl.Samples.Spin.TSpinButton. The same principle is applied for Spin.TSpinButton.UpNumGlyphs and Spin.TSpinButton.UpNumGlyph. To do this example, you need two .bmp files that have drawn on them the 4 states of the button listed in Vcl.Samples.Spin.TSpinButton.DownGlyph. glyphd.bmp is used for the Down button and glyphu.bmp--for the Up button.


Delphi

Margins,and,AlignWithMargins,properties,delphi

This example evidences the usage of the Margins and AlignWithMargins properties. Note that Margins only work when AlignWithMargins is set to True and Align is not alNone.


PHP

Database,Searching,Class,php

Database Searching Class in PHP


C#

linq,to,xml,c#

linq to xml samples


CSS HTML JavaScript

resize,image,base64,javascript

This code block resizes base64 image on client side using javascript


C++

Merge,Sort,c++

Merge Sort c++