text stringlengths 14 6.51M |
|---|
{--------原作者---------------------------------------------------------------
单元: SynReplaceDlg.pas
作者: 姚乔锋
日期: 2004.11.26
说明: 替换对话框
版本: 1.00 00
-------------------------------------------------------------------------------}
(*
-- 使用者 --
* Uesr : liqj
* Date : 2006-09-29
* Modi : xx
* Var : ... |
unit ee3AddOn.PluginPaths;
interface
function GetPluginDllFileName : string;
function GetPluginDllDirectory : string;
function GetPluginDataDirectory : string;
implementation
uses
IOUtils,
SysUtils,
VamLib.Logging,
VamLib.Utils,
VamLib.Win.Links,
Vst2Ex.Utils;
function GetPluginDllFileName : string;
... |
Unit uLUT;
Interface
Uses windows, SysUtils;
Type
TLUTtype = (TLTLUT, TLTBW, TLTfusion);
TLUT = Record
Private
lut_arr: Array [byte] Of TRGBTriple;
FName: String;
Function FMaxColor: COLORREF;
Function FMinColor: COLORREF;
Procedure FireLUT(lIntensity, lTotal: integer; index... |
(*********************************************************)
(* Programmname : SCANNER.PAS *)
(* Programmautor : Michael Rippl *)
(* Compiler : Turbo Pascal V5.0 *)
(* Letzte nderung : 13-Jan-1990 *)
(* Inhalt ... |
{*
* Copyright 2013 Artur Mkrtchyan
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
unit uDelExpiredVioThread;
interface
uses
System.Classes, ActiveX, uGlobal;
type
TDelExpiredVioThread = class(TThread)
private
{ Private declarations }
protected
procedure Execute; override;
end;
implementation
{
Important: Methods and properties of objects in visual components can only be
us... |
porcedure Message;
begin
writeln("Hello World from PASCAL");
end;
|
var
x1, x2: integer;
function Euclid(a, b: integer): integer;
begin
while a<>b do
if a>b then a:=a-b else b:=b-a;
Euclid := a;
end;
begin
write('Enter 2 natural numbers: ');
read(x1, x2);
if (x1 <= 0) or (x2 <= 0) then write('Non-natural numbers are not allowed.')
else write(Euclid(x1, x2... |
UNIT StackADT;
INTERFACE
TYPE
Stack = POINTER;
// Initializes a Stack
// IN Stack
// Must be called before any other operation is called on a stack.
PROCEDURE InitStack(VAR s: Stack);
// Disposes a stack
// IN Stack
PROCEDURE DisposeStack(VAR s: Stack);
// PUSHES a new value onto the stack.
// IN s: The stack.... |
program lab6b;
{insert your name here}
{This program computes values of a function Z. Input comes from a
data file, LAB6B DATA.}
function Z(m,n:integer) : Integer;
begin
if (m<0) or (n<0) or (n>m) then
Z := 0 {stub dummy return value}
else if (n= 0) or (n=m) then
Z:= 1
else
Z:= Z(m-1,n) + Z(m-1... |
unit Conexao.Controller.Interf;
interface
uses
ormbr.Factory.Interfaces;
type
IConexaoController = interface
['{6CB1C4F2-90FC-4D73-87E1-2E8124D93C1F}']
function Conexao: IDBConnection;
end;
implementation
end.
|
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.5.4-6, FILE=ERR47T, C... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.1.9-5, FILE=IMPDEF02, C... |
unit Tcpserver;
interface
uses
System.Classes, System.SyncObjs, Winapi.WinSock, Winapi.Windows,
System.SysUtils;
type
TServerStatus = (sStopped, sStarting, sRunning, sStopping);
TServerEventsReceiver = class
public
procedure OnStatusChanged(OldStatus, NewStatus: TServerStatus); virtual; abstract;
en... |
{$X+}
unit dirlsunit;
(******************************************************************************
unit dirlsunit
contents: this unit is responsible for retrieving a new dir or pwd to the
dir.
******************************************************************************)
interface
const strin... |
unit CadTask;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, VpEdPop, VpDateEdit, ExtCtrls, Buttons, vpData, Mask,
ToolEdit, ProcUtils;
type
TCdTasks = class(TForm)
mDetails: TMemo;
pButtons: TPanel;
sbOk: TSpeedButton;
... |
{
*******************************************************************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
unit UdtmSeguranca;
interface
uses
SysUtils, Classes, ADODB, DB, DBClient, Provider;
type
TDtmSeguranca = class(TDataModule)
DSPSeguranca: TDataSetProvider;
CDSSeguranca: TClientDataSet;
AdsSeguranca: TADODataSet;
CDSSegurancaID_TBL_ACOESDEFORMULARIO: TIntegerField;
CDSSegurancaID_TBL_FORMULA... |
unit frmGetFPValidation;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DPFPEngXLib_TLB, DPFPDevXLib_TLB, DPFPCtlXLib_TLB, DPFPShrXLib_TLB,
// Auto Create
MPlayer, cxLookAndFeelPainters, Menus, DB, MemDS, DBAccess, Uni, OleServer,
ExtCtrls, Actn... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.1-4, FILE=CONF103, CLAS... |
unit ufrmPeopleList;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls, Vcl.ExtCtrls;
type
TfrmPeopleList = class(TForm)
lbPeople: TListBox;
Label1: TLabel;
Label2: TLabel;... |
unit DBCode_Generator;
interface
uses
SysUtils, Classes, StrUtils, ADODB, DB, Forms, Dialogs;
type
TEntity = class;
TEntityField = class(TObject)
public
DBField: TFieldDef;
DBFieldType: TFieldType;
DBFieldName: string;
PasFieldType: string;
PasAttrName: string;
PasAs... |
unit DelphiMaps.GoogleDirections;
interface
uses
Classes,
Generics.Collections,
DelphiMaps.GoogleMaps,
DelphiMaps.GoogleDirectionsXML,
DelphiMaps.Location;
type
IDirections = DelphiMaps.GoogleDirectionsXML.IXMLDirectionsResponseType;
// hen you calculate directions, you need to specify w... |
{------------------------------------------------------------------------------
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/MPL-1.1... |
unit AdvExplorerTreeviewEditor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Spin, StdCtrls, ComCtrls, AdvExplorerTreeview, ExtCtrls;
type
TExpTreeviewEditor = class(TForm)
GroupBox1: TGroupBox;
Treeview1: TTreeView;
Btn_NewItem: TButton;
Bt... |
{
* Main form for StreamWrap Stream Library Demo Program.
*
* $Rev$
* $Date$
*
* Any copyright in this file is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
}
unit FmStreamWrap;
{$UNDEF REQUIRES_TYPES_UNIT}
{$IFDEF CONDITIONALEXPRESSIONS}
{$IF CompilerVersion >= 24.0} //... |
program syn04types(output);
(* Argue_Coor: de andere types *)
(* ident "@(#)dapro/simple/syn04types.p 2.25 17/02/03" *)
{
Reads a PS file, i.e. the product of a morphological analysis by
program syn01, program syn02, program syn03 and program syn04;
produces a new CT file with an indication of phrases and p... |
unit MainForm;
{.$DEFINE DEBUG_LOOPBACK}
interface
uses
Windows, Messages, AvL, avlUtils, avlCOMPort, avlSettings, DataConverter,
Plugins, TermLog, ComboBoxEx;
type
TSettingsItem = record
Name: string;
Value: Integer;
end;
TSettingsItems = array[0..MaxInt div SizeOf(TSettingsItem) -... |
unit Vcl.PrintersSettings;
interface
uses
System.SysUtils, System.Classes, System.Types, System.Contnrs
,Winapi.Windows, Winapi.WinSpool
,Vcl.Printers;
type
TPrnPaperFormat = class(TObject)
public
ID: SmallInt;
Name : String;
Size : TPoint;
end;
TPrnPaperFormats = class(TObjectList)
prot... |
unit ObjectSet4D;
interface
uses
DB,
TypInfo,
Classes,
Contnrs,
Forms,
ObjectInterf4D,
ObjectSQL4D,
ObjectRTTI4D,
ObjectZeos4D;
type
iObjectSet4D = interface
['{5B642A48-FD6A-42E7-81A4-AA2699BCC1C8}']
function Find(var aList : TObjectList) : iObjectSet4D; overload;
fu... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.5-12, FILE=DEV094, CL... |
unit SettingsUnit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
ExtCtrls, fpspreadsheet, fpsTypes, typinfo;
type
{ TFormSettings }
TFormSettings = class(TForm)
Button1: TButton;
ButtonRussian: TButton;
ButtonEnglish: TButton;
... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.10-8, FILE=DEV256, CLAS... |
{ Bob Nisco
Theory of Programming Languages
Spring 2013 }
program Caesar;
{ A variable for the string we'll be using }
var str: String;
function encrypt(str: String; shftAmt: Integer): String;
var
i, temp: Integer;
upperStr: String;
begin
upperStr := UpCase(str);
for i := 1 to length(upperStr) do
begin
{ As... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.4-6, FILE=CONF159, CLAS... |
unit soSignalRecorder;
interface
uses
VamLib.ZeroObject,
eeGlobals,
VamLib.MoreTypes,
LucidityGui.Scope.SignalRecorder;
type
TSignalRecorder = class(TZeroObject, IScopeSignalRecorder)
private
procedure GetReadPointer(out WriteIndex, BufferSize : integer; out Buffer : PArrayOfSingle);
protected
... |
unit uExamService;
interface
uses
System.Classes, Types, IOUtils, SysUtils, Generics.Collections, Windows,
Generics.Defaults, FireDAC.Comp.Client, FireDAC.Stan.Option, FireDAC.Stan.Def,
FireDAC.DApt, FireDAC.Stan.Async, FireDAC.Stan.Expr, FireDAC.Stan.Pool,
System.Net.HttpClientComponent, DateUtils, Variants,... |
{ Plugin that extends original Applock plugin behavior to now have 2 panels
to lock (view) external applications inside EditPlug without the user having
to alt-tab to switch windows. Sort of a tile window manager for external apps
inside EditPlug to make it easier to manage your windows without constant
win... |
unit uProduto;
interface
type
TProduto = class
private
_codigo: integer;
_descricao: string;
_precoVenda: double;
public
constructor Create( codigo: integer; descricao: string; precoVenda: double);
published
property Codigo: integer read _codigo write _codigo;
property Descricao: st... |
unit AggConvCurve;
////////////////////////////////////////////////////////////////////////////////
// //
// Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') //
// Maintained by Christian-W. Budde (Christian@saviour... |
uses System;
type IntBox = class
value: Integer;
otherValue: Integer;
end;
type IntBoxHolder = class
box: IntBox;
end;
function Value(box: IntBox): Integer
begin
box.otherValue
end;
function GetBox(holder: IntBoxHolder): IntBox
begin
holder.box
end;
let box := IntBox(value: 1; otherValue: 2);
I... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.1-3, FILE=IMDEFB28, C... |
UNIT StringBuilders;
INTERFACE
CONST
tab = Char(9);
TYPE
StringBuilder = OBJECT
CONSTRUCTOR Init;
PROCEDURE AppendStr(e: STRING); VIRTUAL;
PROCEDURE AppendChar(e: CHAR); VIRTUAL;
PROCEDURE AppendInt(e: INTEGER); VIRTUAL;
PROCEDURE AppendBool(e: BOOLEAN); VIRTUAL;
... |
unit Lucidity.CustomControlHandler;
interface
{$INCLUDE Defines.inc}
uses
eePlugin,
Classes,
Contnrs,
VamLib.GuiUtils,
VamLib.GuiUtils.ThrottleDebounce,
VamLib.UniqueID,
VamLib.ZeroObject;
type
TCustomControlHandler = class(TZeroObject)
private
procedure LowLevel_ParmeterBeginEdit(const ParNam... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.1-9, FILE=CONF149, CLASS=... |
unit uRESTClient;
interface
uses
uRESTConnection,
xSuperObject,
Generics.Collections,
System.SysUtils,
System.Classes;
type
TCompressionType = uRESTConnection.TCompressionType;
TRequestMethod = (METHOD_GET, METHOD_POST, METHOD_PUT, METHOD_DELETE);
ERESTException = class(Exception);
IRESTResult =... |
program Seminar (input, output);
const
MAXTEILNEHMER = 12;
TAGE = 31;
MONAT = 12;
MINJAHR =1900;
MAXJAHR = 2010;
type
tTag = 1..TAGE;
tMonat = 1..MONAT;
tJahr = MINJAHR..MAXJAHR;
tNatZahlPlus1 = 1..maxint;
tNatZahl = 0..maxint;
tStatus = (aktiv, passiv);
tIndex = 1..MAXTEILNEHMER;
tString = string [20];
tSemina... |
unit ConfigracoesConexao.Model;
interface
uses ConfigracoesConexao.Model.interf, System.SysUtils, IniFiles, FMX.Forms;
type
TConfiguracoesConexaoModel = class(TInterfacedObject,
IConfiguracoesConexaoModel)
private
FFileName: string;
FFileIni: TIniFile;
procedure VerificaParametrosDeConexaoPadrao;... |
unit soAudioFilePreviewPlayer;
interface
uses
Math,
eeSampleFloat,
VamLib.OneShotTimer,
VamLib.MoreTypes,
VamDsp.Interpolation,
VamAudio.RealTimeDecimationFilter,
soAudioFilePreviewPlayer.Voice;
const
kPreviewVoiceCount = 4;
type
PPreviewSampleProperties = ^TPreviewSampleProperties;
TPreviewSampl... |
unit ufrmPessoaConsulta;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, ufrmBase, Vcl.StdCtrls, Vcl.Touch.Keyboard,
Vcl.Grids, Vcl.DBGrids, Vcl.ExtCtrls, Data.DB, Datasnap.DBClient,
System.Actions, Vcl.ActnL... |
unit SerialComPort;
interface
uses genericConnector, classes, cport;
type TSerialComPort = class (TGenericConnector)
public
constructor Create(); override;
destructor Destroy(); override;
procedure setup(); override;
procedure connect(); override;
procedure disconnect(); overr... |
program llist;
type
node_t = record
value : integer;
next : ^node_t;
end;
list_t = ^node_t;
procedure writelist(a : list_t);
begin
while a <> nil do begin
write(a^.value,',');
a := a^.next;
end;
writeln;
end;
procedure insert(var a : list_t; v : integer);
var
... |
unit VamLib.DuckType;
{
=========== ABOUT ========================
The functionality in this unit is based on ideas put forward by:
DuckDuckDelphi
https://code.google.com/p/duckduckdelphi/
Delphi Cookbook by Daniele Teti
http://www.amazon.com/Delphi-Cookbook-Daniele-Teti/dp/1783559586
NOTE:... |
unit UnitPlane;
// Copyright (c) 2020 Sergey-KoRJiK, Belarus
interface
uses
UnitVec,
UnitUserTypes;
const
PLANE_X = 0;
PLANE_Y = 1;
PLANE_Z = 2;
PLANE_ANY_X = 3;
PLANE_ANY_Y = 4;
PLANE_ANY_Z = 5;
type tPlaneBSP = record
vNormal: tVec3f;
fDist: Single;
... |
Program RenameFile;
var
f:file;
begin
{$I-}
if ParamCount < 2 then
begin
Writeln(ErrOutput,'Expected the old and new names');
halt(1)
end;
assign(f,ParamStr(1));
rename(f,ParamStr(2));
if IOResult <> 0 then
begin
Writeln(ErrOutput, 'Error renaming the file');
halt(1)
end;
end.
|
unit Iterator;
interface
type
IIterator = interface(IInterface)
function Next: TObject;
function hasNext: boolean;
end;
implementation
end.
|
(*======================================================================*
| unitNTModule unit |
| |
| Load resources from a module |
| ... |
(**************************************************)
(* *)
(* Advanced Encryption Standard (AES) *)
(* Interface Unit v1.3 *)
(* *)
(* *)
(*... |
unit AggRendererOutlineImage;
////////////////////////////////////////////////////////////////////////////////
// //
// Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') //
// Maintained by Christian-W. Budde (Christ... |
unit Logging;
{$mode objfpc}{$H+}
interface
uses
SysUtils;
procedure Log(const Text: string); overload; inline;
procedure Log(const Text: string; const Args: array of const); overload; inline;
procedure LogEnterMethod(const MethodName: string); inline;
procedure LogExitMethod(const MethodName: string); inline;
pr... |
unit UninsProgram;
interface
uses
Windows, SysUtils, Graphics, Classes, Controls, Forms, Dialogs, DBTables,
StdCtrls, FileCtrl, ExtCtrls, ComCtrls, Registry, SecurityPrograms;
type
TDlgUnInst = class(TForm)
ProgressBar: TProgressBar;
Label1: TLabel;
BtnOK: TButton;
Panel1: TPanel;
Image1: T... |
unit Model.ProSu.Notification;
interface
uses Model.ProSu.InterfaceActions, Model.ProSu.Interfaces;
type
TNotificationClass = class (TInterfacedObject, INotificationClass)
private
fActions: TInterfaceActions;
fActionValue: Double;
public
property Actions: TInterfaceActions read fActions
... |
{***************************************************************************}
{ TDateLabel component }
{ for Delphi & C++Builder }
{ }
{ writte... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.1-1, FILE=CONF100, CLAS... |
unit uReworkbyPiece;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Buttons, StdCtrls, jpeg, ExtCtrls, Grids, DBGrids, ComCtrls,
Db, DBClient, MConnect, SConnect, IniFiles, ObjBrkr;
type
TfReworkbyPiece = class(TForm)
Panel1: TPanel;
ImageAll: TImage;
Lab... |
unit ExportarPagosBancoForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, cxGraphics,
cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxStyles, dxSkinsCore,
dxSkinBla... |
unit QzCtrls;
interface
uses
Types, Controls;
type
TMouseButtonState = (msDown, msMove, msUp);
TDownedInfo = record
Downed: Boolean;
Button: TMouseButton;
Position: array [TMouseButtonState] of TPoint;
procedure Init;
function Down(x, y: Integer; btn: TMouseButton): Boolean;
func... |
unit acuRegisterModelMappings;
interface
uses
acuframework, classes;
procedure RegisterModelMappings(piMetaModel: acMetaModel);
implementation
uses
acuRepositorySQL, utuStateMachine;
procedure RegisterClassTickets(piMetaModel: acMetaModel);
var
lClassMapTicket: acClassTicket;
lClassToDBMapTicket: acClassT... |
unit eeBeatLoopAnalyser.CoreTypes;
interface
uses
Generics.Collections, MtxVec;
type
PTransient = ^TTransient;
TTransient = record
Position : integer; //sample position in the source.
Strength : single; // range 0..1.
end;
TTransientList = class(TList<TTransient>)
protected... |
unit UIntStack;
interface
Uses
SysUtils, UStack;
const
N=100;
type
TElem = pointer;
TMas=array[0..N-1] of TElem;
TIntStack = class(TStack)
protected
function ElemToStr(el : Pointer) : string; override;
public
class function CheckElem(el : pointer) : boolean; override;
class fun... |
unit Test.FarScape.SupportFunctions;
interface
uses
FarScape.SupportFunctions,
WatchTower;
type
TSupportFunctionsTests = class(TWatchTowerTest)
private
public
[Test]
procedure BitAccess_SetBit;
[Test]
procedure BitAccess_GetBit;
end;
implementation
uses
SysUtils,
Types,
WatchTowe... |
unit TMSGBufGets;
interface
uses
ClassConnection;
function GetBufOpcode (var Buf: TBuffer): word;
function GetBufPktLen (var Buf: TBuffer): word;
function GetBufStr (var Buf: TBuffer; var offs: longint): string;
function GetBufInt64 (var Buf: TBuffer; var offs: longint): uInt64;
function GetBufLong (var... |
{ ******************************************************************
This unit fits the Hill equation :
Ymax . x^n
y = ----------
K^n + x^n
****************************************************************** }
unit uhillfit;
interface
uses
utypes, uConstants;
procedure HillFit(X, Y: TVe... |
unit GuiMeta.ScopeHandler;
interface
{$INCLUDE Defines.inc}
uses
ExtCtrls,
VamLib.GuiUtils.ThrottleDebounce,
VamLib.ZeroObject,
eePlugin,
Lucidity.PluginParameters,
eeGlobals,
Classes,
Controls,
VamLib.UniqueID,
LucidityGUI.Scope;
type
{$SCOPEDENUMS ON}
TScopeFocus = (
None,
AmpEnv,
... |
unit ListenerProxyInterface;
interface
uses
MVCFramework.RESTAdapter, MVCFramework.Commons,
ActiveQueueEntry, System.JSON, ConditionInterface;
type
/// <summary>an interface defining API of the consumer of the Active Queue service.</summary>
IConsumerProxy = interface(IInvokable)
['{CD6E015B-9C4D-4DCD-BD... |
unit uFinance.Controller;
interface
uses
System.SysUtils, System.Classes, System.Generics.Collections,
uInstallment, uException.Validation, uFinancing, uIFinancing;
type
TFinanceController = class
private
procedure ValidateBeforeCalculateFunding(const [ref] aFinancing: TFinancing);
public
procedure... |
{*************************************************}
{ }
{ XML Data Binding }
{ }
{ Generated on: 01/05/2015 11:14:34 }
{ Generated from: D:\User\Desktop\CEP.XML }
{ ... |
unit Exercicios.DLL.Calculos;
interface
type
TCalculos = class
function CalcularAreaQuadrados(Lado1, Lado2: Double):Double;
function CalcularPerimetroQuadrados(Lado1, Lado2: Double):Double;
function CalcularAreaCirculo(Raio: Double):Double;
function CalcularPerimetroCirculo(Raio: Double):Double;
e... |
{***************************************************************************}
{ }
{ Spring Framework for Delphi }
{ }
{ ... |
unit LazyRest.Types;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, System.Types, System.SyncObjs;
type
TLogLevel = (logError, logWarning, logInformation, logDebug);
ELazyRestException = class(Exception);
TLazyRestComponent = class(TComponent)
protecte... |
program Flugzeit2 (input, output);
const
MINSEK = 69;
STUNDE = 23;
type
tMinsek = 0..69;
tStunde = 0..23;
tZeit = record
h: tStunde;
m: tMinsek;
s: tMinsek;
end;
tUebertrag = 0..1;
var
Abflug,
Ankunft,
Flugdauer : tZeit;
Uebertrag : tUebertrag;
procedure ZeitLesen (Flugdauer: tZeit);
var
E... |
unit frmExportImportData;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Uni, ADODB,
// Auto Generate
frmUniPosition, Menus, cxLookAndFeelPainters, acQBUniDACMetaProvider, acAST,
acQBADOMetaProvider, QImport3Wizard, QExport4Dialog, acQBBase,
... |
unit VamStatusLed;
interface
uses
Types, Controls, Classes, Graphics, AggColor,
RedFox, RedFoxGraphicControl, RedFoxColor,
VamWinControl;
type
TVamStatusLed = class(TVamWinControl)
private
fColor_Low: TRedFoxColorString;
fColor_High: TRedFoxColorString;
fColor_Mid: TRedFoxColorString;
fLedV... |
unit NodeProp;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, SimpleGraph, ExtCtrls, StdCtrls, ComCtrls, ExtDlgs;
type
TNodeProperties = class(TForm)
Label1: TLabel;
NodeShape: TRadioGroup;
Colors: TGroupBox;
Label2: TLabel;
Label3: TL... |
unit WebServerUnit;
interface
uses
Classes,
SysUtils,
IdSSLOpenSSL,
IdGlobal,
IdSSL,
IdSchedulerOfThreadPool,
IdSSLOpenSSL_ECDH_Util,
IdHTTPWebBrokerBridge;
type
TWebServer = class
private
FServer: TIdHTTPWebBrokerBridge;
fSSLPrivateKeyPassword: String;
fSSLEnabled: Boolean;
proc... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.1.9-4, FILE=DEV031, CLA... |
unit LIB;
interface
uses DB, Controls, SysUtils, Classes, DIALOGS, Variants,
Forms, Windows,{ uPesquisa,} StdCtrls, Buttons,
ExtCtrls, ComCtrls, ToolWin, Grids, DBGrids, Wcrypt2,
IdHashMessageDigest;
type TAbertura = (taShow, taShowModal);
type TOpcaoCript= (toCript, toDecript);
f... |
unit CuentasXCobrarEditConcepto;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, dxSkinsCore,
dxSkinBl... |
{*************************************************************************}
{ TADVTOOLBUTON component }
{ for Delphi & C++Builder }
{ }
{ written by TMS... |
unit Data.Cloud.AmazonAPI.China.SQS;
//AWS China API SQS 接口
//参考 Data.Cloud.AmazonAPI
//有兴趣可以自行测试
//Bug:371889755@qq.com
interface
uses
System.Classes,
System.JSON,
System.SysUtils,
System.Generics.Collections,
Data.Cloud.CloudAPI, Data.Cloud.AmazonAPI.LifeCycle,
Xml.XMLIntf,
Data.Clou... |
unit Struct;
interface
uses
TMSGStruct,
Defines;
type
TSpellRecord = record
caster_guid: uInt64;
spell_id: longint;
spell_cast_time: longint;
target_flags: longint;
target_guid: uInt64;
target_x, target_y, target_z: single;
target_string: string;
end;
TMovementRecord = record
... |
unit VamSlider;
interface
uses
Types, Controls, Classes, Graphics, AggColor,
RedFox, RedFoxGraphicControl, RedFoxColor,
VamGraphicControl, VamWinControl;
type
TVamActiveDirection = (adUnknown, adVert, adHorz);
TVamSliderType = (stVert, stHorz);
TVamSlider = class(TVamWinControl)
private
fOnChanged... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.5.4-1, FILE=ERR13T, CLA... |
unit u3DSSvrParam;
interface
Uses
SysUtils, Classes, u2ParamIO;
Type
Tu3DSSvrParam = class(Tu2ParamIO)
private
FDSSServer : String; // DataSnap サーバー
FDSSPort : Integer; // DataSnap ポート
protected
class Function DefParamName: String; override;
public
Procedure ClearDat... |
Program fib;
Var x:integer;
function Fibonacci(n:integer):longint;
var
i:integer;
p,q,r:longint;
begin
if n<=0 then
Fibonacci:=0
else
begin
q:=0;
r:=1;
for i:=2 to n do
begin
p:=q;
q:=r;
r:=p+q;
end;
Fibonacci:=r;
end;
end;
begin
Writeln('Enter the nomer Fibbonacci: ');
readln(x);
Wri... |
unit uTypes;
interface
uses
SysUtils, Variants;
type
TDJThreadConfig = record
KeyName: string; // 线程名称
DBHost: string;
DBPort: string;
DBName: string;
DBUser: string;
DBPwd: string;
//vioplcs: Integer; 违法批量保存记录数
//kkplcs: Integer; 过车批量保存记录数
end;
TKKThreadConfig = record
... |
unit ContaReceberRepository;
interface
uses BasicRepository, PessoaVO, System.SysUtils, Generics.Collections, RecebimentoContaVO,
RecebimentoContaParcelaVO, RecebimentoContaRecebimentoVO, CartaoRecebimentoVO,
ViewExtratoContaVO, ViewVendaItemVO, EmpresaVO;
type
TContaReceberRepository = class(TBasicRepository)... |
{
Web Open Font Format 2.0
}
{$MODE OBJFPC}
{$H+}
{$INLINE ON}
unit fi_woff2;
interface
uses
brotli,
fi_common,
fi_info_reader,
fi_sfnt_common,
classes,
streamex,
sysutils;
implementation
function ReadUIntBase128(stream: TStream): longword;
var
i: longint;
b: byte;
begin
result := 0;
for... |
unit RealSubject;
interface
uses
Subject;
type
TRealSubject = class(TInterfacedObject, IReceberDados)
produto,preco : string;
procedure ReceberProduto(produto : string);
procedure ReceberPreco(preco : string);
procedure Create (produto,preco : string);
end;
implementation
{ TRealSubject }
pro... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs, IniFiles, uLogger, SyncObjs, IOUtils,
IdBaseComponent, IdComponent, IdCustomTCPServer, IdCustomHTTPServer, DateUtils,
IdHTTPServer, IdContext, Types;
type
TItsXm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.