text stringlengths 14 6.51M |
|---|
{***************************************************************************}
{ }
{ Delphi.Mocks }
{ }
{ ... |
unit TestMain;
interface
uses
AccountServiceIntf,
CurrencyServiceIntf,
TestFramework;
type
TCurrencyServiceTest = class(TTestCase)
private
FMockCurrencyService: ICurrencyService;
FAccountService: IAccountService;
public
procedure SetUp; override;
procedure TearDown; override;
published
... |
unit UnitFormMain;
{===============================================================================
CodeRage 9 - Demo for TParallel.For with Stride
This code visually shows how Stride works when using TParallel.For.
It also shows how the ThreadPooling works by coloring the rectangles
that were calculated i... |
unit GoodsPropertyTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TGoodsPropertyTest = class (TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TGoodsProperty = class(TObjectTest)
private
function InsertDefault: integer; o... |
unit MusicLibrary;
interface
uses
Classes, SysUtils, TestFramework, Music;
type
TMusicLibrary = class (TObject)
protected
FLibrary: string;
FSelectIndex: Integer;
MusicLibrary : TList;
function GetCount: Integer;
function GetSelectedSong: TMusic;
public
constructor Cre... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ Copyright(c) 2011-2013 Embarcadero Technologies, Inc. }
{ ... |
unit SAPBom2SBomWin;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ToolWin, ImgList, StdCtrls, ExtCtrls, IniFiles,
SAPBomReader, SAPStockReader;
type
TfrmSAPBom2SBom = class(TForm)
ImageList1: TImageList;
ToolBar1: TToolBar;
btnSave2:... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ Copyright(c) 2012-2013 Embarcadero Technologies, Inc. }
{ }
{*****************************... |
unit DragImageU;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls;
type
//Delphi 4 and later allows us to inherit custom drag objects from
//TDragControlObject (earlier versions forced you to go back to TDragObject)
TTextDragObject = class(TDragCon... |
unit snavigationview;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, AndroidWidget, systryparent;
type
{Draft Component code by "Lazarus Android Module Wizard" [12/16/2017 3:45:23]}
{https://github.com/jmpessoa/lazandroidmodulewizard}
{jVisualControl template}
{ jsNavigationView }
jsNavigationView ... |
unit TransformationProject;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
ComCtrls, CheckLst, Buttons;
type
{ TtranformationForm }
TtranformationForm = class(TForm)
btnLoad: TButton;
checkCenter: TCheckBox;
imgOriginal: ... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
unit URepositorioConvenio;
interface
uses
UConvenio
, UEntidade
, URepositorioDB
, SqlExpr
;
type
TRepositorioConvenio = class(TRepositorioDB<TCONVENIO>)
public
constructor Create;
procedure AtribuiDBParaEntidade(const coCIDADE: TCONVENIO); override;
procedure AtribuiEntidadeParaDB(const... |
unit IdTestIPMCastServer;
//http://www.rfc-editor.org/rfc/rfc1112.txt
//http://www.rfc-editor.org/rfc/rfc1458.txt
interface
uses
IdTest,
IdObjs,
IdSys,
IdThreadSafe,
IdSocketHandle,
IdGlobal,
IdIPMCastClient,
IdIPMCastServer;
type
TIdTestIPMCastServer = class(TIdTest)
private... |
unit ObjectCollection;
interface
uses SysUtils;
type
TObjectCollectionType = ( octArray, octSet );
TObjectCollectionItem = record
key: string;
value: TObject;
end;
TObjectCollection = class
private
fType: TObjectCollectionType;
procedure Sort( asNumbers: boolean );
function RemoveOneI... |
unit Controllers.User;
interface
procedure Registry;
implementation
uses Horse;
procedure ListarUsuarios(Req: THorseRequest; Res: THorseResponse; Next: TProc);
begin
Res.Send('[{"id": 1, "name": "vinicius", "lastName": "sanchez", "lastUpdate": "2021-07-26T20:17:25.341Z"}]');
end;
procedure ObterUsuario(Req: THo... |
unit SQLQueryGroup;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, SQLDB, db;
type
{ TSQLQueryComponent }
TSQLQueryComponent = class(TCollectionItem)
private
FAutoincGenerator: boolean;
FIncludeInClose: boolean;
FIncludeInOpen: boolean;
FIncludeInUpdate: Boolean;
FRepeatCount: Ca... |
(**********************************************************************
Copyright 1998-2003, Microchip Data Systems / Carl Bunton
Under license agreement, this source module may be used only on a
single computer.
No portion of this module may be reproduced, copied, revised, edited,
distributed or transmit... |
unit uPDFPrint;
/// <author>Mauricio Sareto</author>
/// <e-mail>mauricio_sareto@hotmail.com</e-mail>
///
/// Contribua com o desenvolvimento da classe. Use a chave pix acima para contribuir.
/// Esta unit tem por finalidade gerar relatorios para FMX Mobile, ela por ser
/// editada e alterada, nao compartilh... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
unit ctxtcall;
interface
uses
Windows;
type
ComCallData = record
dwDispid : DWORD;
dwReserved : DWORD;
pUserDefined : pointer;
end;
TComCallData = ComCallData;
PComCallData = ^TComCallData;
const
strIID_IContextCallback = '{000001da-0000-0000-C000-000000000046}';
IID_IContextCallback : TG... |
unit jclass_attributes_abstract;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
jclass_attributes,
jclass_types,
jclass_annotations,
jclass_enum;
type
{ TJClassBufferAttribute }
TJClassBufferAttribute = class(TJClassAttribute)
protected
FData: TBytes;
public
procedure LoadFromStr... |
unit Alcinoe.InternetMessages;
interface
{$I Alcinoe.inc}
uses
system.Classes,
Alcinoe.StringList;
Type
{-----------------------------}
TALEMailHeader = Class(Tobject)
Private
fSendTo: AnsiString;
fSender: AnsiString;
fMessageID: AnsiString;
fbcc: AnsiString;
fConte... |
unit TSTOBsv.Bin;
Interface
Uses
Classes, SysUtils, HsStreamEx, TSTOBsvIntf;
Type
IBinBsvImage = Interface(IBsvImage)
['{4B61686E-29A0-2112-85CC-80DC1067203C}']
Procedure LoadFromStream(ASource : IStreamEx);
Procedure SaveToStream(ATarget : IStreamEx);
End;
IBinBsvImages = Interface(IBsvImages)... |
unit virtualpanningwindow;
{$mode objfpc}{$H+}
interface
uses
LCLType, Graphics, Classes, SysUtils;
type
{ TVirtualPanningWindow }
TVirtualPanningWindow = class
private
FHandle: THandle;
FOwnerHandle: THandle;
FImage: TBitmap;
procedure HandlePaintMessage;
public
... |
unit FPrincipal;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, Menus, FRegistration, FSearch, FLogin, DB, ADODB, RXShell,
jpeg, ExtCtrls;
type
TFrmPrincipal = class(TForm)
StatusBar1: TStatusBar;
MainMenu1: TMainMenu;
File1: TMenuItem... |
unit UtStr;
interface
const
chBEEP = ^G;
chBS = ^H;
chTAB = ^I;
chLF = ^J;
chNP = ^L;
chCR = ^M;
chSPACE = ' ';
const
HexChr : array[0..$F] of char = '0123456789ABCDEF';
type
CharSet = set of char;
function ReplaceChar( const S : string; Src, Dst : char) : string... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
UNIT MainUnit;
INTERFACE
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Buttons, ComCtrls, MyPDFRender, MyChromePDFRender;
type
TMainForm = class(TForm)
Panel1: TPanel;
ScrollBox1: TScrollBox;
imgPage: TImage;
btnGoPrevPage: TSpeedBu... |
unit RESTRequest4D.Response.NetHTTP;
interface
uses RESTRequest4D.Response.Contract, System.Net.HttpClientComponent, System.Net.HttpClient, System.Net.URLClient,
System.SysUtils, System.JSON, System.Classes;
type
TResponseNetHTTP = class(TInterfacedObject, IResponse)
private
FJSONValue: TJSONValue;
FHT... |
namespace Sunko;
type
OperationType = (
DeclareVariable = 2,
AssignmentVariable = 4,
DeclareWithAssignment = 8,
AutotypeDeclare = 12,
DestructionVariable = 16,
ConditionOperator = 32,
ElseOperator = 64,
ForCycleOperator = 128,
LoopCycleOperator = 129,
WhileOperator = 256,
... |
unit Person;
interface
type
TPerson = class
private
countMark_:integer;
name_:string;
answers_:record
item:array of string;
count:Integer;
end;
public
constructor create(countQuestion:integer);
procedure setName(name:string);
function getName():stri... |
unit mnDateRangeTestCase;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework, mnDateRange, cxCalendar... |
unit UUserController;
interface
uses
SysUtils, UConnection, UUser, md5;
type
TUserController = class
private
conn: TConnection;
usu: TUser;
public
Constructor Create(usu: TUser); overload;
function Login: TUser;
end;
implementation
constructor TUserController.Create(usu: TUser);
begin
s... |
unit ImportSettingsTest;
interface
uses dbTest, dbObjectTest, ObjectTest;
type
TImportSettingsTest = class (TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
procedure LoadDataTest;
end;
TImportSettingsObjectTest = class(TObjectTest)
function InsertDef... |
unit UStdCmtsList;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdC... |
unit ContactManager.DemoDataProvider;
interface
uses
Classes,
DSharp.ComponentModel.Composition,
Spring.Collections;
type
[PartCreationPolicy(cpShared)]
TDemoDataProvider = class
private
FContacts: IObjectList;
function GetContacts: IObjectList;
public
constructor Create;
[Export('DemoD... |
unit PLabelPanel;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
RxCtrls, Extctrls, stdCtrls;
type
TPLabelPanel = class(TCustomControl)
private
{ Private declarations }
FLabel: TRxLabel;
FPanel: TPanel;
FSpace: integer;
//FParentFont: Boolean;
... |
unit GameLogic;
interface
procedure Main();
implementation
uses
GameResources,
SysUtils,
SwinGameAPI,
KeyCodes;
function ReadString(prompt: String; x, y, maxLength: Integer; font: Font;
promptColor, textColor, backColor: Color): String;
var
temp: String;
begin
temp := StringOfCha... |
unit LImage;
interface
uses pngimage;
type
TLImage = class
Image:TPNGImage;
Name:String;
constructor create(s:String);
destructor Destroy;override;
end;
implementation
constructor TLImage.create(s: string);
begin
Image:=TPngImage.Create;
Name:=s;
Image.LoadFromFile(s);
end;
destructor TLIm... |
unit TimeEdit;
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.ComCtrls, Winapi.CommCtrl;
type
TTimeEditEvent = procedure(Sender: TObject; time: Int64) of object;
... |
unit EnumerableTests;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
TEnumerableTests = class(TObject)
public
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
[Test]
procedure TestListSerialization;
[Test]
procedure TestDictSerialization;
[Test]
pro... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
program clock;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNITPATH ../../../Base/Trinity}
{$UNITPATH ../../../Base/Sugar}
{
==================================================================... |
unit TBlokVystup;
{
Definice a obsluha technologickeho bloku Vystup.
Technologicky blok Vystup nastavi po spusteni systemu konkretni MTB vystup
do logicke hodnoty "1", pri vypinani systemu ho vrati do logicke hodnoty
"0".
}
interface
uses IniFiles,TBlok;
type
TBlkVystupSettings = record
RCSAddrs:TRCSAd... |
unit Command.Interfaces.Receiver;
interface
type
IReceiver = interface
['{16DA2585-7AA7-4316-A20B-EC7B7BC9F795}']
function DoSomething(AString: string): IReceiver;
function DoSomethingElse(AString: string): IReceiver;
end;
implementation
end.
|
unit ProjectInputCSV;
interface
uses Project, Classes, SysUtils, ExceptSafe;
type EProjectInput = class( Exception );
ESafeProjectInput = class( ESafe );
type
TProjectInputLoaderCSV = class
private
FProject : TveProject;
FProduct : integer;
FFileCompatibility : integer;
... |
unit LookAndFillSettings;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxStyles, cxCustomData, cxFilter, cxData,
cxDataStorage, cxEdit, Data.D... |
{
Sobre o autor:
Guinther Pauli
Delphi Certified Professional - 3,5,6,7,2005,2006,Delphi Web,Kylix,XE
Microsoft Certified Professional - MCP,MCAD,MCSD.NET,MCTS,MCPD (C#, ASP.NET, Arquitetura)
Colaborador Editorial Revistas .net Magazine e ClubeDelphi
MVP (Most Valuable Professional) - Embarcadero Technologies - U... |
unit UTestDesign;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Db, DBTables, Grids, DBGrids, ComCtrls, ExtCtrls, ExtDlgs;
type
TForm1 = class(TForm)
OpenDialog: TOpenDialog;
Table1: TTable;
DataSource1: TDataSource;
Query1: TQuery;
DataS... |
unit OpenArraysForm;
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.Controls.Presentation, FMX.ScrollBox, FMX.Memo;
type
TForm1 = class(TForm)
Memo1: TMemo;
Button1: TButto... |
unit CurrencyServiceIntf;
interface
uses
SysUtils;
type
ICurrencyService = interface(IInvokable)
['{A931D38A-8E9B-4B52-95D6-2ED6004D3F7D}']
function GetConversionRate(const AFromCurrency, AToCurrency: string): Double;
end;
ECurrencyServiceException = class(Exception);
implementation
end.
|
unit MemberTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TMemberTest = class(TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TMember = class(TObjectTest)
function InsertDefault: integer; override;
procedure SetDataSe... |
PROGRAM PoliticianPoll;
CONST POLTICIAN_COUNT = 6;
INDEX_NEGATIVE_VOTES = 1;
INDEX_POSITIVE_VOTES = 2;
PADDING_CENTER = 1;
HEADER_MIN_LENGTH = 8;
EXIT_FAILURE = 1;
TYPE POLITICIAN_POLL_RESULT = ARRAY[1..POLTICIAN_COUNT, 1..2] OF INTEGER;
VAR politician_poll: POLITICIAN_POLL_RESULT;
max_negative_poll_valu... |
unit zPELoader;
interface
uses Windows, classes, sysutils;
const
// Каталоги данных
// Каталог экспортируемых объектов
IMAGE_DIRECTORY_ENTRY_EXPORT = 0;
// Каталог импортируемых объектов
IMAGE_DIRECTORY_ENTRY_IMPORT = 1;
// Каталог ресурсов
IMAGE_DIRECTORY_ENTRY_RESOURCE = 2;
// Каталог исключ... |
unit frm_WebDrvier_Service;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Webdriver4D,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.IniFiles,
WD_httpDelphi, WD_http, Vcl.ExtCtrls;
type
TTWebDriverService = class(TForm)
Butt... |
unit uframePeriodo;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Mask, FocusMaskEdit, Funcoes, MarcianoBallon;
type
TframePeriodo = class(TFrame)
edtDtI: TFocusMaskEdit;
edtDtF: TFocusMaskEdit;
balao: TMarcianoBallon;
StaticText1: ... |
unit MainUnit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
System.Win.ComObj, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGridExportLink, cxGraphics, Math,
cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, System.RegularExpressions,
... |
unit PrintExtension;
interface
uses
Windows;
var
Com_Label, Com_ImageList: THandle;
{------------------------------------------BTP-L520打印机-----------------------}
//打印机型号区分
const
Dev_Type_L520_5640 = 1; //SNBC BTP-L520 560mm x 400mm
Dev_Type_L520_3630 = 2; //SNBC BTP-L520 360mm x 300mm
//打印机状态... |
(*============================================================================
-----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 uConfiguracoes;
interface
uses
Windows,
Messages,
SysUtils,
Variants,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
ComCtrls,
StdCtrls,
Buttons,
ExtCtrls,
uDataModule,
Mask,
ADODB,
Focus,
uPadrao,
StrUtils,
PngImageList,
uPrincipal,
uUtils,
... |
unit TSTOProjectIntf;
interface
Uses HsXmlDocEx;
Type
ITSTOXmlMasterFile = interface(IXmlNodeEx)
['{2D01B906-F4F3-4ADE-B385-2F6FD1EA59E2}']
Function GetFileName() : AnsiString;
Procedure SetFileName(Value : AnsiString);
Function GetNodeName() : AnsiString;
Procedure SetNodeName(Value : AnsiSt... |
{
Joshua Trunk
4/12/2018
CSC540 Graduate Research Seminar (Online)
Using Free Pascal Compiler, this program simulates the European Roulette Wheel with one zero; no double zero. User inputs the amount of spins they want to gamble on and they select one lucky number for a chance to win a progressive jackpot
if t... |
unit CoreAPI;
interface
uses
CrossUrl.HttpClient,
System.Rtti,
System.TypInfo,
System.SysUtils,
System.Generics.Collections,
System.Classes,
TelegAPI.Base,
TelegAPI.Types;
type
ItgRequestAPI = interface
['{3DC5A653-F52D-4A31-87AD-0C008AFA7111}']
// private
function GetOnError: TProc<Exc... |
program BonusMalus;
// declare your variables here
var trap, aantalOngevallen: integer;
var opnieuw: char;
function InvoerChar(boodschap: string): char;
begin
writeln(boodschap);
readln(InvoerChar);
end;
procedure InvoerBonusMalus;
begin
writeln('Wat was de bonus-malus trap van vorig jaar? [1 - 18]');
readln... |
// ******************************************************************
//
// Program Name : AT Software_DNA Library
// Program Version: 1.00
// Platform(s) : OS X, Win32, Win64
// Framework : FireMonkey
//
// Filenames : AT.DNA.FMX.Dlg.ActivationCode.pas/.fmx
// File Version : 1.30
// Date Created : 0... |
unit UOpenDialogEx;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2006 by Bradford Technologies, Inc. }
{$WARN SYMBOL_PLATFORM OFF}
{$WARN UNIT_PLATFORM OFF}
{ This unit is for setting the OpenDialog ... |
{**************************************************************************}
{ }
{ This Source Code Form is subject to the terms of the Mozilla Public }
{ License, v. 2.0. If a copy of the MPL was not distributed with this }
{ fi... |
program calc1;
{$H+}
uses
typinfo, sysutils, character;
type
TokenType = (TT_Integer, TT_Plus, TT_Minus, TT_Asterisk, TT_Slash, TT_Eof,
TT_LParen, TT_RParen);
Token = class
TokenType: TokenType;
constructor Create(Type_: TokenType);
function ToStr: String; virtual;
en... |
unit LAPI_Cmd;
{
Sandcat Console Command LUA Object
Copyright (c) 2011-2014, Syhunt Informatica
License: 3-clause BSD license
See https://github.com/felipedaragon/sandcat/ for details.
}
interface
uses
Classes, Forms, SysUtils, Graphics, Lua, LuaObject;
type
TSCBCmdObject = class(TLuaObject)
private
... |
{ @abstract(This file is part of the KControls component suite for Delphi and Lazarus.)
@author(Tomas Krysl)
Copyright (c) 2020 Tomas Krysl<BR><BR>
<B>License:</B><BR>
This code is licensed under BSD 3-Clause Clear License, see file License.txt or https://spdx.org/licenses/BSD-3-Clause-Clear.html.
}
... |
unit DatabaseServerRoleAuthentificationService;
interface
uses
SystemAuthentificationService,
DatabaseServerAuthentificationService,
DataReader,
QueryExecutorFactory,
ClientAccount,
SysUtils,
Classes;
type
TUserRoleAccountDbSchemaData = class (TUserAccountDbSchemaData)
public
RoleTableN... |
Unit XPDlg;
Interface
Uses Windows, ComCtrls, Classes, SysUtils, Graphics, Forms, Controls, Buttons,
StdCtrls, ExtCtrls, Spin, Dialogs, Mask, Printers,
ppTypes, ppUtils, ppForms, ppProd, ppPrintr, XTxtPrn, DB, XReports;
Type
TXPrintDialog = class(TppCustomPrintDialog)
btnOK: TButton;
b... |
unit Datares;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
{$ifdef delphi3}
TOwnedCollection = class(TCollection)
private
FOwner: TPersistent;
protected
function GetOwner: TPersistent; override;
public
constructor Create(AOwner: TPersistent; Item... |
{$MODESWITCH RESULT+}
{$GOTO ON}
(*************************************************************************
Copyright (c) 2008, Sergey Bochkanov (ALGLIB project).
>>> SOURCE LICENSE >>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as p... |
unit AqDrop.Core.Calendar;
interface
uses
AqDrop.Core.Helpers;
type
TAqCalendarEvent = class
strict private
FStart: TDateTime;
FLength: TDateTime;
FAllDay: Boolean;
function CalcEndDateTime: TDateTime;
function GetStartDate: TDate;
function GetStartTime: TTime;
f... |
var
sHello: string;
procedure HelloWorld (s: string);
begin
ShowMessage(s);
end;
begin
// just for example
sHello := 'Script said hello!';
HelloWorld(sHello);
end.
|
unit DatabaseAuthentificationFormController;
{
procedure OnFormDestroyHandler(Sender: TObject); virtual;
}
interface
uses
SystemAuthentificationFormController,
SystemAuthentificationFormViewModel,
DatabaseAuthentificationFormViewModel,
unDatabaseAuthentificationForm,
unSystemAuthentificationForm,
Databa... |
unit SendDebtMember;
interface
uses
AncestorEditDialog, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters,
Vcl.Menus, cxControls, cxContainer, cxEdit, Vcl.ComCtrls, dxCore, cxDateUtils,
dsdGuides, cxDropDownEdit, cxCalendar, cxMaskEdit, cxButtonEdit, cxTextEdit,
cxCurrencyEdit, Vcl.Controls, cxLabel, dsdDB, ... |
unit Model;
interface
type
TDataBaseObject = class
private
FTable: string;
FView: string;
procedure SetTable(const Value: string);
procedure SetView(const Value: string);
public
property Table: string read FTable write SetTable;
property View: string read FView write SetView;
end;
T... |
unit mnQuickLaunch;
interface
uses ToolsAPI, cxMCListBox, Forms;
type
mnTOpenBDSFolder = class(TNotifierObject, IOTAWizard, IOTAMenuWizard)
protected
// IOTAWizard methods
function GetIDString: string;
function GetName: string;
function GetState: TWizardState;
procedure Execute;
// IOTAMe... |
unit Unit1;
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.TabControl, FMX.ListBox, FMX.Controls.Presentation, FMX.Edit,
FMX.Layouts,
TBGFirebaseConnection.View.Co... |
unit DatabaseConfigDBX;
interface
uses DatabaseConfig, Classes, IniFiles;
type
IDatabaseConfigDBX = interface(IDatabaseConfig)
['{96111300-F115-4ADC-B694-DCC21AAEA127}']
procedure SetDriverName(const Value: String);
procedure SetGetDriverFunc(const Value: String);
procedure SetLibraryName(const Value... |
//Only compile for the OS X platform.
{$IF ( (NOT Defined(MACOS)) OR (Defined(IOS)) )}
{$MESSAGE Fatal 'AT.MacOS.AlertDelegate.pas only compiles for the OS X platform.'}
{$ENDIF}
// ******************************************************************
//
// Program Name : Angelic Tech Mac OS X Library
// Program Vers... |
unit uEmpresaModel;
interface
uses
SysUtils;
type
TEmpresaModel = class
private
FCodigo: Integer;
FRSocial: string;
procedure SetCodigo(const Value: Integer);
procedure SetRSocial(const Value: string);
public
property Codigo: Integer read FCodigo write SetCodigo;
property RSoc... |
unit Flyweight.Util.Helper;
interface
uses
System.SysUtils, System.Generics.Collections;
type
TStringListHelper = record Helper for
string public class
function Join(const Separator: string; const Values: TList<string>): string;
static;
end;
implementation
{ TStringListHelper }
class function TS... |
unit TSTOProjectIntf;
interface
Uses Classes, SysUtils, HsInterfaceEx, HsStreamEx;
Type
ITSTOMasterFile = Interface(IInterfaceEx)
['{4B61686E-29A0-2112-ADA1-5F552FBA5DA7}']
Function GetFileName() : AnsiString;
Procedure SetFileName(Const AFileName : AnsiString);
Function GetNodeName() : AnsiStri... |
unit Fmap;
interface
uses
Funit, Fdata, Fterrain, Windows;
const
MAP_SIZE = TerrainSize * TileSize div UNITSIZE;
type
TMapTile = record
Texture : string;
Cost : integer;
nb_units : integer;
Walkable : boolean;
Unite : TUnit;
end;
Tmap = array of array of... |
unit uDmCliente;
interface
uses
SysUtils, Classes, uDmConexao, DB, ZAbstractRODataset, ZAbstractDataset,
ZDataset, uClienteModel;
type
TDMCliente = class(TDataModule)
sqlPesquisar: TZQuery;
sqlinserir: TZQuery;
sqlAlterar: TZQuery;
sqlExcluir: TZQuery;
private
{ Private declarations }
p... |
unit UzLogSound;
interface
{
references:
Programming reference for the Win32 API
https://docs.microsoft.com/en-us/windows/win32/api/
Windows Multimedia
https://docs.microsoft.com/en-us/windows/win32/api/_multimedia/
Eternal Windows
http://eternalwindows.jp/
}
uses
Winapi.Windows, Winapi.Messages, ... |
unit ProdutoPresenter;
interface
uses ProdutoMVPIntf, ProdutoIntf, Produto, Generics.Collections;
type
TProdutoPresenter = class(TInterfacedObject, IProdutoPresenter)
private
FModel: IProduto;
FView: IProdutoView;
protected
function GetModel: IProduto;
procedure SetModel(const Value: IProduto);... |
unit FunctionsForm;
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.ScrollBox, FMX.Memo, FMX.StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
Button1: TButton... |
{Francisco Perez 7/24/2013 }
{CSC540 - 13SU - Graduate Research Seminar - Summer }
{ }
{This program makes use of a series of commented loops to simulate a game of roulette. }
{the principal loop runs according to user input. Matching statements will then }
{increment a particular counter t... |
program testInt;
var
i: integer;
begin
i := 1;
writeln(i);
while i > 0 do
begin
i := i << 1;
writeln(i);
end;
end.
|
unit SynEditDragDrop;
{
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distri... |
unit U_dtmcadastroInstituicao;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, sqldb, db, FileUtil, U_Utils, U_DtmPrincipal,
U_Instituicao;
type
{ TdtmcadastroInstituicao }
TdtmcadastroInstituicao = class(TDataModule)
qryInstituicao: TSQLQuery;
qryPesquisa: TSQLQuery;
qryPesquisaCODIGO: ... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, StdCtrls, Grids, DBGrids, ValEdit, ExtCtrls,
SE_ACMethods;
type
TForm1 = class(TForm)
ListBox1: TListBox;
Edit1: TEdit;
btnAddNew: TButton;
btnDeleteSelected: TButton;
btnSav... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
unit Alcinoe.Cipher;
interface
{$I Alcinoe.inc}
{.$A+} {Word Align Data}
{.$Q-} {Overflow Checking}
{.$R-} {Range-Checking}
{.$V-} {Var-String Checking}
{.$B-} {Complete Boolean Evaluation}
{.$I+} {Input/Output-Checking}
uses
system.sysutils,
{$IF defined(MSWINDOWS)}
winapi.windows,
{$ELSE}... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC wait time user interface }
{ }
{ Copyright(c) 2004-2013 Embar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.