text stringlengths 14 6.51M |
|---|
{-----------------------------------------------------------------------------]
Author: Jarl K. Holta
License: GNU Lesser GPL (http://www.gnu.org/licenses/lgpl.html)
An x86 assembler
Note that FPC compatiblity is incomplete.
[-----------------------------------------------------------------------------}
{$AS... |
unit idt;
interface
type
TIDTEntry = packed record
LowBase: Word;
Selector: Word;
Always0: Byte;
Flags: Byte;
HiBase: Word;
end;
TIDTPtr = packed record
Limit: Word;
Base: LongWord;
end;
var
IDTList: array [0..255] of TIDTEntry;
IDTPtr: TIDTPtr;
proce... |
unit U0000_v3_1;
interface
Type
T0000_v3_1=class
private
FAno_Mes_Inic_Compe: string;
FCnpj: integer;
FReg: integer;
FTipo_inti: string;
FAno_Mes_Fim_Comp: string;
FNome: string;
FCod_Munc: integer;
FNumLinha: integer;
procedure SetAno_Mes_Fim_Comp(const Value: string);
proced... |
unit UnitTimer;
interface
uses
System.SysUtils;
const
DefaultTimeOnTimer = 900;
DefaultAddingOnTimer = 10;
procedure ShowTimeOnTimer(IsWhite: Boolean);
procedure TimerEvery1Second();
procedure PauseAndStartTimer();
procedure StartTimerAfterPauseIfWasPaused();
implementation
uses UnitMainForm, UnitAfte... |
{* test comparison constants *}
program test07;
const
a = 1 < 10;
b = 3 <= 3.0;
c = 2.2 > 7;
d = 2.3 >= 1.2;
begin
debug(a, b, c, d);
end. |
unit uDMIntegrador;
interface
uses
System.SysUtils, System.Classes, 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.FB, Data.DB,
FireDAC.Comp.Client, Data.DbxDatasnap, IPPeerClie... |
unit VamSliderSwitch;
interface
uses
Types, Controls, Classes, Graphics, AggColor,
RedFox, RedFoxGraphicControl, RedFoxColor,
VamGraphicControl, VamWinControl;
type
TVamSliderType = (stVert, stHorz);
TVamSliderSwitch = class(TVamWinControl)
private
fEnabled: boolean;
fOnChanged: TNotifyEvent;
... |
{
Напишите программу, которая по двум данным натуральным числам a и b, не превосходящим 30000, подсчитывает количество чётных натуральных чисел на отрезке [a, b] (включая концы отрезка).
Программа получает на вход два натуральных числа a и b, при этом гарантируется, что 1 ≤ a ≤ b ≤ 30000. Проверять входные данные на ... |
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.Controls.Presentation, FMX.StdCtrls, FMX.ScrollBox, FMX.Memo;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
... |
unit cxBoldExtLookupComboBox;
{$I cxVer.inc}
interface
uses
{$IFDEF DELPHI6}
Variants,
{$ENDIF}
Windows, Classes, Controls,
Graphics, Messages, SysUtils, cxClasses,
cxContainer, cxControls, cxCustomData,
cxBoldLookupEdit,
cxEditConsts, cxGrid, cxGridCustomTableView, cxEdit,
cxGridCustomView, cxGridStrs... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.6-3, FILE=CONF087, CLASS=... |
unit WCRestApi;
interface
uses
System.SysUtils, System.JSON, REST.Client, REST.Types, Data.Bind.Components, Data.Bind.ObjectScope,
REST.Authenticator.OAuth, System.Generics.Collections, IdHTTP, System.Classes, REST.HttpClient, REST.Utils,
WSCommon;
type
TWCStringArray = array of string;
TWCIntArray = arra... |
{
misc functions
}
unit tools;
interface
uses
MSXML,
Forms;
const
appVer = '1.00 beta 6';
ConfigurationFileName = 'Melchior.xml';
DefaultInterval = 5000;
DefaultTimeout = 4000;
DefaultRefreshInterval = 1000;
MonitoringInterval : longword = DefaultInterval;
MonitoringTimeout : longword = Defau... |
unit VamVst2.VstEventBuffer;
interface
uses
VamVst2.DAEffectX;
type
TVstEventBuffer = class
private
fVstEventArray : array of VstEvent;
fBuffer : PVstEvents;
fBufferSize : integer;
fCapacity: integer;
procedure SetCapacity(const Value: integer);
function GetCount: integer;
function ... |
unit NGINX.FCGIRequest;
/// <summary>
/// A FastCGI request.
/// </summary>
/// <remarks>
/// A request usually corresponds to a HTTP request that has been received by the webserver (see the [FastCGI specification](http://www.fastcgi.com/devkit/doc/fcgi-spec.html) for details).
/// </remarks>
interface
uses
System.... |
unit uDBDelete;
interface
uses
System.SysUtils, System.Classes;
type
TdmDBDelete = class(TDataModule)
private
{ Private declarations }
public
{ Public declarations }
Function DeleteTB_ADMIN_UserID(aUserID:string):Boolean;
Function DeleteTB_BUILDINGAREACODE_Value(aBuildingCode,aBuildingAreaCod... |
unit frmClosingDate;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,
// Auto Generate
frmUni, Menus, cxLookAndFeelPainters, dxSkinsCore, dxSkinsDefaultPainters, DB,
MemDS, DBAccess, Uni, cxControls, cxContainer, cxEdit, cxTextEdit, cxMaskEdit,
... |
unit SpTBXFormPopupMenu;
{==============================================================================
Version 2.5.3
The contents of this file are subject to the SpTBXLib License; you may
not use or distribute this file except in compliance with the
SpTBXLib License.
A copy of the SpTBXLib License may be fo... |
{******************************************************************
* 项目名称:
* 单元名称:生存的诀窍(1级)
* 单元作者:
* 摘 要:
* 备 注:
*******************************************************************}
program Mir2;
{$I common.pas}
//本任务的任务编号,每个任务对应不同的任务编号,这个不可以重复
const CurrentTaskID = 101;
//TASK_TYPE_MAIN 任务类型为主线
... |
unit AppCep.View.Main;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
JvExStdCtrls,
JvEdit;
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
EditCEP: TJ... |
{
Project: FindDupFar http://code.google.com/p/findupfar/
Author: Alexey Suhinin http://x-alexey.narod.ru
License: GPL v.2
}
unit FileSystemObjects;
{$I PRJDefines.inc}
interface
uses
Classes,
{$IFDEF MD5}
MD5,
{$ENDIF}
{$IFDEF CRC32}
CRC32,
{$ENDIF}
Windows,
SysUt... |
unit TesteHelpers;
interface
uses
TestFramework, Utils.Crypt, System.SysUtils, Helpers.HelperCurrency, Helpers.HelperString;
type
// Test methods for class TCrypt
TestHelpers = class(TTestCase)
strict private
public
procedure SetUp; override;
procedure TearDown; override;
published
procedu... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.6-6, FILE=DEV102, CLA... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.9.1-9, FILE=ERR81T, CLA... |
unit XokumDataModuleUnit;
interface
uses
SysUtils, Classes, DB, DBClient;
type
TXokumDataModule = class(TDataModule)
XokumClientDataSet: TClientDataSet;
XokumClientDataSetachternaam: TStringField;
XokumClientDataSetvoorletters: TStringField;
XokumClientDataSetstraat: TStringField;
... |
object AboutBox: TAboutBox
Left = 226
Top = 173
BorderStyle = bsDialog
ClientHeight = 153
ClientWidth = 302
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
Position = poScreenCenter
OnCreate = Form... |
unit FichaTecnica;
{*************************************************************************}
{* *}
{* Author: CSD Informatica Ltda. *}
{* Copyright: © 2003 by CSD Informatica Ltda. All rights reserv... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.1.2-6, FILE=DEV003, CLA... |
unit ee3AddOn.ProcessController.Basic;
{
The Process Controller
=== Usage Notes ===
- There should only be one process controller used in a project.
}
interface
uses
Classes,
SysUtils,
DAEffect,
DAEffectX,
DAudioEffectX,
ee3AddOn.VstMidi,
ee3.ProcessController;
type
TProcessVstMidiEventProc ... |
{-----------------------------------------------------------------------------
Datatype support unit for dimensions and conversions between them.
Logic, unit prefix notation and conversion tables based on MATLAB code
originally (c) 2011-2013 Alexander Zinser
---------------------------------------------------------... |
unit Actions;
interface
uses
SendDataTemplate, ActiveQueueSettings,
ClientFullRequest, DispatcherEntry, System.Generics.Collections, ActiveQueueEntry,
System.JSON, Attachment;
// type
// TActionCategories = (email = 'email', Diamonds, Clubs, Spades);
type
TAction = class(TObject)
private
function GetC... |
// Copyright (C) 2000-2005 ABplus kazhida.
// All rights reserved.
// $Id: ABEzProtect.pas 770 2008-05-01 08:02:30Z kazhida $
// $Author: kazhida $
//
unit ABEzProtect;
interface
{:Note::
ライセンス・ファイルを利用した、
カジュアル・コピーを防止するためのプロテクト
::Note:}
uses
Classes;
type
TAbEzpLimiUnit = (ezpDay, ezpHour, ezpMinute);
... |
Unit TCP_Hostlist;
Interface
Procedure QueryHostList;
Implementation
USES DOS,Dialogs,DebugUnit,Classes,ustring;
Type
THostListRec=Record
IPAdress:TStringList;
Hostname:TStringList;
AliasName:TStringList;
... |
unit DlgMess;
interface
Uses Windows, Messages, SysUtils, Classes, Graphics, Controls,
Forms, StdCtrls, Consts, ExtCtrls;
type
TMsgDlgType = (mtWarning, mtError, mtInformation, mtConfirmation, mtCustom);
TMsgDlgBtn = (mbYes, mbNo, mbOK, mbCancel, mbAbort, mbRetry, mbIgnore,
mbAll, mbNoToAll, mbYesToAll, mb... |
unit UClases;
interface
uses System.SysUtils, Generics.Collections, REST.Client, System.JSON,
System.Classes, System.Threading, REST.Types;
const
CNS_BASE_WS = 'http://%s/datasnap/rest/TServerMethods1';
var
CNS_BASE_URI: String = '';
type
/// <summary>
/// Clase para hacer peticiones REST al servidor de ... |
unit uOutputMixer;
interface
{$INCLUDE Defines.inc}
uses
VamLib.MoreTypes, eeFunctions;
type
TOutputMixer = class
private
fVoiceMixMain: single;
fVoiceMixAuxB: single;
fVoiceMixAuxA: single;
fModOutA: single;
fModOutB: single;
fVoicePan: single;
procedure SetV... |
{
TCP Service
}
unit svctcp;
interface
uses
servers,
Messages;
type
TTCPService = class(TService)
Handle : THandle;
constructor Create;override;
destructor Destroy;override;
function GetServiceName:string;override;
procedure AsyncMonitor(m:TMonitor);override;
procedure HandleMessag... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.6.4-9, FILE=DEV161, C... |
(**
This module contains the old style RTTI information.
@Author David Hoyle
@Version 1.0
@Date 18 Dec 2016
**)
Unit DGHOLDRTTIFunctions;
Interface
Uses
TypInfo,
ComCtrls;
Procedure ProcessOldProperties(View : TListView; ptrData : Pointer);
Implementation
Uses
SysUtils,
Classes,
Graphics... |
unit VamLib.Threads;
interface
// DLL, Form and Thread (all in one) problem in delphi
// http://stackoverflow.com/q/5792573/395461
// CheckSynchronize().
// http://www.delphifaq.com/faq/delphi/vcl/f270.shtml
uses
Classes,
SysUtils;
// NOTE: WARNING: RunTask() methods require regular CheckSynchronize() calls t... |
unit unitTrayIcon;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus,shellAPI;
const WM_TRAYICON=WM_APP+0;
type
TformTrayIcon = class(TForm)
ppMenu: TPopupMenu;
mmShow: TMenuItem;
mmClose: TMenuItem;
procedure FormCreate(Sender: TObject);
... |
program TesteBlattMax (input, output);
type
tNatZahl = 1..maxint;
tRefBinBaum = ^tBinBaum;
tBinBaum = record
Wert:tNatZahl;
links:tRefBinBaum;
rechts:tRefBinBaum
end;
var
Wurzel : tRefBinBaum;
blaetterSindMax : Boolean;
function BlattMa... |
unit LucidityGui.Scope;
interface
uses
AggPathStorage,
VamLib.UniqueID,
VamLib.Animation,
//=================================================
// NOTE: Any Lucidity specific units must be
// drawn from the Ludcidity Base Classes project.
// I want to avoid circural type depencies where
Lucidity.Enums,
... |
unit Test.Model.Observer;
interface
uses Model.IObserve, Model.IModelBase, Model.ModelBase;
type
TModelObserver = class(TInterfacedObject, IModelObserve)
private
FNotificado: boolean;
function getNofiticado: boolean;
procedure setNotificado(const Value: boolean);
{ private declarations }
prote... |
(*****************************************************)
(* Programmautor : Michael Rippl *)
(* Programmname : Fibonacci.pas *)
(* Datum : 11-Jan-1990 *)
(* *)
(* Dieses Programm berechnet eine F... |
program GameMain;
uses SplashKit, sysUtils;
const
GRAVITY = 0.08;
MAX_SPEED = 5;
JUMP_RECOVERY_BOOST = 2;
POLE_SCROLL_SPEED = -2;
NUM_POLES = 4;
GAME_FONT_SIZE = 21;
type
PoleData = record
UpPole: Sprite;
DownPole: Sprite;
end;
Poles = array [0..NUM_POLES - 1] of PoleData;
function GetNewP... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs,
IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP,
Vcl.ExtCtrls, uGlobal, uCommon, uSaveK08Thread, Generics.Collections;
type
TItsK08DataService... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.3.9-22, FILE=ERR77T, ... |
program aula3;
{
Autor: Samuel T. C. Santos
Data: 03/06/2014
Descricao: Variaveis
}
var
nome : string;
sobrenome : string;
nota : real; //9.9, 4.9
idade: integer; //15
verdade : boolean; //True ou False
falso : boolean; //True ou False
sexo: char; //Feminino - 'F' ou 'M' - Masculino
begin
//Atribuicao ( :=... |
unit DrawUnit;
interface
uses DIB, DXDraws, TextUnit, Classes, StrUtils;
Type
TFont = Class
Constructor Create;
Destructor Destroy;
private
FPic: TDIB;
TPic: TDIB;
public
end;
TWFont = Class
Private
Count: Integer;
O: Array of Byte;
W: Array of Byte;
cW,cH,cIX,cIY: Int... |
unit uTravel;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, SConnect;
type
TInitSajetParamDll = procedure(SenderOwner: TForm; SenderParent: TPanel; ParentApplication: TApplication; UserID: string; parentSocketConnection: TSocketConnection; provider... |
Program aula22;
uses Crt;
{
Autor: Samuel T. C. Santos
Data: 08/06/2015
Description: Program to demonstrate the GotoXY function.
x,y
(0,0)
--------------------------------------------80
| 10
|
|
|
|
| (10,24)
25
}
begin
ClrScr;
GotoXY(10,10);
Write('10,10');
GotoXY(70,20)... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.10-3, FILE=CONF209, CLASS=C... |
{**************************************************************************************************}
{ 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 h... |
unit RDLuSilverSwitch;
interface
uses
System.SysUtils, System.Classes, System.UITypes, System.Types,
FMX.Types, FMX.Controls, FMX.Layouts, FMX.Objects, FMX.Graphics;
type
TRDLSilverSwitch = class(TLayout)
private
FOnChange : TNotifyEvent;
FColorOFF,
FColorOn : TAlphaColor;
FIsChecked ... |
unit UConsoleS;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ComCtrls, Menus, UXfit, UData;
type
TConsole = class (TForm)
Edit: TRichEdit;
Status: TStatusBar;
Menu: TPopupMenu;
ChangeFont: TMenuItem;
B... |
unit eeDFTUtils;
interface
uses
VamLib.MoreTypes;
function CalcMagnitude(Bin:TComplex):single; inline; overload;
function CalcMagnitude(const RealPart, ImagPart:single):single; inline; overload;
function CalcPhase(Bin:TComplex):single; inline; overload;
function CalcPhase(const RealPart, ImagPart:singl... |
unit UpdateFields;
interface
const
UPDATEFIELDS_VERSION = '3.3.5';
UPDATEFIELDS_BUILD = '12340';
UPDATEFIELDS_RELEASE = 'WoW [Release] Build 12340 (Jun 24 2010 23:54:57)';
OBJECT_FIELD_GUID = 0; //... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.1-2, FILE=CONF050, CLAS... |
unit utableform;
{$mode objfpc}{$H+}{$R+}
interface
uses
Classes, SysUtils, sqldb, db, FileUtil, Forms, Controls, Graphics, Dialogs,
DBGrids, ExtCtrls, Buttons, metadata, ufilter, querycreate,
ueditform;
type
{ TTableForm }
TTableForm = class(TForm)
AddFilterBitBtn: TBitBtn;
InsertDBBitBtn: TBit... |
unit Singleton;
interface
type
SingletonClass = class(TObject)
private
class var Singleton : SingletonClass;
constructor Create ;
public
Str : string;
class function GetInstance : SingletonClass;
class destructor Destroy;
end;
implem... |
unit Lucidity.Osc.OneShotSampler;
interface
{$INCLUDE Defines.inc}
uses
Lucidity.Interfaces,
Classes,
VamLib.MoreTypes, Lucidity.SampleMap, uLucidityCustomSampleOsc, soGateEnvelope,
uConstants, Lucidity.Enums, eeSampleFloat, uLucidityClock,
eeCounter,
soStepInFilter,
Lucidity.Osc.FadeOutSa... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.5-9, FILE=CONF073, CLAS... |
unit SampleOscUtils;
interface
uses
eeDsp.Interpolation, eePitch, Lucidity.SampleMap, eeSampleFloat, Math;
function CalcSampleStepSize(const TriggerNote, RootNote:Byte; const PitchOne, PitchTwo : single):single; overload;
function CalcSampleStepSize(const TriggerNote, RootNote:Byte; const PitchOne, Pitch... |
unit TestStringHelpers;
{
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;
type
// Test methods f... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.5.3-8, FILE=ERR34T, C... |
unit FormMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ComCtrls, ExtCtrls, ChatProtocol;
type
TFrmMain = class(TForm)
redtChat: TRichEdit;
lbOnlines: TListBox;
Label1: TLabel;
mmInput: TMemo;
bbtnSend: TBitBtn;
... |
unit Itens.Model;
interface
uses Itens.Model.Interf, System.Generics.Collections;
type
TItensModel = class(TInterfacedObject, IModelItens)
private
FLista: TList<IModelItens>;
FProduto: string;
FValor: Currency;
public
constructor Create;
destructor Destroy; override;
class function New... |
{ ******************************************************************
Cubic equation
****************************************************************** }
unit urtpol3;
interface
uses
utypes, urtpol2;
function RootPol3(Coef: TVector; out Z: TCompVector): Integer;
{ ----------------------------------... |
unit UFuncoes;
interface
uses FMX.Dialogs, System.UITypes, IWSFutSystem1;
type TUsuario = record
Codigo : Integer;
NomeAcesso : string;
TipoLogin : TTipoLogin;
procedure LimparDados;
end;
//funções diversas
function MsgConfirma(Msg: string): Boolean;
proced... |
{==============================================================================|
| Project : Delphree - Synapse | 003.003.000 |
|==============================================================================|
| Content: support procedures and functions ... |
unit VamLib.StrUtils;
interface
function AddQuotes(const Text : string):string;
function IsInteger(const Text : string):boolean;
function IsFloat(const Text : string):boolean;
implementation
uses
SysUtils;
function AddQuotes(const Text : string):string;
begin
result := '''' + Text + '''';
end;
function IsInt... |
PROGRAM TextFileBreakdown (input, output);
{Erick Nave
9:00 ICS 4-2-93
TextFileBreakdown receives its input from prog7.pas (this program). Then,
the source code is broken down into the # of characters, vowels,
consonants, digits, words, and lines. This information will then be
output to prog7.dat}
VAR... |
unit CardClasses;
{$MODE DELPHI}
{$H+}
interface
uses
Classes, SysUtils, Graphics, CardTypes;
type
TCardGraphics = array[TCardIndex] of TPortableNetworkGraphic;
var
CardGraphics: TCardGraphics;
function InitialiseCardGraphics(const ASize: TCardImageSize = cisDefault;
const ADeck: Char = 'a'): TPoint;
pro... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.5-5, FILE=CONF069, CLAS... |
unit SnappyArm;
// Roberto Della Pasqua, for questions contact me through www.dellapasqua.com
// 8.aug.2016
// google snappy: ultra fast compression and decompression algorithm
// source compiled with bccaarm 7.20 and bccios 7.20
// tested md5 100% ok
// todo:
// -testing with memory mapped files
// -scatter/gather io... |
unit ClienteDAO;
interface
{ Implementar funções do CRUD }
uses
ConexaoDAO, ClienteModel, System.Generics.Collections, System.Classes;
type
TClienteDAO = class(TConectDAO)
private
FListaCliente: TObjectList<TCliente>;
FOnAlteracaoRealizada: TNotifyEvent;
public
LSQL: String;
constructor Crea... |
unit uIocpHttpTunnelConfig;
interface
uses
Windows, Classes, SysUtils, Math, IoUtils, StrUtils, System.Generics.Collections, VaniConfig;
type
THostEntry = record
Host: string;
Port: Word;
end;
TTunnelEntry = record
SrcHost, DstHost: THostEntry;
end;
TIocpHttpTunnelConfig = class(TVaniConfig... |
{==============================================================================|
| Project : Delphree - Synapse | 002.002.001 |
|==============================================================================|
| Content: SNTP client ... |
UNIT Bunker; (* (c) ALFWARE Bernd Schubert *)
INTERFACE
{ $DEFINE nobunk} (* falls nobunk gesetzt, entf„llt der String *)
(* Die Funktionen
AuswahlBunker
AuswahlausBunker
Bunker2Screen
Bunker2List
wurden entfernt, weil sie ebenso wie die Unit Zeile niemals gebraucht wurden
(s... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.4-4, FILE=CONF078, CLASS=... |
{*******************************************************************************
Title: T2Ti ERP
Description: Classe de controle da NFe para o PAF-ECF.
The MIT License
Copyright: Copyright (C) 2010 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated d... |
unit Itens.Controller;
interface
uses Itens.Model.Interf, System.Generics.Collections, Itens.Model;
type
TItensController = class(TInterfacedObject, IControllerItens)
private
FModelItens: IModelItens;
public
constructor Create;
destructor Destroy; override;
class function New: IControllerIten... |
{**************************************************************************}
{ TGradientStyle }
{ for Delphi & C++Builder }
{ }
{ Copyright ... |
unit PlayerMapMarkers;
interface
uses
Types, SysUtils, Classes, TypInfo, Graphics, Contnrs, Controls,
Dialogs, ScUtils, GR32, FunLabyUtils, FunLabyCoreConsts,
FunLabyToolsConsts, Generics, GraphicsTools, MapTools, KeyStrokes;
const
idPlayerMapMarkersPlugin = 'PlayerMapMarkersPlugin';
type
TPl... |
{ ******************************************************* }
{ QSDK.Wechat.iOS 1.0 }
{ Interfaces for libWeChatSDK 1.7.1 }
{ Created by TU2(Ticr),and agree to share with QSDK }
{ ******************************************************* }
{
编辑器增强 by tut... |
unit TestWebModuleU;
interface
uses
System.SysUtils,
System.Classes,
Web.HTTPApp,
MVCFramework;
type
TTestWebModule = class(TWebModule)
procedure WebModuleCreate(Sender: TObject);
procedure WebModuleDestroy(Sender: TObject);
private
FMVCEngine: TMVCEngine;
public
{ Public declarations ... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.4-1, FILE=CONF156, CLAS... |
unit AggRenderingBufferDynaRow;
////////////////////////////////////////////////////////////////////////////////
// //
// Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') //
// Maintained by Christian-W. Budde (Chri... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.1.6-6, FILE=DEV016, CLA... |
unit frmSalesman;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ActnMan,
// Auto Generate
frmUniDB, Menus, cxLookAndFeelPainters, cxStyles, cxCustomData, cxGraphics,
cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, cxDBExtLookupComboBox,
... |
uses System;
type Speaker = interface
function Speak(self: Self): String
end;
type Dog = class
name: String;
end;
type Cat = class
name: String;
end;
function Speaker.Speak(self: Dog): String
begin
'wan!'
end;
function Speaker.Speak(self: Cat): String
begin
'yang!'
end;
WriteLn('Hello: ');
le... |
unit CharProperties;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, main;
type
TCharPropForm = class(TForm)
GroupBox1: TGroupBox;
eCode: TEdit;
bSelect: TButton;
bOK: TButton;
bCancel: TButton;
procedure ... |
unit uProduto;
interface
uses uController, System.SysUtils, System.Classes, 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.FB,
FireDAC.Phys.FBDef, FireDAC.VCLUI.Wait, FireDAC.Stan... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1995, Prospero Software Limited }
{ }
{ TEST 6.4.3.3-25, FILE=CONF217, CLA... |
unit TestControllersU;
interface
uses MVCFramework.Commons,
System.Classes,
Web.HTTPApp,
MVCFramework;
type
[MVCPath('/')]
TSimpleController = class(TMVCController)
private
FCalledActions: TStringList;
procedure AddCall(ActionName: string);
protected
procedure MVCControl... |
unit uUnterFragen;
interface
uses
Uni,
UTableBase,
System.Generics.Collections;
type
TUnterFrage = class(TEntityBase)
private // Felder private, durch property veröffentlichen
fId: Integer;
fHauptfrageID: Integer;
fAttributeID: Integer;
fFrage : String;
public
property id: intege... |
Program Triangle;
Var x1,y1,x2,y2,x3,y3:integer;
S,P,piv:real;
function lenPoint(x1,y1,x2,y2:integer):Real;
begin
result:=sqrt(sqr(x2-x1) + sqr(y2 - y1));
end;
begin
Write('Введите x1: ');
Readln(x1);
Write('Введите y1: ');
Readln(y1);
Write('Введите x2: ');
Readln(x2);
Readln('Введите y2: ');
R... |
program fpcp;
{$mode delphi}
type
// returns > 0 if akey > bkey, 0 if akey = bkey, < 0 if akey < bkey
TCompare = function(akey: Pointer; bkey: Pointer): Integer;
TArrayOfSizeInt = array of SizeInt;
// Compare function for testing
function Compare(akey: Pointer; bkey: Pointer): Integer;
begin
if PLongInt(ake... |
{ *************************************************************************** }
{ Autor: }
{ Data: 04/12/2016 }
{ Resenha:
{ *************************************************************************** }
{ Licença segue a mesma estabelecida no código original determinada pelo seu }
{ autor }
{ }
{ *********... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.