text stringlengths 14 6.51M |
|---|
unit PersonalReportTest;
interface
uses dbTest, dbMovementTest, ObjectTest;
type
TPersonalReportTest = class (TdbMovementTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TPersonalReport = class(TMovementTest)
private
function InsertDefault: integer; override... |
unit ColorDataSetExample_;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, DBGrids, DB, DBClient, StdCtrls
,ClrBand, ExtCtrls, ComCtrls
,MidasLib, DBCtrls
,Spring.Collections
;
type
TRowStatus = (red, green, Yellow);
TRowStatusSe... |
unit PEdit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TPEdit = class(TCustomEdit)
private
{ Private declarations }
protected
{ Protected declarations }
function GetRdOnly:Boolean;
procedure SetRdOnly(Value: Boolean);
public
... |
unit Unit1;
interface
uses
System.SysUtils,
System.Types,
System.UITypes,
System.Classes,
System.Variants,
System.Actions,
FMX.Types,
FMX.Controls,
FMX.Forms,
FMX.Graphics,
FMX.Dialogs,
FMX.ListView.Types,
FMX.ListView.Appearances,
FMX.ListView.Adapters.Base,
FMX.Dat... |
function BoolToInt(b: boolean) : integer
begin
if b then
BoolToInt := 1
else
BoolToInt := 0
end
function Add(a : integer, b : integer) : integer
var sum : integer;
begin
sum := a + b;
Add := sum
end
function Less(a : integer, b : integer) : boolean
begin
Less := a < b
end
function Sum() : ... |
unit U_dtmcadastroMensalidade;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, sqldb, db, FileUtil, U_Utils, U_DtmPrincipal,
U_Mensalidade;
type
{ TdtmcadastroMensalidade }
TdtmcadastroMensalidade = class(TDataModule)
qryMensalidade: TSQLQuery;
qryPesquisa: TSQLQuery;
qryPesquisaCODIGO: ... |
unit SynapseEmailMessagingServiceUnit;
interface
uses
SysUtils,
Classes,
smtpsend,
mimemess,
mimepart,
ssl_openssl,
synautil,
AbstractEmailMessagingServiceUnit,
MessagingServiceUnit;
type
TSynapseEmailMessagingService = class (TAbstractEmailMessagingService)
private
FSMTPClient: TSM... |
program ArraySum(Input, Output);
uses wincrt;
const MAX = 10;
type SumArray = array[1..MAX] of integer;
var I, Sum : integer;
Input : SumArray;
begin
{Get input from user & store in array}
writeln('Please enter ', MAX, ' numbers.');
for I := 1 to MAX do
begin
read(Input[I]);
end;
... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls;
type
TImageFormat = (ifJpeg,ifTiff);
TForm1 = class(TForm)
ScrollBox1: TScrollBox;
Panel1: TPanel;
Label1: TLabel;
edFile: TEdit;
btnBrowse: TButton;
btnOpen: TButt... |
//----------------------------------------
// Copyright © ying32. All Rights Reserved.
//
// Licensed under Apache License 2.0
//
//----------------------------------------
//----------------------------------------
// 用来兼容Delphi的TGauge
//----------------------------------------
unit uGauge;
{$mode objfpc}{$H+}
inter... |
unit DIOTA.Dto.Request.GetNodeInfoRequest;
interface
uses
DIOTA.IotaAPIClasses;
type
TGetNodeInfoRequest = class(TIotaAPIRequest)
protected
function GetCommand: String; override;
end;
implementation
{ TGetNodeInfoRequest }
function TGetNodeInfoRequest.GetCommand: String;
begin
Result := 'getNodeInfo... |
unit TSTOBsvIntfReg;
interface
implementation
Uses HsInterfaceEx, TSTOBsvIntf, TSTOBsv.IO, TSTOBsv.Bin, TSTOBsv.Xml;
Initialization
RegisterInterface('IBsvImage', IBsvImage);
RegisterInterface('IBsvImages', IBsvImages);
RegisterInterface('IBsvAnimation', IBsvAnimation);
RegisterInterface('IBsvAnimations', I... |
{ *******************************************************************************
* *
* TksProgressIndicator *
* ... |
unit mega_editor_form;
interface
uses
Winapi.Windows,Messages,System.SysUtils, System.Types, System.UITypes,
System.Rtti, System.Classes, lua,lualib,System.UIConsts,meta_behaviour_tree,
System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs,
mega_lua_bindings_win, FMX.Layouts, FMX.Memo, FMX.Objects,... |
unit WinsockError;
interface
uses Windows;
procedure ShowWinsockError(Handle: HWND; ErrorCode: Integer);
function GetWinsockErrorString(ErrorCode: Integer): string;
implementation
uses Winsock, SysUtils;
procedure ShowWinsockError(Handle: HWND; ErrorCode: Integer);
const
cErrorFormat = 'Winsock error (%d):'+#1... |
{***************************************************************}
{ Copyright (c) 2013 год . }
{ Тетенев Леонид Петрович, ltetenev@yandex.ru }
{ }
{*******************************************************... |
unit Input;
interface
uses
SmartCL.System, Settings;
type
TCallback = procedure(mCode: Integer);
procedure AddKeyDown(Callback: TCallback);
procedure KeyDownEvent(mCode: Integer);
procedure AddKeyUp(Callback: TCallback);
procedure KeyUpEvent(mCode: Integer);
var
KeyDownCallbacks, KeyUpCallbac... |
//****************************************************************************
//
// Program Name : AT Library
// Platform(s) : Android, iOS, Linux, MacOS, Windows
// Framework : Console, FMX, VCL
//
// Filename : AT.Inet.URLUtils.pas
// Date Created : 28-JAN-2014
// Author : Matthew Vesperman... |
unit Model.Produto;
interface
uses
Model, SysUtils;
type
TProduto = class(TModel)
private
FDescricao: string;
FPrecoVenda: Double;
FCusto: Double;
procedure SetCusto(const Value: Double);
procedure SetDescricao(const Value: string);
procedure SetPrecoVenda(const Value: Double);
public... |
unit UDF.ConnectFB;
interface
type
TUDFConnect = class
strict private
FRole: string;
FDB: string;
FPassword: string;
FLogin: string;
fServer: string;
fPathDLL: string;
fConnection: TFDConnection;
fDGUIxWaitCursor: TFDGUIxWaitCursor;
fDPhysFBDriverLink: TFDPhysFBDriverLink;
... |
{$optimize 7}
{---------------------------------------------------------------}
{ }
{ ORCA Native Code Generation }
{ }
{ This module of the code generator is ca... |
unit Install;
interface
uses
System.SysUtils, System.Classes, System.StrUtils, Vcl.Dialogs, Vcl.Controls, IniFiles,
IOUtils, ShellApi, Windows, Zip, Vcl.Forms, Vcl.StdCtrls,
MyUtils, MyDialogs;
type
TVersion = (vrFb21 = 0, vrFb25 = 1, vrFb30 = 2, vrFb40 = 3);
TInstallConfig = class
strict private
FV... |
unit Grafico;
interface
uses GR32, Graphics, Classes, GR32_Image, DB, GR32_Layers,
Messages, BusCommunication, Tipos, Controls, DatosGrafico, Contnrs;
type
TMessageGrafico = class(TBusMessage);
TMessageGraficoClass = class of TMessageGrafico;
MessageGraficoAfterSetData = class(TMessageGrafico);
MessageGra... |
unit DrawerController;
interface
uses
Classes, FMX.Controls, FMX.Types;
type
TDrawerController = class(TObject)
private
FButtonWidth: Single;
FDrawer: TControl;
FDrawerVisible: Boolean;
FTimer: TTimer;
FWindow: TControl;
procedure TimerEvent(Sender: TObject);
procedure SetDrawerVisi... |
unit OAuth2.Entity.Token;
interface
uses
System.SysUtils,
OAuth2.Contract.Entity.Scope,
OAuth2.Contract.Entity.Client,
OAuth2.Contract.Entity.Token;
type
TOAuth2TokenEntity = class(TInterfacedObject, IOAuth2TokenEntity)
private
{ private declarations }
FIdentifier: string;
FExpiryDateTime: T... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
{ *************************************************************************** }
{ }
{ DelphiUIAutomation }
{ }
{ Copyright 2015 JHC Systems Limited }
{ }
{ *************************************************************************** }
{ }
{ Licensed under the Apache License, Version 2.0 (the "License"); }
{ you may not ... |
unit Helper.Lib.Utils;
interface
uses
System.SysUtils,
System.Classes,
System.IOUtils,
System.Types,
System.StrUtils,
System.Zip,
System.ZLib,
Data.DB,
Data.Bind.DBScope,
Data.Bind.Components,
FMX.Edit,
FMX.DateTimeCtrls,
FMX.Layouts,
FMX.TabControl,
FMX.Platform,
FMX.Types,
FMX.F... |
unit ServicoBackup;
interface
uses
ArquivoConfiguracao,
Usuario,
IBServices,
EventoExecutandoOperacao;
type
TServicoBackup = class
private
FIBBackup :TIBBackupService;
FArquivoConfiguracao :TArquivoConfiguracao;
FUsuario :TUsuario;
private
function GetNomeArquiv... |
unit PLabelEdit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
stdctrls, dbtables, extctrls, RxCtrls, dbctrls, db, SelectDlg, PLabelPanel,
LookupControls;
type
TPLabelEdit = class(TCustomControl)
private
FEdit: TEdit;
FLabel: TRxLabel;
FLabelStyle: TLab... |
unit InventoryMovementItemTest;
interface
uses dbTest, ObjectTest;
type
TInventoryMovementItemTest = class(TdbTest)
protected
//procedure SetUp; override;
published
// загрузка процедура из определенной директории
procedure ProcedureLoad; override;
procedure Test; override;
end;
TInventor... |
{******************************************************************************}
{ Boris Damjanovic }
{ Ind. master-230/08 }
{ Faculty of Organizational Sciences (FON), Belgrade ... |
unit uTCPCryptoCompression;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, BlowFish, Base64, SHA1, PasZLib, ZBase;
type
TCompressionLevel = (clNoCompression, clBestSpeed, clDefaultCompression, clBestCompression);
function Encrypt(const AKey, AText: String): String;
function Decrypt(const AKey, AText... |
unit dmAccionesValor;
interface
uses
SysUtils, Classes, IBCustomDataSet, IBUpdateSQL, DB, IBQuery, Valores,
BusCommunication, IBSQL;
type
MessageMercadoGrupoCambiado = class(TBusMessage);
TDataAccionesValor = class(TDataModule)
Grupos: TIBQuery;
GruposOID_GRUPO: TIntegerField;
GruposNOMBRE: TIBS... |
PROGRAM EX7;
USES CRT;
VAR nota1, nota2, nota3, m: REAL;
letra: CHAR;
FUNCTION calcula_media(n1, n2, n3:REAL; l: CHAR):REAL;
VAR media: REAL;
BEGIN
IF l = 'A'
THEN media := (n1+n2+n3)/3
ELSE media := (n1*5+n2*3+n3*2)/(5+3+2);
calcula_media := media;
END;
BEGIN
CLRSCR;
WRITE('Digite a 1¦ nota: ')... |
unit UPO;
{
Tato unita implementuje struktury a nekolik funkci okolo upozorneni odesilanych
do panelu. Upozorneni je standardne hlaska v leve dolni casti panelu
zobrazujici bariery pri staveni jizdnich cest.
}
interface
uses Graphics, Generics.Collections, Classes, IBUtils;
const
_UPO_LINES = 3; ... |
unit ExportWikiDIAL;
uses ExportCore,
ExportWikiCore;
var ExportWikiDIAL_outputLines: TStringList;
function initialize(): Integer;
begin
ExportWikiDIAL_outputLines := TStringList.create();
end;
function canProcess(el: IInterface): Boolean;
begin
result := signature(el) = 'QUST';
end;
function proces... |
unit uMainForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.TabControl,
FMX.ListView.Types, FMX.ListView, FMX.StdCtrls, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Error, F... |
unit UAMC_Globals;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2012 by Bradford Technologies, Inc. }
interface
uses
Classes;
const
//AMC_UIDs UniqueID for AMCs
AMC_GENERAL = 0;
AMC... |
unit uPropertyEditorNew;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, lcltype, VirtualTrees, uVtBaseEditor;
type
(*
Шаблонный метод
Наследники должны переопределить некоторые шаги алгоритма
(GetValue, SetValue), не изменяя его структуру в целом.
Участники:
1. Abstract class (абстрактн... |
unit JLDataBase;
(* DataBase関連 *)
(* aiwota Programer *)
interface
uses
Windows, JLSqlite, SysUtils;
type
TJLSQLiteNotifyEvent = procedure (Sender: TObject) of Object;
TJLSQLite = class(TObject)
private
FSqlite: Pointer;
FFileName: string;
FOpened: Boolean; (* alrea... |
// ******************************************************************
//
// Program Name : $ProgramName$
// Platform(s) : $Platforms$
// Framework : VCL
//
// Filename : AT.$ShortName$.Vcl.Forms.Generic.MDIChild.pas/.dfm
// File Version : 1.00
// Date Created : $CreateDate$
// Author : Matth... |
unit Fatura;
interface
uses
Contnrs,
Duplicata;
type
TFatura = class
private
FNumeroFatura :Integer;
FValorBruto :Real;
FValorDesconto :Real;
FValorLiquido :Real;
FDuplicatas :TObjectList;
function GetNumeroFaturaStr: String;
private
function GetDuplicatas :TObject... |
unit FactoryMethod.Consumers.Client;
interface
uses Vcl.StdCtrls, FactoryMethod.Creators.Creator,
FactoryMethod.Interfaces.ICreator, FactoryMethod.Interfaces.IClient;
type
TClient = class(TInterfacedObject, IClient)
private
FResult: TMemo;
public
constructor Create(AMemo: TMemo);
procedure Client... |
(***************************************************************)
(* This is an import unit for DECKLINKINTERFACE.H *)
(* Translated by Vassil Nazarov *)
(* email: vassil@engineer.bg *)
(* ... |
unit uMain;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.Menus, FMX.Objects,
FMX.Edit, System.Actions, FMX.ActnList, FMX.Layouts, FMX.Memo;
type
TToolTipPanel = class(TPanel)
private
FOn... |
unit UAMC_SendPak_TitleSource;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
{ This is specific unit that knowns how to send the 'Appraisal Package' }
{ to TitleSo... |
unit Services.Hospedes;
interface
uses
System.SysUtils,
System.Classes,
FireDAC.Stan.Intf,
FireDAC.Stan.Option,
FireDAC.Stan.Param,
FireDAC.Stan.Error,
FireDAC.DatS,
FireDAC.Phys.Intf,
FireDAC.DApt.Intf,
Data.DB,
FireDAC.Comp.DataSet,
FireDAC.Comp.Client,
DataSet.Serialize,
RESTRequest4D;
... |
{
Program ZHIVYE - console database
viewer and editor demo
ZH_BASE.PAS
Manipulation with database file
}
{$H+}
UNIT Zh_Base;
INTERFACE
USES
All_Dates;
CONST
{ length of string in record }
L_Artist = 40;
L_City = 20;
L_Country = 20;
L_Comment = 60;
{ name of database file }
Zh_DB_FileName='z... |
unit OAuth2.Provider.Crypto;
interface
type
TOAuth2CryptoProvider = class
public
{ public declarations }
class function EncryptWithPassword(AUnencryptedData: string; AEncryptionKey: string): string;
class function DecryptWithPassword(ADecryptedData: string; AEncryptionKey: string): string;
end;
imp... |
Program Pzim ;
var a,b,c:integer;
delta,x1,x2:real;
Begin
// Entrada de Valores
write('Digite o valor de a :');
read(a);
write('Digite o valor de b :');
read(b);
write('Digite o valor de c :');
read(c);
// Calculando Delta e verificando se podemos continuar
delta:=sqr(b) - 4*a*c;
if(a=0... |
unit uPanelValor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uPanelNotificaciones, DB, ExtCtrls, StdCtrls, DBCtrls, TB2Item,
TB2Dock, TB2Toolbar, SpTBXItem;
type
TfrPanelValor = class(TfrPanelNotificaciones)
ToolbarValor: TSpTBXToolbar;
TBContro... |
unit uF14_lihatResep;
interface
uses uP1_tipeBentukan, uP3_Umum;
procedure mainLihatResep(ID : integer; dataResep : tabelResep);
{ Menjalankan fungsi 14 }
procedure urutkanTabelResep(var dataResep : tabelResep);
{ I.S : dataResep tidak terurut berdasarkan nama
* F.S : dataResep telah terurut berdasarkan n... |
unit RepositorioCFOPCorrespondente;
interface
uses DB,
Auditoria,
Repositorio;
type
TRepositorioCFOPCorrespondente = class(TRepositorio)
protected ... |
unit RDAObj;
interface
uses
ComObj;
type
TRDAObject = class(TComObject, IUnknown)
public
constructor Create( UserName : string; Level : integer );
destructor Destroy; override;
private
fUserName : string;
fLevel : integer;
public
property UserName : string read fUs... |
unit FPLoader;
interface
function Precondiciones: boolean;
procedure InitializeEnvironment;
implementation
uses dmConfiguracion, UtilForms, Dialogs, Registry, fmBloquear, SysUtils,
Windows, Forms, Controls, dmBD, IBDatabase, IBSQL, UtilDB, Classes;
resourcestring
E_ID = 'El programa no puede iniciarse porq... |
{*!
* Fano Web Framework (https://fanoframework.github.io)
*
* @link https://github.com/fanoframework/fano
* @copyright Copyright (c) 2018 Zamrony P. Juhara
* @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT)
*}
unit ServiceContainerImpl;
interface
{$MODE OBJFPC}
{$H+}
uses
D... |
unit math3d;
interface
uses q3types;
const
M_PI = 3.1415926535897932384626433832795; // matches value in gcc v2 math.h
M_TWO_PI = 6.283185307179586476925286766559;
M_180_PI = 57.295779513082320876798154814105;
M_PI_180 = 0.017453292519943295769236907684886;
function VectorDistance(const v1, v... |
{******************************************************************************}
{ }
{ Delphi SwagDoc Library }
{ Copyright (c) 2018 Marcelo Jaloto ... |
// Fit4Delphi Copyright (C) 2008. Sabre Inc.
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software Foundation;
// either version 2 of the License, or (at your option) any later version.
//
// This program ... |
unit libojtc;
interface
uses
sysutils, classes, windows, libojcd,
registry;
type
TFile=class
private
FNextFile,FPreviousFile:TFile;
FFileName:widestring;
public
property FileName:widestring read FFileName write FFileName;
destructor Destroy; over... |
unit Ntapi.ntregapi;
{
This module provides functions for working with registry via Native API.
}
interface
{$WARN SYMBOL_PLATFORM OFF}
{$MINENUMSIZE 4}
uses
Ntapi.WinNt, Ntapi.ntdef, Ntapi.ntioapi, Ntapi.ntseapi, Ntapi.Versions,
DelphiApi.Reflection;
const
// Registry paths
REG_PATH_MACHINE = '\Registry... |
{$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 UAMC_BuildX241;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
D... |
unit Command.Interfaces.ICommand;
interface
// The Command interface declares a method for executing a command.
// A interface ICommand declara um método para executar um comando.
type
ICommand = interface
['{6A5907A4-A391-4C27-8AA2-ADBB6B79F4C0}']
function Execute: ICommand;
end;
implementation
end.
|
unit AlternativeGroupTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TAlternativeGroupTest = class (TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TAlternativeGroup = class(TObjectTest)
function InsertDefault: integer; overr... |
unit ManagedItem;
interface
uses Classes;
type TManagedItem = class
public
// managed items provide a virtual constructor and destructor so they
// can be created and destroyed by the TManagedList that owns them.
// Any TManagedItem descendant can be stored in a TManagedList
constructo... |
(* NIM/Nama : 16518332/Dhafin Rayhan Ahmad *)
(* Tanggal : 22 Maret 2019 *)
Program TigaInteger;
(* Input: 3 integer: A, B, C *)
(* Output: Sifat integer dari A, B, C (positif/negatif/nol dan ganjil/genap)
Nilai maksimum, minimum, dan nilai tengah *)
(* KAMUS *)
var
A, B, C : integer;
nilai... |
unit UBookmarkMan;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons,iniFiles, ComCtrls, ExtCtrls;
type
TdlgBookmarkMan = class(TForm)
lvBookmarks: TListView;
Panel1: TPanel;
BitBtn1: TBitBtn;
btnDelete: TBitBtn;
btnRename: TBitBtn;
... |
unit HistoryForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Grids;
type
TfrmHistory = class(TForm)
stgHistory: TStringGrid;
cmdDisplayLog: TButton;
procedure FormCreate(Sender: TObject);
procedure stgHistorySelectCell(Sender: TObject; Col... |
{
* Copyright (c) 2012 Andrey Kemka
*
* This software is provided 'as-is', without any express or
* implied warranty. In no event will the authors be held
* liable for any damages arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including c... |
unit BaseStream;
interface
uses
Sysutils;
const
{ Maximum TList size }
MaxListSize = Maxint div 16;
{ TStream seek origins }
soFromBeginning = 0;
soFromCurrent = 1;
soFromEnd = 2;
type
TNotifyEvent = procedure(Sender: TObject) of object;
{ TStream seek origins }... |
unit MarginCategory_All;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorEnum, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, cxPCdxBarPopupMenu, cxStyles,
cxCustomData, cxFilter, cxDa... |
program DigitalRivers;
{
Solution to the 1999 British Informatics Olympiad exam
question 1: Digital Rivers
Solution copyright (c) 1999 The British Informatics Olympiad (BIO).
This program may be freely copied by persons or organisations
involved in the British Informatics Olympiad or the International
Olympiad in Inf... |
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ ... |
unit UnitSlide;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Contnrs, LXImage, ExtCtrls, GDIPAPI, GDIPOBJ, GDIPUTIL,
StdCtrls, UnitMain;
const
WM_START_SLIDE = WM_USER + 250;
type
TFormSlide = class(TForm)
tmrSlide: TTimer;
lblChecked: TLabel;
... |
unit HYLAbout;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, ExtCtrls, StdCtrls, ExtUtils;
type
TdlgAbout = class(TForm)
dlgAbout: TPanel;
Animate1: TAnimate;
Label1: TLabel;
lbProductName: TLabel;
Timer1: TTimer;
lbVersion: TLabel;
... |
unit QEngine.Camera;
interface
uses
Strope.Math;
type
///<summary>Интерфейс предоставляющий возможность установки параметров камеры
/// а также возможность перевода глобальных размеров и позиций в экранные
/// и наоборот</summary>
IQuadCamera = interface (IUnknown)
function GetPosition(): TVectorF;
... |
unit RepositorioDispensa;
interface
uses DB, Auditoria, Repositorio;
type
TRepositorioDispensa = class(TRepositorio)
protected
function Get (Dataset :TDataSet) :TObject; overload; override;
function GetNomeDaTabela :String; override;
function GetIdentificad... |
unit CSTTributadoIntegralmente;
interface
type
TCSTTributadoIntegralmente = class
private
FBase: Real;
FAliquota: Real;
private
function GetValor: Real;
public
constructor Create(Aliquota :Real; Base :Real);
public
property Aliquota :Real read FAliquota;
property Base :Real re... |
unit FComboColor;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, FnpComboColor;
type
TForm1 = class(TForm)
RadioGroup1: TRadioGroup;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
... |
unit bluetooth;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, AndroidWidget;
type
{Draft Component code by "Lazarus Android Module Wizard" [5/15/2014 12:37:34]}
{https://github.com/jmpessoa/lazandroidmodulewizard}
TOnDeviceFound = procedure(Sender: TObject; deviceName: string; deviceAddress: string)... |
{*!
* Fano Web Framework (https://fanoframework.github.io)
*
* @link https://github.com/fanoframework/fano
* @copyright Copyright (c) 2018 Zamrony P. Juhara
* @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT)
*}
unit InetSocketSvrImpl;
interface
{$MODE OBJFPC}
{$H+}
uses
Soc... |
unit UMain;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
System.UITypes,
DateUtils,
Data.DB,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Vcl.ExtCtrls,
Vcl.ComCtrls,
Vcl.Samples.Spin,
Vcl.Grids,
Vcl.DBGrids,
... |
unit rStrUtils;
interface
uses
SysUtils;
function AddDelimStrEx(const BaseStr, AddStr, DelimStr: string): string;
function AddDelimStr(const BaseStr, AddStr: string): string;
function EncodeEscapeChars(const sInStr: string): string;
function DecodeEscapeChars(const sInStr: string): string;
function ExtractValueQ... |
unit uEmpresa;
interface
Type
TEmpresa = class
private
FCNPJ: String;
FEmail: String;
FBairro: String;
FIM: String;
FUF: String;
FCEP: String;
FNumero: String;
FIE: String;
FMunicipio: String;
FRazaoSocial: String;
FCodigoUF: Integer;
FComplemento:... |
// ****************************************************************************
//
// Program Name : n/a
// Program Version: 1.00
// Filenames : AT.EncDec.Base64.pas
// File Version : 1.00
// Date Created : 21-APR-2014
// Author : Matthew S. Vesperman
//
// Description:
//
// Contains routines for Ba... |
unit system.animation.effects;
interface
uses
SmartCL.System, SmartCL.Graphics, SmartCL.Components, SmartCL.Forms,
SmartCL.Fonts, SmartCL.Borders, SmartCL.Application,
System.Types,
System.Colors,
system.animation.tween;
type
TEffectOptions = set of (eoCancelOnExecute);
EEffectError =... |
// Fit4Delphi Copyright (C) 2008. Sabre Inc.
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software Foundation;
// either version 2 of the License, or (at your option) any later version.
//
// This program is... |
unit TSTOSbtpImpl;
interface
Uses Windows, HsInterfaceEx, TSTOSbtpIntf;
Type
TSbtpSubVariable = Class(TInterfacedObjectEx, ISbtpSubVariable)
Private
FVariableName : String;
FVariableData : String;
Protected
Procedure Created(); OverRide;
Function GetVariableName() : String; Virtual;
Proc... |
{$optimize 7}
{---------------------------------------------------------------}
{ }
{ DAG Creation }
{ }
{ Places intermediate codes into DAGs and trees. }
{ ... |
// The code below will read all the game information for you.
// On each game turn, information will be available on the standard input, you will be sent:
// -> the total number of visible enemies
// -> for each enemy, its name and distance from you
// The system will wait for you to write an enemy name on the standard... |
unit test_mapper;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpcunit, testutils, testregistry, base_connected_test,
person_bom, jobs_bom;
type
TTestMapper= class(TBaseConnectedTest)
private
published
procedure TestUserCrud;
procedure TestJobCrud;
procedure TestCreateUserJobR... |
Program intuition_customscreen;
{$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}
{
===========================================================================
Pr... |
unit uCadastroCFOP;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uCadastroPadrao, Data.DB, Datasnap.DBClient, Vcl.StdCtrls, Vcl.Grids, Vcl.DBGrids, DBGridCBN,
Vcl.ComCtrls, Vcl.Buttons, Vcl.ExtCtrls, Vcl.Mas... |
unit uTPokemon;
interface
uses ExtCtrls, Forms, SysUtils;
type TPokemon = class(TImage)
protected
FType1: String[10]; //wenn Pokemon nur einen Typ hat sind Typ 1 und 2 gleich
FType2: String[10];
FName: String[30];
FLevel:Integer;
FNumber:Integer;
FXP:Integer;
FMaxHP: Integer;
Fcurrent... |
unit UMouseInputs;
interface
uses
W3System, W3Components, W3Touch,
USpawner, UGameVariables, UGameItems, UPlayerData, UShop, UShopData, UScalingInfo;
procedure DownHandler(b : TMouseButton; x, y : integer);
procedure UpHandler(b : TMouseButton; x, y : integer);
procedure MoveHandler(x, y : integer);
procedure M... |
unit ProgDlg2;
(***** Code Written By Huang YanLai *****)
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ComCtrls;
type
TdlgProgress = class(TForm)
lbInfo: TLabel;
ProgressBar: TProgressBar;
BitBtn1: TBitBtn;
procedure BitBtn1Cli... |
{-----------------------------------------------------------------------------
Функции для форм и фреймов
(C) Sergey Bodrov (serbod@gmail.com)
MIT license
-----------------------------------------------------------------------------}
unit RFFormUtils;
interface
uses
{$IFDEF FPC}
LazUTF8,
{$ENDIF}
... |
unit AqDrop.Core.REST.Intf;
interface
uses
System.SysUtils,
AqDrop.Core.HTTP.Types,
AqDrop.Core.HTTP.Intf;
type
IAqRESTRequest = interface
['{E6705500-B38E-4E1F-AF7E-64E20A4C8442}']
function SetURL(const pURL: string): IAqRESTRequest;
function SetBasicAuth(const pUsername, pPasswor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.