text stringlengths 14 6.51M |
|---|
unit fDeferDialog;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.UITypes,
System.SysUtils,
System.Variants,
System.Classes,
System.DateUtils,
System.Actions,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Vcl.ExtCtrls,
Vcl.ActnList,
Vcl.ComCtrls;
type
TDe... |
unit dxGridMenus;
interface
uses Classes, Forms, Menus, Windows, dxDBGrid, dxTL, dxDBCtrl, Dialogs;
type
TdxCustomDBGridPopupMenu = class
private
fPopupMenu: TPopupMenu;
fGridColumn: TdxDBGridColumn;
protected
procedure CreateMenuItems; virtual; abstract;
procedure BeforePopup; virtual;
fu... |
{
*****************************************************************************
* *
* See the file COPYING.modifiedLGPL.txt, included in the lazarus *
* directory, for details about the copyright/license. ... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
{
Base maze implementation classes for the Lazarus Mazes program
Copyright (C) 2012 G.A. Nijland (eny @ lazarus forum http://www.lazarus.freepascal.org/)
This source 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... |
unit URepositorioCarteiraVacinacao;
interface
uses
UCarteiraVacinacao
, UEntidade
, UPaciente
, URepositorioPaciente
, URepositorioDB
, SqlExpr
;
type
TRepositorioCarteiraVacinacao = class(TRepositorioDB<TCARTEIRA_VACINACAO>)
private
FRepositorioPaciente : TRepositorioPaciente;
public
c... |
{$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
April '2000
Problem 134 O(N) Greedy Method
}
program
Glasses;
const
MaxN = 100;
var
N, M : Integer;
G : array [1 .. MaxN] of Integer;
A, B, C, D : Integer;
I : Integer;
procedure ReadI... |
unit FormWizardBase;
(*
FormWizardBase.pas/dfm
----------------------
Begin: 2005/06/17
Last revision: $Date: 2008-12-10 21:03:31 $ $Author: areeves $
Version number: $Revision: 1.15 $
Project: APHI General Purpose Delphi Libary
Website: http://www.naadsm.org/opensource/delphi/
Author: Aaron Reeves <aaron.reeves@naads... |
program generalEnvUnix(input,output);
{$ifdef UNIX}uses BaseUnix,SysUtils;{$endif}
{$ifdef WINDOWS}uses Windows,SysUtils;{$endif}
function GetUserName: String;
begin
GetUserName:=GetEnvironmentVariable('USER');
end;
function GetComputerName: String;
var
aUtsName: UtsName;
begin
GetComputerName:='';
aUts... |
unit xWiringError;
interface
uses System.Classes, System.SysUtils, xFunction;
type
/// <summary>
/// 相序故障
/// </summary>
TPHASE_RECT = class
private
FAValue: Boolean;
FBValue: Boolean;
FCValue: Boolean;
FOnChanged: TNotifyEvent;
FNValue: Boolean;
procedure SetAValue... |
unit u_xPL_Header;
{==============================================================================
UnitName = uxPLHeader
UnitDesc = xPL Message Header management object and function
UnitCopyright = GPL by Clinique / xPL Project
======================================================================... |
/// /////////////////////////////////////////////////////////////////////////////
/// ///
/// EXCEPTION HOOK UNIT ///
/// ///
/// -DESCRIPTION ///
/// This unit is responsible for hooking into the exception ///
/// and re... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLFileMD5<p>
Doom3 MD5 mesh and animation vector file format implementation.<p>
<b>History :</b><font size=-1><ul>
<li>10/11/12 - PW - Added CPP compatibility: changed vector arrays to records
<li>24/03/07 - DaStr - Ad... |
program Greetings;
const
message = ' Welcome to the world of Pascal ';
type
name = string;
var
firstname, surname: name;
begin
writeln('Please enter your first name: ');
readln(firstname);
writeln('Please enter your surname: ');
readln(surname);
writeln;
writeln(message, ' ', firstname, ' ', surna... |
unit UnUsuarioListaRegistrosView;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, DBGrids, StdCtrls, JvExControls, JvButton, DB,
JvTransparentButton, ExtCtrls,
{ Fluente }
Util, DataUtil, UnModelo, UnUsuarioListaRegistrosModelo, Componentes,
UnApli... |
unit adot.Log;
(*
Example 1:
Uses
adot.Log, VCL.Log;
procedure TFormMain.FormCreate(Sender: TObject);
begin
AppLog := TMixLog.Create([
TVCLStringsLog.Create(MemoLog.Lines),
TSyncFileLog.Create(ChangeFileExt(ParamStr(0), '.log'))
]);
end;
Example 2:
uses
adot.Log;
... |
unit record_cards;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, metadata,
StdCtrls, db, ExtCtrls, Buttons, edit_database, types, connection_transaction;
type
TRecordCard = class;
TActionType = (atInsert, atUpdate, atDelete);
TCardsManager = class
... |
{ Drawing engine based on Lazarus IntfGraphics routines
(C) 2014 Werner Pamler (user wp at Lazarus forum https://forum.lazarus.freepascal.org)
License: modified LGPL with linking exception (like RTL, FCL and LCL)
See the file COPYING.modifiedLGPL.txt, included in the Lazarus distribution,
for details about th... |
{ Program CANLIST
*
* List all CAN controllers connected to the system.
}
program canlist;
%include 'base.ins.pas';
%include 'can.ins.pas';
var
devs: can_devs_t; {devices list}
dev_p: can_dev_ent_p_t; {pointer to current devices list entry}
begin
can_devlist_get (util_top_mem... |
unit UMensagemAguarde;
interface
uses
SysUtils, Classes, Variants, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls;
type
TFrmMensagemAguarde = class(TForm)
MensagemPanel: TPanel;
procedure FormActivate(Sender: TObject);
private
procedure SetPositionScreean(ControlLock: TWinCont... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC wait time user interface }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit ImageFilesUnit;
////////////////////////////////////////////////////////////////////////////////
// //
// Description: Various routines that can be performed to help in processing //
// image files, or lists of files ... |
unit Alert;
interface
type
TAlert = class(TObject)
private
FItems: array of string;
function GetItem(const i: integer): string;
function GetCount: integer;
public
procedure Add(const al: string);
procedure Clear;
property Items[const i: integer]: string read GetItem;
property Coun... |
{*******************************************************}
{ }
{ Delphi REST Client Framework }
{ }
{ Copyright(c) 2013-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
// GLShadowHDS
{: Implements an HDS that automatically generates a terrain lightmap texture.<p>
<b>History : </b><font size=-1><ul>
<li>10/11/12 - PW - Added CPP compatibility: changed vector arrays to records
<li>23/08/10 - Yar - Added OpenGLTokens to uses, replaced OpenGL1x functions to OpenGLAdapter... |
unit UpPicPageMod;
interface
uses
Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd,
WebAdapt, WebComp;
type
TUpPicPageModule = class(TWebPageModule)
PageProducer: TPageProducer;
UploadAdapter: TAdapter;
Upload: TAdapterAction;
UploadedFiles: TStringsValuesList;
UploadFile: TA... |
{
@html(<b>)
Encryption Class
@html(</b>)
- Copyright (c) Danijel Tkalcec
@html(<br><br>)
This unit implements the encryption class @Link(TRtcCrypt),
which is used by @Link(TRtcClientModule) and @Link(TRtcServerModule)
to crypt and decrypt all RTC Data when AutoEnctyption is activated.
}
unit rtcCrypt... |
unit BI.Email.Indy;
interface
type
TBIEmailIndy=class
public
Host,
EmailFrom,
Username,
Password : String;
procedure Send(const AUser,AEmail,ASubject,AContent:String);
class function ValidAddress(const Email:String):Boolean; static;
end;
implementation
|
unit mml_error;
{-------------------------------------------------------------------------------
ソフト:テキスト音楽「サクラ」
作 者:クジラ飛行机 https://sakuramml.com
説 明:MML構文エラーを管理する
履 歴:
2002/06/03 15:13 雛型作成
-------------------------------------------------------------------------------}
interface
uses
{$ifdef Win... |
unit c02p07u;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
Buttons;
type
{ TfrmColorDemo }
TfrmColorDemo = class(TForm)
bmbClose: TBitBtn;
gbpFormColor: TGroupBox;
radBlue: TRadioButton;
radFuchsia: TRadioButton;
radGreen... |
program ExampleConfiguration;
{$ifdef MSWINDOWS}{$apptype CONSOLE}{$endif}
{$ifdef FPC}{$mode OBJFPC}{$H+}{$endif}
uses
SysUtils, IPConnection, BrickServo;
type
TExample = class
private
ipcon: TIPConnection;
servo: TBrickServo;
public
procedure Execute;
end;
const
HOST = 'localhost';
PORT ... |
(* Program developed by Li Chun Kit
Compiler: FPC v3.0.4
IDE: Lazarus, Visual Studio Code *)
program ShiftCypher;
uses Crt, sysutils;
label Exit,MenuCustom,Menu,OutputErr;
const lineDisplay=100;
maxLetter=2000;
colorWriteln=TRUE;
colorWrite=FALSE;
defaultColor=White;
var use... |
unit BrickCamp.Model.TProduct;
interface
uses
Spring,
Spring.Persistence.Mapping.Attributes,
BrickCamp.Model.IProduct;
type
[Entity]
[Table('PRODUCT')]
TProduct = class
private
[Column('ID', [cpRequired, cpPrimaryKey, cpNotNull, cpDontInsert], 0, 0, 0, 'primary key')]
[AutoGenerated]
FId: I... |
unit ButtonImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB;
type
TButtonX = class(TActiveXControl, IButtonX)
private
{ Private declarations }
FDelphiControl: TButton;
FEvents: IButtonXEvents;
procedure ClickEv... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC script processing form }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit About;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, ExtCtrls;
type
TAboutBox = class(TForm)
OKButton: TButton;
Copyright: TLabel;
Bevel1: TBevel;
SKUName: TLabel;
Version: TLabel;
Image2: TImage;
PhysMem: TLabel;
... |
unit UFrmMCVersions;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, WinApi.URLMon, sLabel, sButton,
UDownloader, IdBaseComponent, IdComponent, IdTCPConnection, SuperObject,
IdTCPClient, IdHTTP,... |
PROGRAM TwelveStatements;
{
This program searches through the 4095 possible sets
of 12 statements for any which may be self-consistent.
}
CONST
max12b = 4095; { Largest 12 byte number. }
TYPE
statnum = 1..12; { statement numbers }
statset = set of statnum; { sets of statements }
VAR { global variab... |
unit DesignationList;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseGridDetail, Data.DB,
System.ImageList, Vcl.ImgList, RzButton, Vcl.StdCtrls, Vcl.Mask,
RzEdit, RzTabs, Vcl.Grids, Vcl.DBGrids, RzDBGrid... |
{header.
-----------------------------------------------------
PROGRAM-NAME : PIB4100C(무보직자 명단)
SYSTEM-NAME : 종합인사정보
SUBSYSTEM-NAME : 인사
Programmer : 김동철
Version : 1.01
Date : 1998.12.23
Update contents
1.00 1996.04.30 김동철 신규프로그램개발 처리명세서
1.01 1998.12.23 김혜진 직렬-... |
program Symmetry;
function Reverse(N: longint): longint;
{obrací pořadí cifer čísla N}
var V:longint; {výsledné číslo}
begin
V := 0;
while N > 0 do
begin
V := V * 10 + N mod 10; {k V přidáme cifru zprava}
N := N div 10 {z N odstraníme cifru zprava}
end;
Reverse := V
en... |
unit Ths.Erp.Database.Table.AyarMukellefTipi;
interface
uses
SysUtils, Classes, Dialogs, Forms, Windows, Controls, Types, DateUtils,
FireDAC.Stan.Param, System.Variants, Data.DB,
Ths.Erp.Database,
Ths.Erp.Database.Table;
type
TAyarMukellefTipi = class(TTable)
private
FDeger: TFieldDB;
FIsDefault:... |
{
SquallSound 1.2
Author: CH@$ER
E-mail: aleksandr_chaser@mail.ru
http://freefly.mirgames.ru
(C) FreeFly
Based on Squall system. (C) AntiTank
Author: Гилязетдинов Марат (Марыч)
E-Mail marat@antitank.net
Free for use. Just put my name in your credits information ;)
}
unit SquallSound;
interface
uses Windows... |
unit Ths.Erp.Database.Table.Sehir;
interface
uses
SysUtils, Classes, Dialogs, Forms, Windows, Controls, Types, DateUtils,
FireDAC.Stan.Param, System.Variants, Data.DB,
Ths.Erp.Database,
Ths.Erp.Database.Table,
Ths.Erp.Database.Table.Ulke;
type
TSehir = class(TTable)
private
FSehirAdi: TFieldDB;
... |
{
This unit is part of the LaKraven Studios Standard Library (LKSL).
Copyright (C) 2011, LaKraven Studios Ltd.
Copyright Protection Packet(s): LKSL001
--------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 ... |
PROGRAM PokePas;
USES Crt, BaseDeDatos, Utilidades, DT_Especie, DT_TipoElemental, DT_Pokedex,
GUI_Pokedex, ControladorPokedex, SysUtils;
CONST
TECLA_ESC= #27;
TECLA_ENTER= #13;
//Comandos teclas especiales.
TECLA_ESPECIAL_PRESIONADA= #0; //Al presionar una tecla especial primero se lanza este caract... |
unit NtUtils.Objects.Namespace;
interface
uses
Winapi.WinNt, Ntapi.ntobapi, Ntapi.ntseapi, NtUtils.Exceptions,
NtUtils.Objects;
type
TDirectoryEnumEntry = record
Name: String;
TypeName: String;
end;
{ Directories }
// Get an object manager's namespace path for a token (supports pseudo-handles)
fu... |
{
---------------------Program Header -------------------------------------------
PROGRAM-NAME : PIE2081C(입직직현황)
SYSTEM-NAME : 종합인사정보
SUBSYSTEM-NAME : 인사
Programmer : 이희용
Version : 1.00
Date : 2011.03.23
Update contents
1.00 2011.03.23 이희용 신규프로그램 개발
--------------------... |
{*******************************************************}
{ }
{ Borland Visibroker for Delphi Event Service }
{ }
{ PushSupplier Impl Template }
{ ... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ }
{ Copyright (c) 1999 Inprise Corporation }
{ ... |
unit Ths.Erp.Database.Table.Employee;
interface
{$I ThsERP.inc}
uses
SysUtils, Classes, Types,
FireDAC.Stan.Param, Data.DB,
Ths.Erp.Database,
Ths.Erp.Database.Table;
type
TEmployee = class(TTable)
private
FName: TFieldDB;
FSurname: TFieldDB;
FDepartmentID: TFieldDB;
FUnitID: TFieldDB;
... |
unit IdQOTDUDPServer;
interface
uses IdAssignedNumbers, IdSocketHandle, IdUDPBase, IdUDPServer, classes;
type
TIdQotdUDPGetEvent = procedure (ABinding: TIdSocketHandle; var AQuote : String) of object;
TIdQotdUDPServer = class(TIdUDPServer)
protected
FOnCommandQOTD : TIdQotdUDPGetEvent;
procedure DoO... |
unit ANU_EAX;
(*************************************************************************
DESCRIPTION : Anubis (tweaked) EAX mode functions
REQUIREMENTS : TP5-7, D1-D7/D9-D10/D12, FPC, VP
EXTERNAL DATA : ---
MEMORY USAGE : Stack: local EAX ctx in ANU_EAX_Enc_Auth/ANU_EAX_Dec_Veri
DISPLAY M... |
unit fPrintSetup;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ButtonPanel,
SpinEx, uOSForms;
type
{ TfrmPrintSetup }
TfrmPrintSetup = class(TModalForm)
ButtonPanel: TButtonPanel;
gbMargins: TGroupBox;
lblLeft: TLabel;
lblRight: TLabel... |
//
// Created by the DataSnap proxy generator.
// 2016-01-29 ¿ÀÈÄ 12:16:24
//
unit Main_Class;
interface
uses System.JSON, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System.Classes, System.SysUtils, Data.DB, Data.SqlExpr, Data.DBXDBReaders, Data.DBXCDSReaders, Data.DBXJSONRefle... |
{$B-}
unit RegularExpressions;
interface
uses
Classes;
type
TOnExpression = procedure (Sender: TObject; var Expr: Boolean) of
object;
TRegularExpressions = class(TComponent)
private
FOnExpression: TOnExpression;
FOnTrue, FOnFalse: TNotifyEvent;
procedure SetExpression(Value: Boolean);
protected... |
{ Copyright (C) 1998-2018, written by Shkolnik Mike, Scalabium
E-Mail: mshkolnik@scalabium.com
mshkolnik@yahoo.com
WEB: http://www.scalabium.com
}
unit SMDBStat;
interface
{$I SMVersion.inc}
uses
Windows, Messages, Classes, Controls, StdCtrls, DB, DBCtrls;
type
{ TSMDBStatusLbl }
... |
unit main;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX.StdCtrls, FMX.Menus, IniFiles, Windows,
FMX.ListBox, FMX.Layouts, FMX.TreeView, FMX.Objects, System.Math.Vecto... |
unit UpdateSQL;
interface
uses
{$IFDEF FPC}
LResources,
{$ENDIF}
{$IFNDEF LINUX}
Windows, Messages,
{$ENDIF}
Classes, SysUtils, Menus, ImgList, StdCtrls, ComCtrls, Buttons, ExtCtrls, Graphics,
Controls, Forms, Dialogs, DBCtrls, Grids, DBGrids, UniDacVcl, Variants,
{$IFNDEF FPC}
MemDS,
{$ELSE}
MemDataSet,
... |
// ToDo: find the maximum of three numbers;
// Способ 1: реализация функции нахождения максимума в массиве
// Способ 2: условные выражения
var a, b, c, max: real;
function max_1(a, b, c: real): real;
begin
var max := a;
if (a + b) > (a + c) then
begin
if b > a then
max := b
en... |
program calcoloArea;
var
base,altezza: integer;
area: integer;
begin
writeln('Scrivi la base');readln(base);
writeln('Scrivi l''altezza');readln(altezza);
area := base*altezza;
writeln('L''area è ', area);
end.
|
unit eidlib35;
interface
uses Windows, SysUtils, Classes;
const
EID_OK = 0;
EID_ERR_PARAM_BAD = $e1d00100;
EID_ERR_PARAM_RANGE = $e1d00101;
EID_ERR_BAD_PATH = $e1d00102;
EID_ERR_ALGO_BAD = $e1d00103;
EID_ERR_PIN_OPERATION = $e1d00104;
EID_ERR_PIN_FORMAT = $e1d00105;
EID_ERR_BAD_USAGE = $e1d00106;
EI... |
unit formconsole;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
StdCtrls, Menus;
type
{ TfmConsole }
TfmConsole = class(TForm)
edConsole: TEdit;
memoConsole: TMemo;
panelConsole: TPanel;
PopupMenu1: TPopupMenu;
procedure ed... |
//
// Created by the DataSnap proxy generator.
// 2016-01-28 ¿ÀÈÄ 9:25:11
//
unit Unit2;
interface
uses System.JSON, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System.Classes, System.SysUtils, Data.DB, Data.SqlExpr, Data.DBXDBReaders, Data.DBXCDSReaders, Data.DBXJSONReflect;
t... |
unit GD_Utils;
interface
uses
Windows,SysUtils;
const
DBG_MARK = 'GD::'; //调试标签,用来过滤
//调试输出
procedure Dbgprint(const Str:String;Args:Array of const);
//计算字符串MD5
function HashString(Str:String):String;
//计算文件MD5
function HashFile(FileName:String):String;
//创建日志
function CreateLog(Handle:Cardinal):bo... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 2016 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit ncCheckWin64;
interface
uses Windows;
function IsWow64: Boolean;
implementation
uses ncChromeUtils;
type
LPFN_ISWOW64PROCESS = function(hProcess: THandle; var Wow64Process: BOOL): BOOL; stdcall;
function IsWow64: Boolean;
var
fnIsWow64Process: LPFN_ISWOW64PROCESS;
bIsWow64: BOOL;
begin
Result := Fa... |
unit UDaoFornecedor;
interface
uses uDao, DB, SysUtils, Messages, UFornecedor, UEndereco, UDaoCidade,
UDaoCondicaoPagamento, UDaoProduto;
type DaoFornecedor = class(Dao)
private
protected
umFornecedor : Fornecedor;
umEndereco : Endereco;
... |
unit SaveQAs;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls;
type
TSaveQueryAs = class(TForm)
NameEdit: TEdit;
Label1: TLabel;
Bevel1: TBevel;
OKBtn: TButton;
CancelBtn: TButton;
procedure NameEditChange(Sender: TObject);
p... |
unit eSocial.Views.ViewEventoTabelaEnviar;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Vcl.ExtCtrls,
Vcl.Buttons,
Vcl.Grids,
Vcl.DBGrids,
Vcl.DBCtrls... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
{**
* @Author: Du xinming
* @Contact: QQ<36511179>; Email<lndxm1979@163.com>
* @Version: 0.0
* @Date: 2018.10
* @Brief:
* @References:
* Introduction to Algorithms, Second Edition
*}
unit org.algorithms.heap;
interface
uses
WinApi.Windows,
org.algorithms;
type
THeapType = (htMaximum, htMinimum);
TB... |
unit uCommon;
interface
uses
SysUtils, Classes, IniFiles, uGlobal, Rtti, uSQLHelper, uLogger, ADODB,
System.JSON, FireDAC.Comp.Client, uTokenManager, uJKDefine, uWSManager,
Data.DB, uEntity, System.Generics.Collections, System.NetEncoding, QJson,
idHttp, IDURI, System.DateUtils, System.Net.URLClient, System.N... |
unit ProductsQuery;
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,
FireDA... |
(* MSTest: MM, 2020-04-18 *)
(* ------ *)
(* A small program to test Multiset *)
(* ========================================================================= *)
... |
unit CHILDWIN;
interface
uses Windows, Classes, Graphics, Forms, Controls, StdCtrls, Grids, ExtCtrls,
Buttons, SysUtils, JvSimpleXml;
type
TMDIChild = class(TForm)
PanelTop: TPanel;
PanelBot: TPanel;
Panel1: TPanel;
StringGrid1: TStringGrid;
EditNO: TEdit;
EditOP: TEdit;
... |
{
TGMLinkedComponent class
ES: Clase base para los componentes que necesitan una colección
EN: Base class for components that need a collection
=========================================================================
History:
ver 1.1.0
ES:
cambio: TLinkedComponent -> el método CenterMapTo de las clases hi... |
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit ufrmMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls, diocp.coder.tcpClient,
utils.safeLogger, uDIOCPDxStreamCoder, diocp.task, diocp.sockets,
diocp.tcp.client, ExtCtrls, SimpleMsgPack;
type
TfrmMain = class(TForm)
mmoRecvMessage:... |
unit Game;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ExtCtrls, Menus;
type
TDirection = (dirUp, dirDown, dirLeft, dirRight);
TTile = record
Value: Cardinal;
Locked: Boolean;
end;
TGame = class
constructor Create;
procedu... |
unit D2XXUnit;
{
FTDI D2XX library interface
}
interface
{$IFDEF FPC}
{$mode DELPHI}
{$endif}
uses SysUtils, Classes,
{$IFDEF FPC}
dynlibs;
{$ELSE}
Windows;
{$ENDIF}
// Uncomment next line for statically link external library
//{$DEFINE S}
type
FT_Result = longint;
// Device Info N... |
unit FormFileEdit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, SynEdit, Forms, Controls, Graphics, Dialogs,
ComCtrls;
type
{ TfrmFileEdit }
TfrmFileEdit = class(TForm)
Editor: TSynEdit;
StatusBar: TStatusBar;
procedure EditorChange(Sender: TObject);
procedure FormCreate... |
unit fDateRange;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
fAutoSz, ORCtrls, StdCtrls, ORFn, ORDtTm, VA508AccessibilityManager;
type
TfrmDateRange = class(TfrmAutoSz)
txtStart: TORDateBox;
txtStop: TORDateBox;
lblStart: TLabel;
lblStop: TLabel;
... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC constants }
{ }
{ Copyright(c) 2016-2017 Embar... |
unit UMainController;
interface
uses UIMainController, UFMain, Forms, Classes, SysUtils, Types, StrUtils, IniFiles,
UDMMongo, GIFImg, UThreadTestConnectMongo, UThreadTestConnectMySql, ExtCtrls,
ULogDetailsController, UUserController;
type
TMainController = class(TInterfacedObject, IMainController)
private
... |
//Suponga una comisión con 50 alumnos. Cuando los alumnos llegan forman
//una fila, una vez que están los 50 en la fila el jefe de trabajos prácticos les
//entrega el número de grupo (número aleatorio del 1 al 25) de tal manera
//que dos alumnos tendrán el mismo número de grupo (suponga que el jefe
//posee una función ... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
Spin, JvOfficeColorPanel;
type
{ TForm1 }
TForm1 = class(TForm)
cbFlatBorder: TCheckBox;
cbDefaultColorColor: TColorButton;
cbShowCustomColor: TCheckBox;
cbShowDefaultCo... |
unit AuthModel;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpjson, LResources, Forms, Controls, Graphics, Dialogs,
HKConnection, IdHTTP;
CONST
DEFSESSIONNAME='.gz-session';
DEFHASHEDPASSW='.gz-auth';
DEFSALT='BTT8SLb0FoZAiX07P9z0';
DEFKEY='TJVDoLmUMwQzZG1efxmw11qRcfcAuZCPjz6divsj';
type
T... |
{
@html(<b>)
UDP Client Connection
@html(</b>)
- Copyright (c) Danijel Tkalcec
@html(<br><br>)
Introducing the @html(<b>) @Link(TRtcUdpClient) @html(</b>) component:
@html(<br>)
Client connection component for UDP communication using raw data.
There will be no special pre-set formatting when sending ... |
unit sNIF_main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.Buttons,
sNIF.Params, Vcl.Samples.Spin, Vcl.Mask, Vcl.StdCtrls, Vcl.ExtCtrls,
System.ImageList,
Vcl.ImgList, Vcl.Menus;
t... |
PROGRAM READSPEC;
VAR
cap,small: char;
cap_num: INTEGER;
BEGIN
WRITE ('Enter a capital letter : ');
READ (cap);
cap_num := ord (cap);
small := chr(cap_num+32);
WRITELN ('The small letter is : ', small);
END. |
(*
Name: UImportOlderVersionKeyboards7
Copyright: Copyright (C) 2003-2017 SIL International.
Documentation:
Description:
Create Date: 30 Nov 2010
Modified Date: 26 Jun 2012
Authors: mcdurdin
Related Files:
Dependencies:
Bugs:
To... |
unit tetris_1;
interface
type
TCanvasColor = (
ccNone,
ccBlack,
ccMaroon
);
TTetrisFig = (
tfI,
tfJ,
tfL,
tfO,
tfS,
tfZ,
tfT
);
TPt = record
X, Y: Integer;
end;
implementation
uses VM_System;
const
CRad = 15;
WndPosX = CRad;
WndPosY =... |
unit FEdtIncProduto;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.DBCtrls, Vcl.StdCtrls,
Vcl.Mask, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.... |
unit JD.Weather.NDFD;
interface
uses
System.Classes, System.SysUtils, System.Generics.Collections,
Xml.XmlDoc, Xml.XmlIntf;
type
TNDFDDocument = class;
TNDFDHead = class;
TNDFDData = class;
TNDFDLocation = class;
TNDFDLocations = class;
TNDFDMoreInfo = class;
TNDFDMoreInfoList = class;
TNDFDTimeL... |
unit MonthlyExpense;
interface
type
TMonthlyExpense = class(TObject)
private
FExpenseType: string;
FExpenseName: string;
FExpenseAmount: string;
public
property ExpenseType: string read FExpenseType write FExpenseType;
property ExpenseName: string read FExpenseName write FExpenseName;
pr... |
unit Getter.PhysicalDrive.ListChange;
interface
uses
SysUtils, Classes,
Device.PhysicalDrive, Device.PhysicalDrive.List,
Support;
type
TChangesList = record
Added: TPhysicalDriveList;
Deleted: TStringList;
end;
TListChangeGetter = class
private
type
TRefreshedListAndChanges = recor... |
unit UI.Types;
interface
uses
System.StrUtils,
System.SysUtils,
System.TypInfo,
System.Generics.Collections,
App.Types;
type
TCommandsNames = (help, node, check, update, quit, createwallet, openwallet, getwalletlist);
TCommandsHelper = record helper for TCommandsNames
class function InType(ACommand:... |
unit IdThreadMgrDefault;
interface
uses
IdThread, IdThreadMgr;
type
TIdThreadMgrDefault = class(TIdThreadMgr)
public
function GetThread: TIdThread; override;
procedure ReleaseThread(AThread: TIdThread); override;
end;
implementation
uses
IdGlobal;
{ TIdThreadMgrDefault }
function TIdThreadMgrDe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.