text stringlengths 14 6.51M |
|---|
(*
Copyright (c) 2011-2012, DSharp team
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and... |
unit Delphi.Mocks.Examples.Interfaces;
interface
uses
SysUtils,
//DUnitX.TestFramework,
Delphi.Mocks;
type
{$M+}
TSimpleInterface = Interface
['{4131D033-2D80-42B8-AAA1-3C2DF0AC3BBD}']
procedure SimpleMethod;
end;
TSystemUnderTestInf = Interface
['{5E21CA8E-A4BB-4512-BCD4-22D7F10C5A0B}']
... |
{
CSV Parser and Document classes.
Version 0.2 2010-05-31
Copyright (C) 2010 Vladimir Zhirov <vvzh.home@gmail.com>
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 ... |
unit uCCalibraBeacon;
interface
uses
System.SysUtils,
System.Types,
System.UITypes,
System.Classes,
System.Variants,
FMX.Types,
FMX.Forms,
FMX.Controls,
System.Beacon,
System.Bluetooth,
System.Beacon.Components,
System.Math;
type
TOnCalibra = procedure(const Sender: TObje... |
unit uModelGrupos;
interface
type
TGrupos = class
private
FCodigo : Double;
FDescricao : string;
public
property Codigo : Double read FCodigo write FCodigo;
property Descricao : string read FDescricao write FDescricao;
end;
implementation
end.
|
unit RepositorioCliente;
interface
uses DB, Auditoria, Repositorio;
type
TRepositorioCliente = class(TRepositorio)
protected
function Get (Dataset :TDataSet) :TObject; overload; override;
function GetNomeDaTabela :String; override;
function GetIdentificador... |
unit AuthenticationTest;
interface
uses TestFramework;
type
TAuthenticationTest = class (TTestCase)
private
protected
// подготавливаем данные для тестирования
procedure SetUp; override;
// возвращаем данные для тестирования
procedure TearDown; override;
published
procedure Authentication;... |
unit UListCompsSave;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 2006 by Bradford Technologies, Inc. }
{This unit handles uploading the comps and subject to the comps database}
{$WARN SYMBOL_PLATFORM OF... |
//
// Created by the DataSnap proxy generator.
// 19/10/2018 19:05:39
//
unit ClientClassesUnit1;
interface
uses System.JSON, Datasnap.DSProxyRest, Datasnap.DSClientRest, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System.Classes, System.SysUtils, Data.DB, Data.SqlExp... |
unit YOTM.Form.SelectLabels;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, YOTM.Form.ModalEdit, Vcl.ExtCtrls,
HGM.Button, Vcl.StdCtrls, Vcl.Grids, HGM.Controls.VirtualTable, YOTM.DB.LabelTypes,
YOTM.DB, YOT... |
//========================================================================
// Ultimate Color Picker Dialogs - Delphi Edition
//
// Copyright 2003-2005, SimpleWebsiteNavigation.com, All Rights Reserved.
//
// Datecode: 050929
//
// This software is shareware. You may evaluate it for free, but it you
// use it you ... |
// ******************************************************************
//
// Program Name : AT Library
// Platform(s) : Android, iOS, Linux, MacOS, Windows
// Framework : Console, FMX, VCL
//
// Filename : AT.Math.Conversion.Length.pas
// Date Created : 19-NOV-2017
// Author : Matthew Vesperman... |
unit SampleTestUnit;
interface
uses TestFramework, System.Encoding;
type
TSampleTest = class (TTestCase)
private
FField : Integer;
public
procedure Setup; override;
procedure Teardown; override;
published
procedure CheckField;
procedu... |
unit TestRegexBugs;
interface
uses
TestFramework,
RegexTrial,
RegularExpressions;
type
TTestRegexBugs = class(TRegexTrial)
private
procedure Kill65535_1(const Len: Integer);
procedure Kill65535_2(const Len: Integer);
procedure GroupNumbers1(const S: String; const N: Integer);
published
pr... |
unit EspecificacaoEnderecoComPessoaIgualA;
interface
uses
Especificacao,
Pessoa;
type
TEspecificacaoEnderecoComPessoaIgualA = class(TEspecificacao)
private
FPessoa :TPessoa;
public
constructor Create(Pessoa :TPessoa);
destructor Destroy; override;
public
function SatisfeitoPor(Endereco... |
unit IBAN.Base;
interface
uses
System.Classes, System.SysUtils, System.Character, System.RegularExpressions,
IBAN.Types;
type
/// <summary>
/// Клас дефиниращ базовите методи на IBAN структурата
/// </summary>
TIBAN = class
strict private
function GetIBANMod(const SubIBAN: string): System.Byte;
... |
///////////////////////////////////////////////////////////////////////////
// Project: CW
// Program: copycdeu.pas
// Language: Object Pascal - Delphi ver 3.0
// Support: David Fahey
// Date: 01Oct97
// Purpose: Sends the text of randomly selected phrases allowing the
// user to type th... |
unit MediCard.Classes;
interface
uses
Data.DB, System.SysUtils,
MediCard.Intf;
type
TMCData = class(TInterfacedObject, IMCData)
private
FParams: TParams;
function GetParams: TParams;
protected
procedure CreateParams; virtual;
public
procedure AfterConstruction; override;
procedure Bef... |
unit uEstado;
interface
uses uPais;
type Estado = class
private
codigo: Integer;
descricao: String;
uf: String;
umPais: Pais;
public
constructor Create;
destructor Destruct;
function GetCodigo: Integer;
function GetDescricao: String;
function GetPais: Pais;
function GetUf... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
unit PBaseMemoEdit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Mask;
type
TPBaseMemoEdit = class(TCustomMaskEdit)
private
{ Private declarations }
FBackText: string;
FCanExtend: Boolean;
FEnPreFix: Boolean;
FCurrentCNT: string;
F... |
Unit CommandLinkButton;
Interface
Uses
System.SysUtils, System.Classes, Vcl.Controls, Vcl.StdCtrls,
Winapi.Windows, Winapi.Messages, Winapi.CommCtrl, Winapi.GDIPAPI, Winapi.GDIPOBJ,
GraphicsUtils;
Type
TCommandLinkButton = Class(TButton)
Private
{ Private declarations }
FImage : TGPBitmap;
FImageGrey: ... |
PROGRAM XPrint(INPUT, OUTPUT);
CONST
MIN = 0;
MAX = 25;
LENROW = 250;
COUNTSYMBOLS = 10;
TYPE
Sieve = SET OF MIN..MAX;
ArrayCoords = ARRAY[0..LENROW] OF MIN..MAX;
VAR
ArrayFirstRow, ArraySecondRow, ArrayThirdRow, ArrayFourthRow, ArrayFifthRow: ArrayCoords;
Coordinate, IndexFirst, IndexSecond, IndexThi... |
unit Day18AB;
interface
uses
System.Math,
System.StrUtils,
WGUtils,
System.Generics.Collections,
System.Types,
System.SysUtils;
type
TStateOfGame = class
KeysCollected : TList<ShortString>;
PlayerPosition : TPoint;
PathLength : Integer;
constructor Create(APosition : TPoint; APathLeng... |
unit PrintSetup;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, ComCtrls,
PrintPainter, Painter, Printers, Project, PrintPreviewBoard, ColorScheme,
Winspool;
type TveAppearance = record
LeadStyle : TLeadStyle;
HoleDiamete... |
unit uYesNo;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Menus, StdCtrls,
cxButtons, ExtCtrls, cxControls, cxContainer, cxEdit, dxSkinsCore,
dxSkinCaramel, cxLabel;
type
TfrmYesNo = class(TForm)
pn... |
unit uFrameListFactory;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fgl, uModbus, uLibrary, uSetting, uHoldings;
type
{$REGION Фабрика списка фреймов Modbus}
TVarList = specialize TFpgList<IVarDefine>;
TFrameList = specialize TFpgList<IFrame>;
{ TFrameListFactory }
TFrameListFactory = class... |
unit BuilderPizzaExample.Domain.Edge;
interface
uses
BuilderPizzaExample.Domain.ValueObject.EdgeType,
BuilderPizzaExample.Domain.ValueObject.EdgeSize;
type
TEdge = class
private
FEdgeType: TEdgeType;
FEdgeSize: TEdgeSize;
procedure SetEdgeSize(const Value: TEdgeSize);
procedure SetEdgeType(co... |
{******************************************************************************}
{ }
{ Delphi FireMonkey Platform }
{ ... |
{$ifdef license}
(*
Copyright 2020 ChapmanWorld LLC ( https://chapmanworld.com )
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this li... |
unit togglebutton;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, AndroidWidget, systryparent;
type
TOnLongClickToggleButton=procedure(Sender:TObject; isStateOn:boolean) of object;
{Draft Component code by "Lazarus Android Module Wizard" [1/7/2015 1:26:30]}
{https://github.com/jmpessoa/lazandroidmodu... |
unit F_GdiPlus;
interface
uses
Windows, F_IStream;
const
gdiplus = 'gdiplus.dll';
type
GDIPlusStartupInput = record
GdiPlusVersion : Integer;
DebugEventCallback : Integer;
SuppressBackgroundThread: Integer;
SuppressExternalCodecs : Integer;
end;
const
SFA... |
(* ENUNCIADO
É comum em editores de texto que você deseje substituir um pedaço do texto por outro pedaço,
normalmente uma palavra por outra. Este problema simula esta situação com números, para facilitar.
Escreva um programa em Free Pascal que leia três sequências de números inteiros terminadas em zero
(os zeros não ... |
unit UUser;
interface
type
TUser = class
private
id: integer;
username: string;
password: string;
public
Constructor Create(id: integer; username: string; password: string);
procedure setID(id: integer);
function getID: integer;
procedure setUsername(username: string);
function g... |
unit UAMC_DigitalSignature;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,UAMC_WorkFlowBaseFrame, UAMC_Base, UContainer, StdCtrls,
UDigitalSignatureUtils, ULicUser;
type
TAMC_DigitalSignature = class(TWorkflowBaseFrame)
btnSign: TButton;
lblTitle: ... |
unit OAuth2.Grant.RefreshToken;
interface
uses
System.JSON,
Web.HTTPApp,
OAuth2.Contract.Repository.RefreshToken,
OAuth2.Contract.ResponseType,
OAuth2.Contract.Grant.GrantType,
OAuth2.Grant.AbstractAuthorize;
type
TOAuth2RefreshTokenGrant = class(TAbstractAuthorizeGrant)
private
{ private declar... |
unit cmail;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, {And_jni_Bridge,} AndroidWidget;
type
TMailProtocol = (mpImap, mpPop3);
TOnMailMessageRead=procedure(Sender:TObject;position:integer;Header:string;Date:string;Subject:string;ContentType:string;ContentText:string;Attachments:string) of object;
... |
unit FormMain;
{$IF CompilerVersion >= 28} {$DEFINE DELPHI_XE7_AND_UP} {$IFEND}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Spin;
type
TMainForm = class(TForm)
WriteToEventLogButton: TButton;
RegisterEventSourceButton: TButton;
Label1:... |
unit ColorBandTestUnit;
interface
uses
DUnitX.TestFramework
,Spring
,Spring.Collections
,SysUtils
,ClrBandInterface
,XML.XMLIntf
,XMl.XMLdoc
,Graphics
;
type
[TestFixture]
TColorBandTest = class( TObject)
private
FClrBand: IBandFill;
procedure SubtractUsedPolygonK... |
{***************************************************************}
{ Copyright (c) 2013 год . }
{ Тетенев Леонид Петрович, ltetenev@yandex.ru }
{ }
{*******************************************************... |
unit uVariacoesMapeamentos;
interface
uses
AqDrop.DB.ORM.Attributes;
type
[AqTable('CIDADE', [])]
TCidadeManual = class
strict private
[AqAutoIncrementColumn('ID')]
FID: Integer;
[AqColumn('NOME')]
FNome: string;
[AqColumn('ATIVA')]
FAtiva: Boolean;
public
... |
unit UUtil3;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted 2008 by Bradford Technologies, Inc. }
{$WARN SYMBOL_PLATFORM OFF}
{$WARN UNIT_PLATFORM OFF}
interface
uses
Windows, Graphics, Registry;
fun... |
unit core_lights;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,VectorGeometry,dglOpenGL,fgl,math,core_types;
type
eLightTypes = (ltDirectional, ltCube, ltSpot);
rAttenuation = record
constant:single;
linear:single;
exp:single;
end;
TBaseLight = class
color:TAf... |
unit FastStrings;
interface
uses
SysUtils;
function FastCharPos(const aSource : string; const C: Char; StartPos : Integer): Integer;
function FastCharPosNoCase(const aSource : string; C: Char; StartPos : Integer): Integer;
function FastPos(const aSourceString, aFindString : string; const aSourceLen, aFindLen, St... |
unit PlayersOOP;
interface
uses
Math;
type
TPlayer = class
private
procedure SetArmor(const Value: Word);
procedure SetArmorProtection(const Value: Single);
procedure SetHitPower(const Value: Byte);
procedure SetHP(const Value: Byte);
function GetDead: Boolean;
protected
FHP: Byte;
... |
unit oracleconnectionbridge;
{$mode objfpc}{$H+}
interface
uses
Classes, oracleconnection, sqldb;
type
{ TOracleConnectionBridge }
TOracleConnectionBridge = class(TComponent)
private
FDatabaseName: string;
FHostName: string;
FPort: string;
FPassword: string;
FUserName: string;
pr... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Spin;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Lab... |
unit Menu.Model.Conexoes.Interfaces;
interface
uses
System.Classes;
type
iModelConexaoParametros = interface;
iModelConexao = interface
['{5A13EAAD-DCE8-42F1-B964-D1C49C0719CA}']
function Conectar: iModelConexao;
function EndConexao : TComponent;
function Parametros : iModelConexaoParametros;
... |
{
CoolProp Graphic Demo - Main form
Bruce Wernick, 13 December 2015
}
unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls, ExtCtrls,
uMolChart;
type
TMainForm = class(TForm)
ListBox1: TListBox;
PaintBox1: TPaintBox;
StaticTex... |
unit Board;
interface
uses Graphics, Types {TPoint}, ManagedItem, Contnrs, Classes;
// ******************************************************************************
// TbrBoard class describes board dimensions, tracks and interconnectons
// ******************************************************************... |
unit CryptoAPI;
interface
uses
Windows, SysUtils, Classes, EncdDecd, wcrypt2, System.NetEncoding;
const
LR_KEY_LEN = 64;
aBaseKey: array [0..17] of Byte = (89, 111, 117, 39, 118, 101, 32, 71, 111, 116, 32, 82, 104, 121, 116, 104, 109, 33);
type
TLRKey = array[0..(LR_KEY_LEN -1)] of Byte;
TCry... |
unit uplugin_h;
// Name: uplugin_h.pas
// Copyright: SoftWest group.
// Author: Maxim Mihaluk
// Date: 27.12.05
// Description: ядро програми Veles.exe (заголовок для плагінів);
// (нова версія - з динамічно формованими меню для плагінів та
// трейем).
interface
uses
... |
unit StatisticsManager;
{$WARN SYMBOL_PLATFORM OFF}
interface
uses
ComObj, RDA_TLB, RDAObj;
type
TStatisticsManager = class(TRDAObject, IStatistics, IStatisticsControl)
public
//IStatistics
function Get_SwitchedOnRDA: Integer; safecall;
function Get_SwitchedOnRadar: Integer; safecall... |
{ Invokable implementation File for TTxsRxsWS which implements ITxsRxsWS }
unit TxsRxsWSImpl;
interface
uses InvokeRegistry, Types, XSBuiltIns, TxsRxsWSIntf, CommunicationObj, Advantech;
type
{ TTxsRxsWS }
TTxsRxsWS = class(TCommObj, ITxsRxsWS)
public
// TxsRxs
function Get_TxRxCount: I... |
//****************************************************************************
//
// Program Name : AT Library
// Platform(s) : Android, iOS, Linux, MacOS, Windows
// Framework : Console, FMX, VCL
//
// Filename : AT.Math.BitOps.pas
// Date Created : 28-JAN-2014
// Author : Matthew Vesperman
/... |
unit ProdutoDependenciaEst;
interface
uses SysUtils, Contnrs,
Dispensa,
Produto;
type
TProdutoDependenciaEst = class
private
Fcodigo :Integer;
Fcodigo_produto :Integer;
Fcodigo_dispensa :Integer;
Fquantidade_baixa :Real;
FDispensa :TDispensa;
FProduto: TProduto;
function GetDisp... |
unit DataVoucha;
interface
uses
System.SysUtils, System.Classes, ZAbstractConnection, ZConnection,
ZSqlProcessor;
type
TOnStatusText = procedure (Sender: TObject; const AStatusText: String) of object;
TDataModuleVoucha = class(TDataModule)
Connection: TZConnection;
Proc: TZSQLProcessor;
procedure... |
// =============================================================================
// Module name : $RCSfile: StepGroup.pas,v $
// Description : This unit defines different groups of test steps, in order to
// to manage all steps, which are read from a script.
// script is composed of vari... |
PROGRAM Caesar;
USES sysutils, Crt;
CONST
ASCII = 255;
TYPE
operation = (encrypt, decrypt);
VAR
srcFile, destFile : STRING;
src, dest : FILE OF CHAR;
c : CHAR;
op : operation;
validParam : BOOLEAN;
key : INTEGER;
PROCEDURE init;
BEGIN
srcFile := '';
destFile := '';
key := 0;
validParam := ... |
unit UntMovimentoCaixaDAO;
interface
uses SysUtils, IBDatabase,IBCustomDataSet, DB,IBQuery,
UntMovimentoCaixaVO, U_DM, UntDao,ClipBrd;
type
TMovimentoCaixaDAO = Class(TObject, IDao)
constructor create(conexao : TIBDatabase;transacao : TIBTransaction;codEmpresa:Integer);
destructor destroy;over... |
unit Service;
interface
uses
Base.Objects,
System.Generics.Collections;
type
IService = interface(IFrameworkInterface)
['{163BA468-88EF-48C3-B735-8A6292A1F0EE}']
end;
TService = class(TFrameworkObject, IService)
end;
ISingleton = interface(IService)
['{65B00A88-8C54-4526-AB2C-AED29... |
PROGRAM EX18;
USES CRT;
VAR peso_saco, racao_gato1, racao_gato2, total_final: REAL;
BEGIN
{Limpa a tela}
CLRSCR;
{Mostra mensagem antes da leitura do peso do saco de ra‡ao}
WRITE('Digite o peso do saco de ra‡ao em quilos: ');
{Recebe o peso do saco de ra‡ao em quilos}
READLN(peso_saco);
{Mostra mensagem antes... |
unit uSistemaController;
interface
uses
uConexao, SysUtils, uEmpresaModel;
type
TSistemaControll = class
private
FConexao : TConexao;
FEmpresa: TEmpresaModel;
class var FInstance : TSistemaControll;
public
constructor Create;
destructor Destroy;override;
class function GetInstance:TS... |
unit expansionbase;
{$UNITPATH .}
interface
uses
Exec, configvars;
{$IFDEF AMIGA} {$PACKRECORDS 2} {$ENDIF}
{$IFDEF MORPHOS} {$PACKRECORDS 2} {$ENDIF}
const
TOTALSLOTS = 256; // no idea where this value is coming from, not available in autodocs
Type
{*
BootNodes are used by dos.library to de... |
{Hint: save all files to ...\AppTCPClientDemo2\jni }
unit unit1; {by Guser979}
{https://forum.lazarus.freepascal.org/index.php/topic,55201.0.html}
{$mode delphi}
// {$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Laz_And_Controls, AndroidWidget, tcpsocketclient,
opendialog, blcksock, uTCPSo... |
unit class_edit_cmd;
interface
uses
SysUtils
,Classes
,mapper
,mvc_base
,tiObject
,class_edit_view
,class_edit_ctrl
,app_commands
;
type
TClassEditCommand = class(TCmdNotifyEvent)
public
function Controller: TClassEditController; reintroduce;
end;
{: Edit Class Property. }
TCmdDoEdit... |
unit ReceiptChildTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TReceiptChildTest = class(TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TReceiptChild = class(TObjectTest)
private
function InsertDefault: integer; overr... |
unit UCustomers;
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.S... |
unit U_FrmMenu;
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.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC.Stan.Pool, Fir... |
{******************************************************************************}
{ }
{ LazORM Project }
{ ... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ Copyright(c) 2012-2013 Embarcadero Technologies, Inc. }
{ ... |
unit Model.Main;
interface
uses
Core.Database.Aurelius.Types, Model.Main.Types;
function createModelMain (const aDatabase: IAurelius): IModelMain;
implementation
uses
System.Generics.Collections,
Core.Database.Entities, Aurelius.Engine.ObjectManager, System.SysUtils,
Aurelius.Types.Blob;
type... |
// by eGust
unit SynJass;
{$I SynEdit.inc}
interface
uses
SysUtils,
Classes,
{$IFDEF SYN_CLX}
QControls,
QGraphics,
{$ELSE}
Windows,
Controls,
Graphics,
{$ENDIF}
SynEdit,
SynEditTypes,
SynEditHighlighter;
type
TtkTokenKind = (
tkComment,
tkIdentifier,
tkKe... |
unit example01main;
// Code Example 01 of using XDOM 2.2.1
// Delphi 3 Implementation
//
// You need XDOM 2.2.1 or above to use this source code.
// The latest version of XDOM can be found at "http://www.philo.de/xml/".
//
// Copyright (c) 2000 by Dieter Köhler
// ("http://www.philo.de/homepage.htm")
//
// Permission ... |
unit uF0_namaTemplate; //Ganti : sesuaikan dengan nama file, tapi tanpa ".pas"
interface
uses uP1_tipeBentukan, uP3_Umum;
procedure mainNamaTemplate(ID : integer; //hapus parameter yang tidak perlu
var dataBahanMentah : tabelBahanMentah;
var dataBahanOlahan : tabelBahanOlahan;
var dataR... |
unit uSyntaxAnalysis;
// Syntax Parser Rhodus Language Part II
// Developed under Delphi for Windows and Mac platforms.
// *** Ths source is distributed under Apache 2.0 ***
// Copyright (C) 2019-2020 Herbert M Sauro
// Author Contact Information:
// email: hsauro@gmail.com
// Usage:
//
// sc := TScanner.Create;... |
unit ConfigEscenarios;
interface
type
TConfigEscenarios = class
private
function GetDesviacionAutomatico: boolean;
function GetDesviacionPerCent: currency;
function GetIntentos: integer;
function GetSintonizacion: integer;
procedure SetDesviacionAutomatico(const Value: boolean);
procedure ... |
unit svm_threads;
{$mode objfpc}
{$H+}
interface
uses
Classes,
SysUtils,
svm_common,
svm_stack,
svm_res,
svm_imports,
svm_mem,
svm_grabber,
svm_utils,
svm_core;
{***** Context ****************************************************************}
type
TSVMThreadContext = class
... |
unit udmMain;
interface
uses
uLog,
System.SysUtils, System.Classes, System.Math, System.JSON, System.Threading,
System.IOUtils, System.Variants, System.Generics.Collections, Winapi.Windows,
XLSSheetData5, XLSReadWriteII5, Xc12DataStyleSheet5, Xc12Utils5, XLSCmdFormat5,
Vcl.Dialogs, Vcl.Forms;
type
TdmMai... |
unit Demo.Form.Main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Rtti, Vcl.StdCtrls,
Neon.Core.Types,
Neon.Core.Persistence,
Neon.Core.Persistence.JSON,
OpenAPI.Models,
OpenAPI.Serializer,
... |
unit SG_CheckListBox;
interface
uses
stdctrls,
classes,
checklst;
type
TSG_CheckListBox = class(TCheckListBox)
private
{ Private declarations }
_esPosibleActualizarValores:boolean;
_nombreTabla:string;
_nombreCampoClave:string;
_nombreCampoDescripcion:string;
procedure crearValor(S... |
unit UTestProc;
{
This is a test program. That tests the return value of a stored-procedure
in ADO.
The test DB-Server is TestServer
}
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls,ADODB_TLB;
type
TForm1 = class(TForm)
Label1: TLabel;
edAccount: T... |
program fodP3E6;
const
valorAlto = 9999;
type
rMaestro= record
cod_prenda: integer;
//desc: string[50];
//colores: string[50];
//tipo_prenda: string[50];
stock: integer;
precio_unitario: real;
end;
rDetalle = record
codPrenda: integer;
end;
maestro = file of rMaestro;
detalle = fil... |
Unit GraphicsButton;
Interface
Uses
System.SysUtils, System.Classes, Vcl.Controls, Vcl.StdCtrls, Winapi.Messages, Winapi.CommCtrl, Winapi.Windows,
Winapi.GDIPAPI, Winapi.GDIPOBJ, GraphicsUtils;
Type
TGraphicsButton = Class(TButton)
Private
{ Private declarations }
FImage : TGPBitmap;
FImageGrey: TGPBitm... |
namespace DocsGen;
interface
type
ILogger = public interface
method Error(aMsg: String);
method Debug(aMsg: String);
method Info(aMsg: String);
method Warn(aMsg: String);
property ShowDebug: Boolean read write;
property ShowInfo: Boolean read write;
property ShowWarn: Bool... |
unit Form.Tela.ERP;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, VclTee.TeeGDIPlus, Data.DB,
Vcl.ExtCtrls, VCLTee.TeEngine, VCLTee.TeeProcs, VCLTee.Chart, VCLTee.DBChart,
Vcl.StdCtrls, Vcl.Buttons,... |
(*
Copyright (c) 2011-2012, Stefan Glienke
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions ... |
unit playerChangeTeam;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Grids, Vcl.DBGrids,
Data.DB;
type
TfrmPlayerChangeTeam = class(TForm)
DataSource1: TDataSource;
DB... |
program tasklist;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : tasklist
Source : Snapshots and prints the ExecBase task list
}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNITPATH ../../../Base/Trinity}
Uses
Exec,
... |
unit TitProcces;
interface
uses Forms,Controls,Graphics,Windows,SysUtils,DB,Classes,Variants,Excel2000,ComObj,Dialogs;
procedure SetRusFonts(sender: TObject);
function ExecAndWait(const FileName, Params: ShortString; const WinState: Word): boolean; export;
Procedure SendtoExcel(ShFile: String; Querys: TDataSet;colFo... |
(*============================================================================
-----BEGIN PGP SIGNED MESSAGE-----
This code (c) 1994, 1997 Graham THE Ollis
GENERAL NOTES
=============
This is 16bit DOS TURBO PASCAL source code. It has been tested using
TURBO PASCAL 7.0. You will need AT LEAST version 5.0 ... |
unit dsdExportToXLSAction;
interface
uses Data.DB, System.Classes, System.SysUtils, System.Win.ComObj, System.StrUtils,
Vcl.Graphics, Vcl.ActnList, Vcl.Dialogs, dsdAction, dsdDB;
type
TdsdOrientationType = (orPortrait, orLandscape);
TdsdCalcColumnType = (ccNone, ccSumma, ccMultiplication, ccDivision, ccPer... |
unit Main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls,
DSharp.Aspects.Logging;
type
TMainForm = class(TForm)
Button1: TButton;
Memo1: TMemo;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
procedu... |
unit IlliquidUnit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorDocument, cxGraphics,
cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxPCdxBarPopupMenu,
cxStyles, cxCustomData, cxFilter, cxData... |
unit TestThreadPool;
interface
uses
TestFramework,
Winapi.Windows,
System.Classes,
System.Contnrs,
System.SysUtils,
System.SyncObjs,
Generics.Defaults,
Generics.Collections,
Vcl.Forms,
ThreadPool;
type
TTestThreadPool = class(TTestCase)
public
procedure TearDown; over... |
/// `uv` module support bindings for SyNode
// - this unit is a part of the freeware Synopse framework,
// licensed under a MPL/GPL/LGPL tri-license; version 1.18
unit SyNodeBinding_uv;
interface
{$I Synopse.inc}
{$I SyNode.inc}
implementation
uses
{$ifdef ISDELPHIXE2}System.SysUtils,{$else}SysUtils,{$endif}
SynC... |
unit AqDrop.Core.Helpers.JSON;
interface
uses
{$IF CompilerVersion >= 27} // DXE6+
System.JSON;
{$ELSE}
Data.DBXJSON;
{$ENDIF}
type
TAqJSONValueHelper = class helper for TJSONValue
public
function TryAs<T: class>(out pObjeto: T; const pAcceptNull: Boolean = False): Boolean;
function &A... |
(*
╔═══════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ This is a custom wrapper for Template7. Template7 is a mobile-first JavaScript template engine with ║
║ Handlebars-like syntax. It is used as default template engine in Framework7 ... |
Unit RequestQueue;
{
TITLE: PROGRAMMING II LABS
SUBTITLE: Practical 2
AUTHOR 1: Carlos Torres Paz LOGIN 1: carlos.torres@udc.es
AUTHOR 2: Daniel Sergio Vega Rodriguez LOGIN 2: d.s.vega@udc.es
GROUP: 5.4
DATE: 03/05/2019
}
interface
const
NULLQ = 0;
QUEUESIZE = 25;
type
tRequest = char;
tItemQ = recor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.