text stringlengths 14 6.51M |
|---|
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
unit Unit1;
interface
use... |
unit BTMemory_x86_64;
{ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Memory DLL loading code
* ------------------------
*
* Original C Code
* Memory DLL loading code
* Version 0.0.4
*
* Copyright (c) 2004-2015 by Joachim Bauch / mail@joachim-bauch.de
* http://www.joac... |
unit MyRichEdit;
interface
uses
ComCtrls, Graphics,
Nodes, Repr;
type
TMyRichEdit =
class(TRichEdit)
protected
FRepr: TRepr;
FTree: TNode;
FFocus: TNode;
FLine: String;
FSelStart: Integer;
FSelLength: Integer;
procedure BuildLine;
procedure WriteNode(ANode... |
unit TestSpaceBeforeBrackets;
{(*}
(*------------------------------------------------------------------------------
Delphi Code formatter source code
The Original Code is TestSpaceBeforeBrackets, released April 2007.
The Initial Developer of the Original Code is Anthony Steele.
Portions created by Anthony ... |
unit Form.Alert;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ClipBrd;
procedure AlertCreate(const Sender: TForm; const Msg: String);
type
TfAlert = class(TForm)
gBorder: TGroupBox;
lMessage: TLabel;
tTransparent: TTimer;
... |
unit HardCodings;
interface
uses
Classes;
function HardCodedMap(AOwner: TComponent): TMetroMap;
implementation //===============================================================
function HardCodedMap(AOwner: TComponent): TMetroMap;
var
VMetroMap: TmetroMap;
VLine: TVisLine;
VBitmap: TBitmap;
... |
{*********************************************}
{ TeeBI Software Library }
{ Using TeeChart "Functions" as BI providers }
{ Copyright (c) 2015-2016 by Steema Software }
{ All Rights Reserved }
{*********************************************}
unit FMXBI.ChartFunctions;
{$DEF... |
unit UzslEditors;
interface
Uses
Classes, SysUtils, Dialogs, DesignIntf, DesignEditors, Forms, VCLEditors;
Type
TFileNameProperty = class(TMPFileNameProperty)
public
Procedure Edit; override;
end;
TDBPropertyEditor = class(TStringProperty)
protected
Procedure GetNames(Strings: TStrings);virtual; ... |
unit frmMenuUnit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, FireDAC.St... |
unit SIBAPI;
// SuperIB
// Copyright © 1999 David S. Becker
// dhbecker@jps.net
// www.jps.net/dhbecker/superib
{$I FIBPlus.inc}
interface
uses IB_Intf, SIBGlobals;
type
// data types used to interface with the InterBase API
SIB_PVoid = ^Pointer;
SIB_PPChar = ^PAnsiChar;
SIB_L... |
{
AD.A.P.T. Library
Copyright (C) 2014-2018, Simon J Stuart, All Rights Reserved
Original Source Location: https://github.com/LaKraven/ADAPT
Subject to original License: https://github.com/LaKraven/ADAPT/blob/master/LICENSE.md
}
unit ADAPT;
{$I ADAPT.inc}
{$IFDEF FPC}
{$IFNDEF ADAPT_SUPPRESS_VE... |
unit uTesteShell;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Registry, LMDCustomComponent, LMDSysInfo, JamSelectionList,
ExtCtrls, ShellLink, JAMDialogs;
type
TForm19 = class(TForm)
Memo1: TMemo;
Panel1: TPanel;
Button2: TButton;
... |
unit wavewrite;
{$mode delphi}
interface
uses
Classes, SysUtils, mmsystem, syncobjs;
type
TWaveHeader = record
RIFF,
filesize,
WAVE,
fmt,
fmtSize: UInt32;
waveFormat: PCMWAVEFORMAT;
data,
datasize: Uint32;
end;
TWaveRecorderAudioState = (asStartSilence, ... |
{$mode objfpc}{$H+}{$J-}
uses
SysUtils;
type
TGun = class
end;
TPlayer = class
Gun1, Gun2: TGun;
constructor Create;
destructor Destroy; override;
end;
constructor TPlayer.Create;
begin
inherited;
Gun1 := TGun.Create;
raise Exception.Create('Вызваем exception из constructor-а!');
Gun2 :... |
unit Rx.Schedulers;
interface
uses Classes, Rx, Generics.Collections;
type
TCurrentThreadScheduler = class(TInterfacedObject, IScheduler, StdSchedulers.ICurrentThreadScheduler)
public
procedure Invoke(Action: IAction);
end;
TMainThreadScheduler = class(TInterfacedObject, IScheduler, StdSched... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 16384,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
August '1999
Problem 19 O(N2) Dfs Method
}
program
BiConnectedComponents;
const
MaxN = 100;
var
N : Integer;
A : array [0 .. MaxN, 0 .. MaxN] of Integer;
M, B : array [1 .. MaxN] of Boolea... |
unit IdLogDebug;
interface
uses
Classes,
IdLogBase;
type
TIdLogDebugTarget = (ltFile, ltDebugOutput, ltEvent);
TIdLogDebug = class(TIdLogBase)
protected
procedure LogStatus(const AText: string); override;
procedure LogReceivedData(const AText: string; const AData: string); override;
procedure ... |
unit ncgShell;
interface
uses Windows, SysUtils, Classes, Registry, madKernel, Dialogs;
type
TnexShellDir = (sdDesktop, sdStartMenu, sdPrograms, sdStartup);
TnexExplorerShellfolder = (esfShellFolders, esfUserShellFolders);
function GetShellDir(aShellDir: TnexShellDir; aUser, aNexCafe: Boolean): String;
function... |
{
"Socket Handle Pool" - Copyright (c) Danijel Tkalcec
@exclude
}
unit rtcSocketPool;
{$INCLUDE rtcDefs.inc}
interface
uses
rtcTrashcan,
Windows,
SysUtils,
Classes,
rtcSyncObjs,
rtcLog,
rtcThrPool;
procedure rtcEnterSocket;
procedure rtcLeaveSocket;
// Get socket (need to call rtcEnterSocket... |
unit constexpr_2;
interface
implementation
function Add(a, b: Int32): Int32; pure;
begin
Result := a + b;
end;
var G1, G2: Int32;
procedure Test;
begin
G1 := Add(1, 2);
G2 := Add(G1, 1);
end;
initialization
Test();
finalization
Assert(G1 = 3);
Assert(G2 = 4);
end. |
unit TMHtmlWindow;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, SHDocVw, StdCtrls, JvGradient, ExtCtrls, TMStruct,
JvExControls;
type
THtmlWindow = class(TForm)
TopPanel: TPanel;
AboutHeader: TLabel;
JvGradient2: TJvGradient;
Bot... |
unit Test.Unicode;
interface
uses
Deltics.Smoketest;
type
Utils = class(TTest)
procedure IsHiSurrogateReturnsFalseForNonHiSurrogates;
procedure IsHiSurrogateReturnsTrueForHiSurrogates;
procedure IsLoSurrogateReturnsFalseForNonLoSurrogates;
procedure IsLoSurrogateReturnsTrueFo... |
{------------------------------------------------------------------------------
This file is part of the MotifMASTER project. This software is
distributed under GPL (see gpl.txt for details).
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even th... |
unit ClntMain;
{ This demo uses the IBLOCAL alias which is setup by the install program
when you install Delphi 5.0 if you have installed Local Interbase.
This example demonstrates how ClientDataSets can be used in a master-detail
application. This is the client application. You must compile and
run the Serv... |
(*
Name: UfrmVisualKeyboardExportBMPParams
Copyright: Copyright (C) SIL International.
Documentation:
Description:
Create Date: 23 Aug 2006
Modified Date: 18 May 2012
Authors: mcdurdin
Related Files:
Dependencies:
Bugs:
Todo: ... |
unit uEvent;
interface
uses
Soap.InvokeRegistry, System.Types, Soap.XSBuiltIns, Soap.encddecd,
System.IOUtils, FMX.Dialogs, FMX.Forms, Classes, SysUtils, System.UITypes,
System.Variants,
FMX.Graphics, Data.DB, Data.DbxSqlite, Data.SqlExpr;
type
TEvent = class(TCollectionItem)
public
public... |
unit GridViewForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, cxGraphics,
cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, Vcl.StdCtrls, cxButtons,
cxClasses, cxPropertiesStore, GridFram... |
(* HashChaining: SWa, modified by MM, 2020-03-11 *)
(* ------------- *)
(* Fun with hashing and separate chaining. *)
(* ========================================================================= *)
... |
unit BanksSearch;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseSearch, Data.DB, Vcl.StdCtrls,
Vcl.Grids, Vcl.DBGrids, RzDBGrid, Vcl.Mask, RzEdit, RzLabel,
Vcl.Imaging.pngimage, Vcl.ExtCtrls, RzPanel, R... |
unit CachedUp;
{ This demo uses the IBLOCAL alias which is setup by the install program
when you install Delphi and you have installed Local Interbase.
See the file ABOUT.TXT for a description of this demo. }
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
DBTables, ... |
PROGRAM Sorting;
var numComp, numAssign: longint;
type IntArray = array [1..100] of integer;
FUNCTION LT(a, b: integer): boolean;
BEGIN (* LT *)
Inc(numComp);
LT := a < b;
END; (* LT *)
PROCEDURE Swap(var a, b: integer);
var x: integer;
BEGIN (* Swap *)
x := a;
a := b... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 1024,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
September '1999
Problem 40 O(N3) Dynamic Method
}
program
WeightBoundedMinimumDistance;
const
MaxN = 100;
var
N, E, U, V, W : Integer;
G, D : array [0 .. MaxN, 1 .. MaxN] of Word;
P : array... |
unit MediaProcessing.Drawer.RGB;
interface
uses SysUtils,Windows,Classes, MediaProcessing.Definitions,MediaProcessing.Global,Graphics;
type
TMediaProcessor_Drawer_Rgb=class (TMediaProcessor,IMediaProcessor_Drawer_Rgb)
private
FTextFont : TFontData;
protected
procedure SaveCustomProperties(const aWrite... |
unit ActiveClientsSearch;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseSearch, Data.DB, RzButton,
Vcl.Grids, Vcl.DBGrids, RzDBGrid, Vcl.StdCtrls, Vcl.Mask, RzEdit, RzLabel,
Vcl.Imaging.pngimage, Vcl.Ex... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ }
{ Copyright (c) 1995-2002 Borland Software Corporation }
{ ... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q+,R+,S+,T-,V+,X+,Y+}
{$M 1024,0,655360}
{
by Behdad Esfahbod
Algorithmic Problems Book
April '2000
Problem 74 Simulating
}
program
Mariage;
uses
Graph;
const
MaxN = 400;
MaxM = 400;
MaxK = 10000;
MaxT = 600;
dx : array [0 .. 4] of Integer = (0, 1, 0, -1, 0);
dy : a... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit uQrCodeGeneratorDemoFMX;
interface
uses
SysUtils,
IOUtils,
UITypes,
FMX.Dialogs,
FMX.Graphics,
QlpIQrCode,
QlpQrCode,
QlpIQrSegment,
QlpQrSegment,
QlpQrSegmentMode,
QlpBitBuffer,
QlpConverters,
QlpQRCodeGenLibTypes;
type
TQrCodeGeneratorDemoFMX = class sealed(TObject)
strict priva... |
{*******************************************************}
{ }
{ Borland Delphi Test Server }
{ }
{ Copyright (c) 2001 Borland Software Corporation }
{ ... |
unit U_ListFunctions;
interface
uses U_Typeset;
function IsNumber(c : char) : boolean; // checks if c is a number
function IsUpper(c : char) : boolean; // checks if c is UPPERCASE
function IsLower(c : char) : boolean; // checks if c is lowercase
procedure PrintOut(s : PItem);
// Wh... |
{$I NEX.INC}
unit ncDMCaixa;
{
ResourceString: Dario 12/03/13
}
interface
uses
SysUtils, Classes, DB, nxdb, kbmMemTable, nxllTransport,
nxptBasePooledTransport, nxtwWinsockTransport, nxsdServerEngine,
nxreRemoteServerEngine, nxllComponent, ncCaixas,
uNexTransResourceStrings_PT, frxDBSet, frxExportPDF, f... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
unit Unit1;
interface
use... |
{
InCo- Fing
Laboratorio 2018
Programa Principal
}
program Tarea;
(****************************************)
(* Definicion de tipos dados en la letra *)
(****************************************)
{$INCLUDE estructuras.pas}
type
TipoComando = (enc, des, largo, aparece, salir, error);
Comando = record... |
unit xElecTA;
interface
uses xElecLine, xElecPoint, System.Classes, System.SysUtils, xElecFunction ;
type
/// <summary>
/// 电流互感器
/// </summary>
TElecTA = class
private
FOnValueChnage: TNotifyEvent;
FTAFirstValue: Double;
FTASecondValue: Double;
FTAName: string;
FFirstCu... |
unit uSortInfo;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, xSortInfo;
type
TfSortInfo = class(TForm)
lblMemo: TLabel;
mmoSortRemark: TMemo;
lbl1: TLabel;
edtSortName: TEdit;
pnl1: TPanel;
bvl1: TB... |
unit VCLBI.Editor.Gridify;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BI.DataItem, BI.Workflow, Vcl.ComCtrls,
Vcl.StdCtrls, Vcl.ExtCtrls, VCLBI.Editor.ListItems,
VCLBI.Editor.DataComponent;
type
TGridifyEditor = class... |
unit URegraCRUDCarteiraVacinacao;
interface
uses
URegraCRUD
, URepositorioDB
, URepositorioCarteiraVacinacao
, UEntidade
, UCarteiraVacinacao
;
type
TRegraCRUDCarteiraVacinacao = class(TRegraCRUD)
protected
procedure ValidaInsercao(const coENTIDADE: TENTIDADE); override;
public
constructo... |
unit SearchCategoryQuery;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseQuery, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Copyright (c) 2020-2020 Skybuck Flying
// Copyright (c) 2020-2020 The Delphicoin Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-... |
unit fConsultBSt;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, ORCtrls, StdCtrls, ORFn, uConsults, fBase508Form,
VA508AccessibilityManager;
type
TfrmConsultsByStatus = class(TfrmBase508Form)
pnlBase: TORAutoPanel;
lblStatus: TLabel;
radSort: T... |
unit fODGen;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
fODBase, ComCtrls, ExtCtrls, StdCtrls, ORDtTm, ORCtrls, ORFn, rODBase, fBase508Form,
VA508AccessibilityManager;
type
TDialogCtrl = class
public
ID: string;
DataType: Char;
Required: Boolean;
... |
{-----------------------------------------------------------------------------
Author: Roman Fadeyev
Purpose: Диалог для выбора индикатора для вставки его в чарт
History:
-----------------------------------------------------------------------------}
unit FC.Trade.CreateAlerterDialog;
{$I Compiler.inc}
interf... |
unit MediaStream.Writer.Wave;
interface
uses Windows,Classes,SysUtils,MMSystem,MediaProcessing.Definitions;
type
//Запись в Wav-файл (только Audio-потока)
TMediaStreamWriter_Wave = class
private
FStream: TStream;
FFileName: string;
FDataBytesWritten : integer;
FFormat: TPCMWaveFormat;
FOwn... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2014 Embarcadero Technologies, Inc. }
{ ... |
unit fBaseFrame;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs;
type
TfrmBase = class(TFrame)
private
{ Private declarations }
FSubFrame: TfrmBase;
FRefCtrl: TDataModule;
function GetCanClos... |
unit ANovaComposicao;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
Grids, CGrades, StdCtrls, Mask, DBCtrls, Tabela, DBKeyViolation, DB, DBClient,
BotaoCadastro, Buttons, Componentes1, ExtCtrls, PainelGradiente, Localizacao, UnDadosProduto,
UnDad... |
program Prog2;
function letter(s: string; i: integer) : integer;
const
letters = ['a'..'z', 'A'..'Z']; { алфавит }
var
count: integer;
begin
if s[i] in letters then count := 1 else count := 0; { если s[i] это буква -- будем прибавлять 1 иначе 0 }
if i < length(s) then count := count + letter(s, i + 1); ... |
unit UServerContainer;
interface
uses
SysUtils, Classes, IniFiles,
DSTCPServerTransport, DSServer, DSCommonServer;
type
TServerContainer = class(TDataModule)
DSServer1: TDSServer;
DSTCPServerTransport1: TDSTCPServerTransport;
DSServerClass1: TDSServerClass;
procedure DSServerClass1... |
unit KZDeskManagers;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, LMessages, ComCtrls, ExtCtrls, Dialogs,
LCLIntf, LCLType, SrcEditorIntf, IDEMsgIntf;
type
TKZParentType = (kzptParent, kzptParentWindow, kzptDock, kzptNone);
type
TKZLMessageHandlerEvent = procedure(... |
unit CounterU;
interface
uses
Windows, Messages, SysUtils, Classes, HTTPApp, HTTPProd, SiteProd,
WebAdapt, WebComp, WebModu;
type
TCounter = class(TWebPageModule)
Adapter: TAdapter;
Count: TAdapterField;
Increment: TAdapterAction;
Dec: TAdapterAction;
PageProducer: TPageProducer;
Arg1: ... |
unit Unit_Main_Gauche;
interface
uses
Main, Classes, Forms, SysUtils, ExtCtrls, Graphics,
mmSystem, Notes_MIDI, Musiques;
type
TMain_Gauche = class(TThread)
private
idNote: integer;
procedure OnTerminateProcedure(Sender : TObject);
protected
procedure ToucheDown;
procedure To... |
unit uFeaPocket;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ExtCtrls, StdCtrls, Math, uObjectFeature,
Buttons, jpeg, Vcl.Imaging.pngimage;
type
TfFeaPocket = class(TForm)
Panel1: TPanel;
PgCtrl: TPageControl;
tabPocketCirc: TTabShe... |
{
$Project$
$Workfile$
$Revision$
$DateUTC$
$Id$
This file is part of the Indy (Internet Direct) project, and is offered
under the dual-licensing agreement described on the Indy website.
(http://www.indyproject.org/)
Copyright:
(c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserv... |
unit array_dynamic_4;
interface
implementation
type
TIntArray = array of int32;
var
A: TIntArray;
G, X: Int32;
procedure Test(Arr: TIntArray);
var
L, R: Int32;
begin
L := 0;
R := 9;
X := L + (R - L) shr 1;
G := Arr[X];
end;
initialization
A := [4, 7, 1 , 6, 2, 0, 3, 5, 9, 8];
Test(A);
f... |
unit untUserManager;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, GridsEh, DBGridEh, StdCtrls, DB,
Mask, RzEdit, RzDBEdit, RzButton, RzLabel, ImgList,
RzPanel, ActnList, Menus, DBGridEhGrouping;
type
TfrmUserManager = class(TForm)
pnlTop: ... |
unit Room;
interface
uses
Classes, SysUtils, Contnrs,
Client;
type
EIncorrectRoomName = class(Exception);
ERoomExists = class(Exception);
EAlreadyInChannel = class(Exception);
TRoom = class
constructor Create(RoomName: string);
public
dRoomName: string;
dUsers: TOb... |
unit Rollbar;
interface
uses
{$IF CompilerVersion > 26} //Delphi XE6 or later.
System.JSON;
{$ELSE}
Data.DBXJSON;
{$ENDIF}
type
IRollbarRequest = interface
function ToJSON: string;
function GetUnixTimestamp: Int64;
function GetAccessToken: string;
function GetClient: TJSONObje... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
{
En los datos de entrada se proporcionan dos tiempos como enteros de la forma hhmm
donde hh representa las horas (menos de 24) y mm los minutos (menos de 60).
Determine la suma de estos dos tiempos, y exhiba el resultado en la forma d hhmm,
donde d es días, ya sea cero o uno.
Ejemplo de entrada : 1345 2153.
Ejemplo d... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 2010-2011 Embarcadero Technologies, Inc. }
{ ... |
{ Invokable interface IuTravel }
unit uTravelIntf;
interface
uses Soap.InvokeRegistry, System.Types, Soap.XSBuiltIns, Soap.encddecd,
System.IOUtils, FMX.Dialogs, FMX.Forms, Classes, SysUtils, System.UITypes,
System.Variants,
FMX.Graphics, Data.DB, Data.DbxSqlite, Data.SqlExpr;
type
TTravelServ =... |
unit ufirparalinha;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Buttons,
StdCtrls, ExtCtrls, ButtonPanel;
type
{ TfrmIrParaLinha }
TfrmIrParaLinha = class(TForm)
ButtonPanel1 : TButtonPanel;
edLinha: TEdit;
Label1: TLabel;
Label2: TLa... |
unit GSyncObjTests;
interface
uses
{$IFDEF FPC} contnrs, fgl {$ELSE}Generics.Collections, System.Rtti{$ENDIF},
Classes,
SyncObjs,
Gevent,
Greenlets,
SysUtils,
GInterfaces,
Hub,
GreenletsImpl,
AsyncThread,
GreenletTests,
TestFramework;
const
cTestSeqCount = 10;
cTestSeq:... |
unit frBands;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, StdCtrls, uCfgStorage;
type
{ TfraBands }
TfraBands = class(TFrame)
chk10m: TCheckBox;
chk12m: TCheckBox;
chk15m: TCheckBox;
chk160m: TCheckBox;
chk17m: TCheckBox;
chk20m: TCheckBox;
ch... |
unit DX.Messages.Dialog.UITypesHelper;
interface
uses
System.Classes, System.SysUtils, System.UITypes,
DX.Messages.Dialog.Types;
type
TUITypesHelper = class(TObject)
public
class function MessageButtonFromDialogOption(AOption: TDialogOption): TMsgDlgBtn;
class function MessageButtonsFromDialogOptions... |
{******************************************}
{ }
{ vtk GridReport library }
{ }
{ Copyright (c) 2003 by vtkTools }
{ }
{******************************************}
{Regi... |
unit TestObservers;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, contnrs;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
end;
//----------------------------------------------------
TObserver = class... |
unit dwm_unit;
interface
uses windows;
const
WM_DWMCOMPOSITIONCHANGED = $031E;
type
_DWM_BLURBEHIND = record
dwFlags: dword;
fEnable: bool;
hRgnBlur: HRGN;
fTransitionOnMaximized: bool;
end;
P_DWM_BLURBEHIND = ^_DWM_BLURBEHIND;
_DWM = class
private
IsVista: boolean;
hDwmLib... |
unit CalcTarifaBairro;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Padrao1, cxGraphics, cxControls, cxLookAndFeels, StrUtils,
cxLookAndFeelPainters, cxContainer, cxEdit, cxStyles, cxCustomData, cxFilter,
cxData, cxDataStorage, DB, cxDBData, cxChec... |
unit ProcessListUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ImgList, ActnList, Menus, ToolWin, StdCtrls;
type
TFormProcessList = class(TForm)
ImageListSort: TImageList;
ImageListTools: TImageList;
ActionListTools: TA... |
unit FtpDataModule;
interface
uses
SysUtils, Classes, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdFTP;
type
TFtpData = class(TDataModule)
id_FTP: TIdFTP;
procedure DataModuleCreate(Sender: TObject);
procedure id_FTPStatus(ASender: TObject; const AStatus: TIdStatus;
... |
unit ORStaticText;
(*************************************************************************************************
OR Static Text control - Static Text control that adds multi-line capability;
mainly used to replace label controls that speech engines can't read.
************************... |
unit VypoctyBody;
interface
uses Typy, ComCtrls, SysUtils;
function VzdialenostDvochBodov( A, B : TBod ) : Real;
function TaziskoBodov( Zoznam : TListItems ) : TBod;
implementation
function VzdialenostDvochBodov( A, B : TBod ) : Real;
begin
VzdialenostDvochBodov := Sqrt( Sqr(A.X - B.X) + Sqr(A.Y - B.Y) );
en... |
// Ported CrystalDiskInfo (The MIT License, http://crystalmark.info)
unit SMARTSupport.JMicron61x;
interface
uses
BufferInterpreter, Device.SMART.List, SMARTSupport, Support;
type
TJMicron61xSMARTSupport = class(TSMARTSupport)
private
const
EntryID = $AA;
public
function IsThisStorageMine(
... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ Copyright(c) 2014-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ }
{ Copyright (c) 2000, 2001 Borland Software Corp. }
{ ... |
unit ILTranslator;
interface
uses
System.SysUtils, System.Classes, Generics.Defaults, Generics.Collections, System.Math, NPCompiler.Utils,
NPCompiler.DataTypes, IL.Types, IL.TypeInfo, VM.Core, VM.Invoke, VM.Types; // system
const
C_1M_ITEMS = 1024*1024;
cRttiUnitName = 'sys.rtti';
type
TNativeUIntArray... |
unit TableConditionUnit;
interface
function cFirstTable ( const CondNumber : integer ) : boolean;
function cSecondTable ( const CondNumber : integer ) : boolean;
function cThirdTable ( const CondNumber : integer ) : boolean;
function cFourthTable ( const CondNumber : integer ) : boolean;
function cFifthTable ... |
unit fmImageViewU;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, ExtDlgs, JPeg, Mask, DB,
DBCtrls, Grids, DBGrids, GridsEh, DBGridEh;
type
TfmImageView = class(TForm)
pnImageControls: TPanel;
ScrollBox1: TSc... |
{Copyright (C) 2013 Benito van der Zander
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the ... |
unit Unit4;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
IniFiles,
Synautil,
httpsend,
msxml,
xmldom,
XMLIntf,
msxmldom,
XMLDoc;
type
TForm4 = class(TForm)
... |
{
$Project$
$Workfile$
$Revision$
$DateUTC$
$Id$
This file is part of the Indy (Internet Direct) project, and is offered
under the dual-licensing agreement described on the Indy website.
(http://www.indyproject.org/)
Copyright:
(c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserv... |
unit ClientMain;
{ RDS Client Demo -
Open and Run RDSServer.DPR before running this project.
You can switch between using the supplied AppServer and
the default RDS DataFactory by selecting from the Combobox.
When using the DataFactory the ConnectionString on the dataset is
used by the DataFactory.Query met... |
unit add_string_seg_2;
interface
implementation
function AddStringSegment(const Str, Seg: string; const Separator: string): string;
var
sl: int32;
begin
sl := length(Separator);
if (Str <> '') and
(Seg <> '') and
(copy(Str, length(Str) - sl, sl) <> Separator) and
(copy(Seg, 0, sl) <> Separa... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC IBM DB2 driver }
{ }
{ Copyright(c) 2004-2018 Embar... |
{*******************************************************}
{ }
{ Borland Delphi Test Server }
{ }
{ Copyright (c) 2000-2001 Borland Software Corporation }
{ ... |
unit ufrmNewCourse;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, TypInfo, StdCtrls, uclAllClasses;
type
TfrmNewCourse = class(TForm)
pnlNewCourse: TPanel;
pnlInner: TPanel;
lblCourseName: TLabel;
lblHGeading: TLabel;
... |
{ GS1 interface library for FPC and Lazarus
Copyright (C) 2020-2021 Lagunov Aleksey alexs75@yandex.ru
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License,... |
unit MD5.Logs;
interface
uses
MD5.Utils,
System.Classes,
System.SysUtils,
System.StrUtils;
const
LOG_FILENAME_STAMP = 'dd-mm-yyyy@hh-nn-ss,z';
LOG_FILENAME_PREFIX = 'log_';
LOG_FILENAME_EXT = '.txt';
type
TLog = class
private
FStream: TStreamWriter;
FPrintDateTime: Boolean;
public
... |
unit oCoverSheetParam;
{
================================================================================
*
* Application: CPRS - Coversheet
* Developer: doma.user@domain.ext
* Site: Salt Lake City ISC
*
* Description: Simple object that maintains the parameters for a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.