text stringlengths 14 6.51M |
|---|
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC Oracle metadata }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit AContatosCliente;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
ExtCtrls, PainelGradiente, Localizacao, StdCtrls, Componentes1, Buttons,
Grids, CGrades, UnDados, UnClientes, Mask;
type
TFContatosCliente = class(TFormularioPermissao)
... |
unit UDbfCursor;
interface
uses
classes,db,
UDbfPagedFile,UDbfCommon;
type
TOnBracketStr = procedure(First,Last:PChar;NoFirst,NoLast:boolean;var Accept: Boolean) of object;
TOnBracketNum = procedure(First,Last:double;NoFirst,NoLast:boolean;var Accept: Boolean) of object;
//====================================... |
unit testinverseupdateunit;
interface
uses Math, Sysutils, Ap, inverseupdate;
function TestInverseUpdate(Silent : Boolean):Boolean;
function testinverseupdateunit_test_silent():Boolean;
function testinverseupdateunit_test():Boolean;
implementation
procedure MakeACopy(const A : TReal2DArray;
M : Algli... |
{
Copyright (c) 2013-2017, RealThinClient components - http://www.realthinclient.com
Copyright (c) Independent JPEG group - http://www.ijg.org
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED ... |
{ **********************************************************}
{ }
{ DeskMetrics - Delphi Dynamic Unit }
{ Copyright (c) 2010-2011 }
{ }
{ http... |
unit ncTotCaixa;
interface
uses
ncClassesBase,
SysUtils,
nxdb;
function TotalizaCaixa(DB: TnxDatabase;
Num, CaixaI, CaixaF: Integer;
var AcessoFat,
AcessoDebitado,
AcessoDebPago,
Acess... |
unit IdTelnetServer;
interface
uses
Classes,
IdException,
IdGlobal, IdTCPServer;
const
GLoginAttempts = 3;
type
TTelnetData = class(TObject)
public
Username, Password: string;
HUserToken: cardinal;
end;
TIdTelnetNegotiateEvent = procedure(AThread: TIdPeerThread) of object;
TAuthentication... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Buttons, Vcl.StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
BitBtn1: TBitBtn;
OpenDialog1: TOp... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
(**
This module contains code for installing a splash screen in the RAD Studio IDE.
@Author David Hoyle
@Version 1.0
@Date 03 Jan 2018
**)
Unit ITHelper.SplashScreen;
Interface
{$INCLUDE CompilerDefinitions.Inc}
Procedure InstallSplashScreen;
Implementation
Uses
ToolsAPI,
SysUtils,
Windo... |
{*********************************************}
{ TeeBI Software Library }
{ WorkflowItem Editor Dialog }
{ Copyright (c) 2015-2016 by Steema Software }
{ All Rights Reserved }
{*********************************************}
unit VCLBI.Editor.WorkflowItem;
... |
{**********************************************}
{ TImagePointSeries and TDeltaPointSeries }
{ Copyright (c) 1997-2004 by David Berneda }
{**********************************************}
unit ImaPoint;
{$I TeeDefs.inc}
interface
Uses {$IFNDEF LINUX}
Windows,
{$ENDIF}
SysUtils, Classes,
{$... |
unit vr_WinAPI;
{$mode delphi}{$H+}
{$I vrode.inc}
interface
{$IFDEF WINDOWS}
uses
Windows, SysUtils, Classes, vr_types, Math, vr_WideStrings, LazUTF8
{$IFDEF IGNORE_SHELL_COMPAT} , ShellApi, shlobj{$ENDIF};
function UTF8ToOEM(const S: string): string;
function OEMToUTF8(const S: string): string;
co... |
unit ncFrmSuporteRem;
{
ResourceString: Dario 12/03/13
Nada para fazer
}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, Menus, cxLookAndFeelPainters, StdCtrls, cxButtons,
cxDropDownEdit, cxLabel, ExtCtrls, LMDCustomControl, LMDCustomPanel,... |
unit uDAO.PessoaContato;
interface
uses System.SysUtils, System.Classes,
FireDAC.Comp.Client, Data.DB,
uDAO.Interfaces, uDB, uModel.Interfaces;
type
TPessoaContatoDAO = class(TInterfacedObject, iPessoaContatoDAO)
private
FQry: TFDQuery;
function IsExist(pId: Integer): Boolean;
public
constructo... |
unit ClassFaktury;
interface
uses Classes, ClassDBF, Typy, Math, Dialogs;
type TFaktury = class
private
DBF1, DBF2, DBF3 : TDBF;
Subor1, Subor2, Subor3 : string;
function BinarySearch( iCislo : string ) : integer;
protected
procedure Nacitaj;
public
Zoznam : TList;... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit USubProgr;
interface
uses SysUtils;
function CheckAllowed(const s: string): boolean;
function IsValidEmail(const Value: string): boolean;
Function russianQuoting(strForQuote:String):String;
function CheckINN(const INN: string): Boolean;
function CheckSNILS(const SNILS: string): Boolean;
funct... |
{*******************************************************}
{ }
{ DelphiWebMVC }
{ }
{ °æÈ¨ËùÓÐ (C) 2019 ËÕÐËÓ(PRSoft) }
{ ... |
{********************************************}
{ TeeOpenGL Component Registration }
{ Copyright (c) 1999-2004 by David Berneda }
{ All Rights Reserved }
{********************************************}
unit TeeOpenGLReg;
{$I TeeDefs.inc}
interface
procedure Register;
implementation
... |
unit intensive.Model.Entity.Cliente;
interface
uses
SimpleAttributes;
type
[Tabela('CLIENTE')]
TCliente = class
private
FId: Integer;
FNome: String;
FTelefone: String;
procedure SetId(const Value: Integer);
procedure SetNome(const Value: String);
procedure SetTelefone(const Value: Str... |
{ 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 NvPing;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Mask;
type
TPingDialog = class(TForm)
btnStart: TButton;
btnCancel: TButton;
GroupBox: TGroupBox;
lblBytes: TLabel;
lblNumber: TLabel;
lblTimeOut: TLabel;
... |
unit Module.ValueObject.StringVO.Impl;
interface
uses
Module.ValueObject.StringVO;
type
TStringVO = class(TInterfacedObject, IStringVO)
private
FString: string;
public
constructor Create(const AString: string); virtual;
function AsString: string;
end;
implementation
function TStringVO.AsStrin... |
unit frm_collection_item;
{==============================================================================
UnitName = frm_collection_item
==============================================================================
}
{$mode objfpc}{$H+}
interface
uses Forms,
Classes,
Buttons,
Con... |
////////////////////////////////////////////
// Класс для разбора и хранения блока данных от приборов Геомер
////////////////////////////////////////////
unit GMBlockValues;
interface
uses Windows, Classes, SysUtils, GMGlobals, DateUtils, GMConst;
const
GEOMER_WITH_UBZ_BLOCK_LEN = 38;
GEOMER_WITH_UBZ_DEVICE_LEN =... |
{ SMIX is Copyright 1995 by Ethan Brodsky. All rights reserved. }
unit SMix; {Version 1.25}
{$X+} {$G+} {$R-}
interface
const
BlockLength = 512; {Size of digitized sound block }
LoadChunkSize = 2048; {Chunk size used for loading sounds from disk}
V... |
unit ncaFrmLeXML;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, LMDControl, LMDCustomControl,
LMDCustomPanel, LMDCustomBevelPanel, LMDSimplePanel, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainte... |
unit AnyTest_c;
{This file was generated on 27 Oct 2000 17:40:35 GMT by version 03.03.03.C1.06}
{of the Inprise VisiBroker idl2pas CORBA IDL compiler. }
{Please do not edit the contents of this file. You should instead edit and }
{recompile the original IDL which was located in the file ... |
unit NtUtils.Threads.Stack;
interface
uses
NtUtils.Exceptions;
// Get current address (address of the next instruction to be executed)
function RtlxCurrentAddress: Pointer; register;
// Get return address (address of the caller of the current function)
function RtlxCallersAddress: Pointer; inline;
// Get address... |
unit IdGlobal;
interface
{$I IdCompilerDefines.inc}
uses
Classes,
IdException,
SysUtils;
const
IdTimeoutDefault = -1;
IdTimeoutInfinite = -2;
wsOk = 1;
wsErr = 0;
IdPORT_ECHO = 7;
IdPORT_DISCARD = 9;
IdPORT_SYSTAT = 11;
IdPORT_DAYTIME = 13;
IdPORT_NETSTAT = 15;
IdPORT_QOTD = 17;
IdPORT... |
unit JD.Weather.Foreca;
interface
uses
System.Classes, System.SysUtils, System.Generics.Collections,
Vcl.Graphics, Vcl.Imaging.Jpeg, Vcl.Imaging.PngImage, Vcl.Imaging.GifImg,
JD.Weather, JD.Weather.Intf, SuperObject;
type
TForecaWeatherThread = class(TJDWeatherThread)
public
function GetUrl: String; ov... |
unit Unit2;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TMyThreadUpdate = reference to procedure (const AUpdateText: string);
TMyThread = class(TThread)
strict private
... |
unit grafo_obj;
interface
uses
ExtCtrls, StdCtrls;
const
nulo=nil;
type
tipo_est=0..1;
posicion_vertice = ^nodo_vertice;
nodo_vertice = record
estado:tipo_est;
l,t:integer;
end;
... |
unit LogReaderMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer,
cxEdit, cxStyles, cxCustomData, cxFilter, cxData, cxDataStorage, c... |
/// <summary>
/// Contain Main class with FaceAPI async functions for end-user
/// </summary>
unit uFunctions.FaceApiAsyncHelper;
interface
uses
{ TTask.Create; TProc }
System.SysUtils,
{ TDetectOptions }
uFaceApi.FaceDetectOptions,
{ TBytesStream }
System.Classes,
{ TAccess }
uFaceApi.ServersAccess... |
unit StringGridExUnit;
interface
uses
System.SysUtils, Winapi.Windows, Winapi.Messages, Vcl.Clipbrd,
scisupport, Vcl.Controls, System.Contnrs, Vcl.ComCtrls, Vcl.Forms, Vcl.Dialogs,
Vcl.Graphics, Vcl.Grids, Vcl.StdCtrls, System.StrUtils, System.Classes;
type
TStringGridEx = class(TStringGrid)
private
fu... |
{ Copyright (C) 1998-2018, written by Shkolnik Mike, Scalabium Software
E-Mail: mshkolnik@scalabium.com
mshkolnik@yahoo.com
WEB: http://www.scalabium.com
In this unit I defined design-time editors for
TSMDBComboBox and TSMDBFilterComboBox components
}
unit SMDBCombReg;
interface
uses ... |
unit intensive.Resources.Conexao;
interface
uses
FireDAC.Stan.Intf,
FireDAC.Stan.Option,
FireDAC.Stan.Error,
FireDAC.UI.Intf,
FireDAC.Phys.Intf,
FireDAC.Stan.Def,
FireDAC.Stan.Pool,
FireDAC.Stan.Async,
FireDAC.Phys,
FireDAC.Phys.SQLite,
FireDAC.Phys.SQLiteDef,
FireDAC.Stan.ExprFuncs,
FireDAC... |
unit DelphiUtils.Arrays;
interface
type
TFilterRoutine<T> = function (const Entry: T; Parameter: NativeUInt)
: Boolean;
TFilterAction = (ftKeep, ftExclude);
TConvertRoutine<T1, T2> = function (const Entry: T1; out ConvertedEntry: T2)
: Boolean;
TTreeNode<T> = record
Entry: T;
Index: Integ... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLSCUDAParallelPrimitives<p>
<b>History : </b><font size=-1><ul>
<li>28/01/10 - Yar - Creation
</ul></font>
}
// -------------------------------------------------------------
// cuDPP -- CUDA Data Parallel Primitives libra... |
unit ubookio;
{Berisi fungsi (F05, F06, F07, F09, F10) yang berhubungan dengan keluar masuknya buku di perpustakaan}
{REFERENSI : -}
interface
uses
ucsvwrapper,
ubook, ubookutils,
udate;
{PUBLIC FUNCTION, PROCEDURE}
procedure borrowBookUtil(pnewBorrow : psingleborrow; ptrborrow: pborrow; ptrbook: pbo... |
{-----------------------------------------------------------------------------
Unit Name: uhTariff
Author: n0mad
Version: 1.1.6.87
Creation: 27.08.2003
Purpose: Tariff helper
History:
-----------------------------------------------------------------------------}
unit uhTariff;
interface
{$I kinode01.inc... |
unit uSVD_Type;
interface
{
dimElement : NAME[%s] -- Array of Elements, NAME_%s -- Multiple Elements
----------------------------------------------------------------------------------------------------------------------
A powerfull construct in data structures of the C programming language is the array.
An ar... |
unit VA508DelphiCompatibility;
interface
uses
SysUtils, Classes, Controls, Windows, StdCtrls, CheckLst, ExtCtrls, Forms,
ValEdit, DBGrids, Calendar, ComCtrls, VA508AccessibilityManager;
function GetCheckBoxComponentName(AllowGrayed: boolean): string;
function GetCheckBoxInstructionMessage(Checked: boolean): stri... |
{test program for zpipe unit}
program t_zpipe;
{$ifdef win32}
{$ifndef VirtualPascal}
{$apptype console}
{$endif}
{$endif}
uses zlibh, zpipe;
{---------------------------------------------------------------------------}
procedure abort(const msg: str255);
{-write message and halt}
begin... |
unit StringUtils;
interface
uses SysUtils, WideStrUtils;
(*
Contains various string handling routines for parsing Jet SQL data.
*)
type
{$IFDEF UNICODE}
UniString = string;
{$ELSE}
UniString = WideString;
{$ENDIF}
TMarkerFlag = (
mfKeepOp, //do not consider op/ed to be part of the ... |
unit fConsulter;
(*
Projet : POC Notes de frais
URL du projet : https://www.developpeur-pascal.fr/p/_6006-poc-notes-de-frais-une-application-multiplateforme-de-saisie-de-notes-de-frais-en-itinerance.html
Auteur : Patrick Prémartin https://patrick.premartin.fr
Editeur : Olf Software https://www.olfsoftware... |
{ This sample application demonstrates the following features of the
TOLEContainer:
- Toolbar negotiation
- Status bar hints while inplace editing
- Local popup menu with OLE verbs and standard OLE functions
(See the popup menu in MDICHILD.PAS)
- Using the TOLEContainer's dialogs including InsertObject,
... |
{Unit Type Data}
unit typedata;
{Interface}
interface
{Constant}
const
Nmax = 1000;
Emax = 10; {Jumlah Energi Maksimum}
{Type Data}
type
{Tanggal}
tanggal = record
dd : integer; {Hari}
mm : integer; {Bulan}
yy : integer; {Tahun}
end;
{Bahan Mentah}
bahanMentah = r... |
unit uCommon;
interface
uses
SysUtils, Classes, IniFiles, uGlobal, Rtti, uSQLHelper, uLogger, ADODB,
System.JSON, DateUtils, syncobjs, System.IOUtils, idFtp, idHttp, idFtpCommon,
Data.DB, System.Generics.Collections, IdGlobal;
type
TCommon = Class
private
class function ReadConfig(): Boolean;
clas... |
unit vorbis_parser;
(*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* F... |
unit SEA_CBC;
(*************************************************************************
DESCRIPTION : SEED CBC functions
REQUIREMENTS : TP5-7, D1-D7/D9-D10/D12, FPC, VP
EXTERNAL DATA : ---
MEMORY USAGE : ---
DISPLAY MODE : ---
REFERENCES : B.Schneier, Applied Crypto... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit Ths.Erp.Database.Table.SysCity;
interface
{$I ThsERP.inc}
uses
SysUtils, Classes, Dialogs, Forms, Windows, Controls, Types, DateUtils,
FireDAC.Stan.Param, System.Variants, Data.DB,
Ths.Erp.Database,
Ths.Erp.Database.Table;
type
TSysCity = class(TTable)
private
FCityName: TFieldDB;
FCarPlate... |
{
String Matching - First Match
K.M.P. Algorithm O(N)
Input:
S: Haystack string
Q: Needle string
SL, QL: The length of two strings above
Output:
Return Value: Position of first match of Q in S, 0 = Not Found
Reference:
Creative, p154
By Ali
}
program
StringMatch;
const
MaxL = 1000 + 1;
var
... |
{*********************************************}
{ TeeChart Delphi Component Library }
{ Custom Axis Drawing Demo }
{ Copyright (c) 1995-1996 by David Berneda }
{ All rights reserved }
{*********************************************}
unit Mulaxis;
interface
uses
... |
unit SourceNode;
interface
uses
SourceLocation,
SysUtils,
StrUtils,
Classes;
type
TSourceNodeKind = class
public
Kind: String;
constructor Create(const Kind_: String);
end;
TSourceNode = class
public
Parent: TSourceNode;
Previous: TSourceNode;
Next: TSourceNode;
FirstChild... |
unit copy_str_1;
interface
implementation
var S1, S2: string;
procedure Test;
begin
S1 := 'ABCD';
S2 := Copy(S1, 2, 2);
end;
initialization
Test();
finalization
Assert(S2 = 'CD');
end. |
{$I Definition.Inc}
unit PythonGUIInputOutput;
(**************************************************************************)
(* *)
(* Module: Unit 'PythonGUIInputOutput' Copyright (c) 1997 *)
(* ... |
unit TransparentInput;
interface
uses
System.SysUtils, System.Classes, FMX.Types, FMX.Controls, System.Types,
FMX.Objects, System.UITypes, FMX.Graphics, FMX.Dialogs, System.Math,
System.Math.Vectors, FMX.Edit, FMX.Layouts, FMX.Effects, Input, ColorClass;
type
TTransparentInput = class(TInput)
private
{... |
unit uDomainUpDowns;
interface
uses
{$IF CompilerVersion > 22}
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,
{$ELSE}
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,Forms, Dialogs, ... |
unit uGlobal;
interface
uses
SysUtils, IniFiles, uSQLHelper, uLogger;
const
cDBUser = 'vioadmin';
cDBPwd = 'lgm1224,./';
cDB = 'YjItsDB';
var
gServer: String;
gUrlRoot: String;
gBakPath: String;
gUpdateTime: String;
gLogger: TLogger;
gSQLHelper: TSQLHelper;
implementation
procedure ProgramIni... |
//***********************************************************************
//CGIMAIL Version 1.0
//Copyright (c) 2001, Stuart King. All rights reserved.
//PURPOSE: This program is a Common Gateway Interface (CGI) application
// that sends email messages.
//********************************************************... |
{----------------------------------------------------------------------------}
{ Written by Nguyen Le Quang Duy }
{ Nguyen Quang Dieu High School, An Giang }
{----------------------------------------------------------------------------}
... |
{ *************************************************************************** }
{ }
{ Delphi and Kylix Cross-Platform Visual Component Library }
{ }
... |
unit URTTI;
{$mode objfpc}{$H+}
interface
uses
TypInfo, UEdits, Controls, Dialogs, UFigures, Classes, UEditsStatic, sysutils;
type
TObjectArray = array of TObject;
procedure EqualClassArray(AFigure1, AFigure2: TFigure);
procedure EqualClassProperties(AClass1, AClass2: TObject);
procedure GetComponentPropertie... |
unit UI.WaitDialog;
interface
uses
UI.Base, UI.Toast, UI.Dialog,
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Forms;
/// <summary>
/// 等待对话框是否被取消了
/// </summary>
function IsWaitDismiss: Boolean;
/// <summary>
/// 隐藏等待对话框
/// </summary>
procedure HideWaitDialog... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLFileSTL<p>
Support-code to load STL Files into TGLFreeForm-Components in GLScene.<p>
Note that you must manually add this unit to one of your project's uses
to enable support for STL files at run-time.<p>
<b>History : </b... |
unit Bank_s;
{This file was generated on 11 Aug 2000 20:16:15 GMT by version 03.03.03.C1.06}
{of the Inprise VisiBroker idl2pas CORBA IDL compiler. }
{Please do not edit the contents of this file. You should instead edit and }
{recompile the original IDL which was located in the file account... |
unit u_xpl_heart_beater;
{ Il y a un bug dans la version fpc 2.5.1 de fpTimer. Ce bug génère un 'hang' général
de l'application dès que l'on active ou désactive un fptimer. il faut employer une
version antérieure pour fonctionner correctement pour contourner le problème -
Récupérer celle qui se trouve ici ... |
unit UMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
classe.person, classe.client, classe.saler, Vcl.ComCtrls;
type
TForm1 = class(TForm)
btSaveClient: TButton;
e... |
unit Es8Utils;
interface
Uses
Windows, SysUtils, Classes, System.Variants, System.Generics.Defaults, StrUtils, Registry, Menus,
System.DateUtils, System.RegularExpressions, System.Generics.Collections,
{$IFNDEF ServerOprosa} //PSO не использует JCL
JclSysInfo,
{$ENDIF}
esExceptions;
const
TRUE_AS_STRING =... |
(* MPP: MM, 2020-04-29 *)
(* ------ *)
(* MiniPascal parser. *)
(* ========================================================================= *)
... |
unit TestDelphiNetDynamicArray;
{ This unit compiles but is not semantically meaningfull
it is test cases for the code formatting utility
Tests of the Delphi.net 'new' keyword for array creation
from TridenT
}
interface
implementation
uses
SysUtils;
type
TObjectDynArray = array of TObject;... |
Program hello;
(* File : HELLO.PAS *)
(* menuliskan Hello ke layar *)
begin
writeln ('Hello, World!');
end.
|
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit AutoBinding;
interface
uses
System.Classes, DocFieldInfo, System.Generics.Collections,
FireDAC.Comp.Client, TableWithProgress, Data.DB,
SearchProductParameterValuesQuery, DocBindExcelDataModule, DSWrap;
type
MySplitRec = record
Name: string;
Number: cardinal;
end;
TDocFilesTable = class(TTa... |
unit v_Env;
interface
uses System.sysutils, classes, IdStack, inifiles, variants, dateutils, h_db, firedac.comp.client;
type
TEnv = class(TObject)
public
class function UserName: string;
class function MachineName: string;
class function getIp: string; overload; // ip local
class function getIp... |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
unit uTestUtils;
interface
uses
DUnitX.TestFramework;
type
TAssertHelper = class helper for Assert
class procedure AreEqual(const left, right : Cardinal; const message : string = '');overload;
end;
implementation
{ TAssertHelper }
class procedure TAssertHelper.AreEqual(const left, right: Cardinal;
co... |
unit uNewGroup;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, System.Rtti,
FMX.Grid.Style, FMX.StdCtrls, FMX.Grid, FMX.ScrollBox, FMX.ListBox, FMX.Edit,
FMX.Controls.Presentation, FMX.TabCon... |
(**
This module contains common functions (non-OTA) for use throughout the application.
@Author David Hoyle
@Version 1.0
@Date 05 Jan 2018
**)
Unit ITHelper.CommonFunctions;
Interface
Uses
Classes,
ITHelper.ExternalProcessInfo;
{$INCLUDE CompilerDefinitions.inc}
Type
(** A type to define an... |
{------------------------------------------------------------------------------
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 ORM.Model.EMPLOYEE;
interface
uses
Spring,
Spring.Collections,
Spring.Persistence.Mapping.Attributes,
ORM.Model.SALARY_HISTORY;
{$M+}
type
[Entity]
[Table('EMPLOYEE')]
// [Sequence('SELECT GEN_ID(EMP_NO_GEN, 1) FROM RDB$DATABASE')]
TEmployee = class
private
FId: Integer;
FFirstname: ... |
unit utils;
interface
uses
Windows, TypInfo, Variables, SysUtils, Classes;
type
//自定义和SysUtil里的定义冲突了,悲剧
TByteArray = Variables.TByteArray;
function CountMemoryRegionsAllMemory(MemoryRegions: TMemoryRegions): Integer;
procedure AverageMemoryRegionsToArray(var MemoryRegions: TMemoryRegions;
var resultArra... |
unit BCEditor.Editor.Selection;
interface
uses
Classes, Graphics, BCEditor.Editor.Selection.Colors, BCEditor.Types;
type
TBCEditorSelection = class(TPersistent)
strict private
FActiveMode: TBCEditorSelectionMode;
FColors: TBCEditorSelectedColor;
FMode: TBCEditorSelectionMode;
FOnCh... |
unit PopupForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxDropDownEdit, NotifyEvents;
type
TfrmPopupForm = class(TForm)
procedure FormHide(Sender: TObject);
private
FCloseOnEscape: Boolean;... |
unit PascalCoin.RPC.Test.DM;
interface
uses
System.SysUtils, System.Classes, Spring;
type
TDM = class(TDataModule)
private
FOnURIChange: Event<TGetStrProc>;
FURI: string;
function GetOnURIChange: IEvent<TGetStrProc>;
procedure SetURI(const Value: string);
{ Private declarations }
public
... |
unit Md5ExplorerMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, dxSkinsCore,
Vcl.Menus, cxMemo, Vcl.StdCtrls, cxButtons,... |
{
ALGORITHME : Morpions
Une partie se déroule avec 2 joueurs, l'un choisi les croix l'autre les ronds. Le joueur qui commence est
choisi au hasard.
CONST
MaxCell=3
NbToursMax=9
Type
RondCroix = (X,O)
Victoire = (VictoireJ1,VictoireJ2)
Type Joueur = ENREGISTREMENT
Symbole:RondCroix
NbMancheGagnee:Entier
FIN... |
unit ServiceControlU;
interface
uses
Dialogs, SysUtils, Windows, Messages, WinSvc, SvcMgr, Classes;
type
TNTServiceStatus = (svStopped, svRunning, svPaused, svStartPending,
svStopPending, svContinuePending, svPausePending, svUnknown);
type
TNTServiceFailureAction = (sfaNone = integer(SC_ACTION_NONE),
... |
(********************************************************)
(* *)
(* Print Mender *)
(* *)
(* Mend Code Unit *)
(* ... |
unit adot.Tools;
{$OVERFLOWCHECKS OFF}
{$IFNDEF Debug}
{ $Define UseInline}
{$ENDIF}
{ Definition of classes/record types:
TArrayUtils = record
Fill/fillRandom/Randomize and other tools for arrays.
TComponentUtils = class
Enumeration and other component-specific tools.
TCurrencyUtils = class
Cu... |
(***********************************************************)
(* xPLRFX *)
(* part of Digital Home Server project *)
(* http://www.digitalhomeserver.net *)
(* info@digitalhomeserver.net *)
(****... |
unit IWCompMemo;
{PUBDIST}
interface
uses
Classes,
{$IFDEF Linux}QControls,{$ELSE}Controls,{$ENDIF}
IWHTMLTag, IWControl;
type
TIWCustomMemo = class(TIWControl)
protected
FLines: TStrings;
FRawText: Boolean;
FReadOnly: Boolean;
FRequired: Boolean;
FEndsWithCRLF: Boolean;
FWantReturn... |
{******************************************}
{ }
{ vtk GridReport library }
{ }
{ Copyright (c) 2003 by vtkTools }
{ }
{******************************************}
{Con... |
unit fODLab;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, ORCtrls, ORfn, fODBase, ExtCtrls, ComCtrls, uConst,
ORDtTm, Buttons, Menus, VA508AccessibilityManager, VA508AccessibilityRouter;
type
TfrmODLab = class(TfrmODBase)
lblAvailTests: TLa... |
unit PointersTestForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Layouts, FMX.Memo, FMX.Controls.Presentation, FMX.ScrollBox;
type
TForm1 = class(TForm)
Memo1: TMemo;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.