text stringlengths 14 6.51M |
|---|
unit Model.Conections.Rest.RR4D;
interface
uses
Model.Conections.Rest,
Model.Conections.Rest.Interfaces,
RESTRequest4D,
System.SysUtils,
System.JSON;
type
TRestConnectorRR4D = class(TinterfacedObject, IRestConnector)
private
FResponse: IResponse;
FRequest: IRequest;
FBaseURL: String;
FPa... |
{*************************************************************************}
{ TCOLORCOMBO component }
{ }
{ written by TMS Software }
{ copy... |
(*************************************)
(* Programmname : Load V1.0 *)
(* Programmautor : Michael Rippl *)
(* Compiler : Turbo Pascal V5.0 *)
(* Datum : 07-Mar-1990 *)
(*************************************)
PROGRAM Load(input, output, source);
CONST LevelMax = 64; ... |
unit frmMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.ImageList, Vcl.ImgList,
System.Actions, Vcl.ActnList, Vcl.CategoryButtons, Vcl.WinXCtrls, Vcl.StdCtrls,
Vcl.Imaging.pngimage, Vcl.ExtCtrls,... |
PROGRAM Sum(INPUT, OUTPUT);
VAR
Number, Digit: INTEGER;
PROCEDURE ReadDigit(VAR F: TEXT; VAR Digit: INTEGER);
VAR
Ch: CHAR;
BEGIN
READ(F, Ch);
IF (Ch = '0') THEN Digit := 0 ELSE
IF (Ch = '1') THEN Digit := 1 ELSE
IF (Ch = '2') THEN Digit := 2 ELSE
IF (Ch = '3') THEN Digit := 3 ELSE
IF (Ch = '4') THEN D... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.5.3-20, FILE=CONF127, CLA... |
unit FMX.Canvas.AggPas;
////////////////////////////////////////////////////////////////////////////////
// //
// Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') //
// Maintained by Christian-W. Budde (Christian@sa... |
{
by David Waitzman 2/25/85 for Gregg Lebovitz and CMU-ECE
This is the net layer of tftp. It hides the Udp and lower layers from
the TFTP layer.
}
MODULE TFTP_NET;
IMPORT TFTP_DEC, TFTP_UDP, TFTP_IP, TFTP_RSC;
EXPORT
PROCEDURE Net_Close (VAR up : Upcb);
FUNCTION Net_Open (VAR addr : In_addr) : Upcb_Ptr;
... |
unit UTemp;
interface
uses inifiles,sysutils;
type
TTemp = class
FitaControle :String;
Constructor Create;
Function NumeroRecado(Arquivo:String):Integer;
Procedure GetFita(Arquivo:String);
Procedure Empilha(Arquivo:String; Mensagem:String;var ... |
unit Test.FarScape.Scene;
interface
uses
FarScape.CustomControl,
FarScape.Scene,
WatchTower;
type
TTestControl = class(TFarScapeControl)
end;
TFarScapeSceneTest = class(TWatchTowerTest)
protected
Scene : TScene;
Root : TFarScapeControl;
fsc1 : TFarScapeControl;
fsc2 : TFarScapeControl;... |
unit UManipulaTBAdj;
interface
const
Max = 5;{ número total de vértice }
Infinito = maxint;
Type
vertice = 1..Max;
cont = 0..Max;
valor = integer;
TabelaAdjacencia = array[vertice,vertice] of valor;
TabelaDistancia = array[vertice] of valor;
TCu... |
unit NetUnit;
{
This unit handles network communication, command parsing,
and other network-dependent tasks.
}
interface
uses
System.SysUtils, System.Classes,
Windows, ActiveX, Xml.xmldom, Xml.XMLIntf, Xml.XMLDoc, IdIOHandler,
IdIOHandlerSocket, IdIOHandlerStack, IdSSL, IdSSLOpenSSL,
IdCustomTransparentP... |
program TesteSortiereListe(input, output);
{ sortiert eine Liste durch Einfügen }
type
tRefListe = ^tListe;
tListe = record
wert : integer;
next : tRefListe;
end;
var
RefListe : tRefListe;
procedure SortiereListe (var ioRefListe : tRefListe);
{ sortiert eine nich... |
unit uFrameBz;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, dxDialogBase, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, dxSkinBlack, dxSkinBlue,
dxSkinBlueprint, dxSkinCaramel... |
PROGRAM StoryGen;
USES
sysutils, WordReader, WordWriter, ReplacementCache;
CONST
desiredParameterCount = 3;
replacementPathArgumentIndex = 1;
sourcePathArgumentIndex = 2;
destinationPathArgumentIndex = 3;
VAR
sourcePath: STRING;
destinationPath: STRING;
replacementPath: STRING;
PROCE... |
unit UfcGExpertsFuncs;
interface
uses ToolsAPI;
type
TPropertyValBuffer = packed record
case Integer of
0: (RawBuffer: array[0..255] of Byte);
1: (SString: ShortString);
2: (Int: Integer);
3: (LString: Pointer);
end;
function IsForm(const FileName: string): Boolean;
... |
unit smtpclientlib;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fileutil,
smtpsend, mimemess, mimepart, synautil;
{
Based on Ararat Synapse library 0.40, by Lukas Gebauer (http://synapse.ararat.cz/)
Ararat Synapse is a non-visual internet library
This unit extends the Synapse TSmtpS... |
unit RedFoxContainer;
interface
uses
Windows, Graphics, Messages,
Classes, Controls,
Agg2d,
RedFox, RedFoxImageBuffer, RedFoxColor;
type
//forward declarations.
IRedFoxVisibleControl = interface;
TRedFoxContainer = class;
// Any visible RedFox control must implement IRedFoxVisibleControl. The inte... |
Program DAudio;
{$S-}{&CDecl+}
uses Use32,Os2Def,os2mm;
const
STRING_LENGTH = 128;
MAX_BUFFERS = 256;
StopPlay : boolean = false;
{$I DART.INC}
const
fPassedDevice : BOOLEAN = TRUE;
fRecording : BOOLEAN = FALSE;
var
rc : ULONG;
WavFileName : String;
(*************... |
unit unitCSPrintData;
interface
uses classes,sysutils,unitConvert,DIALOGS;
type
TCSPrintData=class(TComponent)
public
m_bComplete : boolean; //代表USER是否下令開始PRINT
m_sSampleFile : string; //要列印的sample file名稱
m_iQty : integer; //
m_ts... |
unit AudioPlugin.RunTimeInfo;
interface
type
TRunTimeInfo = record
private
public
InputCount : integer; //Audio input count.
OutputCount : integer; //Audio output count.
SampleRate : integer;
MaxSampleFrames : integer;
// 1) SlowControlBufferSize must be larger than FastCon... |
unit uStringCalculator;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, uHelperCalculator;
type
{ TStringCalculator }
TStringCalculator = class
private
FParser: IParserNumbers;
FValidator: IValidation;
function AddListNumbers(NumbersList: TIntegerList): Integer;
public
constructor C... |
{ ******************************************************************
This unit fits the "exponential + linear" model:
y = A.[1 - exp(-k.x)] + B.x
****************************************************************** }
unit uexlfit;
interface
uses
utypes, umath, unlfit, uConstants;
procedure Exp... |
unit Profile;
interface
uses ComCtrls, Classes, GenericConnector, CL_TerminalFrame, CL_TabFactory, CL_ConnectorFactory, ProfileSettings, SerialComPort;
type TProfile = class ( TObject )
constructor Create( AOwner : TObject );
destructor Destroy(); override;
procedure activate();
procedure deact... |
unit FileManager.Providers.Dialogs.Input;
interface
uses FileManager.Providers.Dialogs.Input.Form, System.UITypes;
type
TDialogsInput = class
public
class function Show(const Title: string; var Description: string; const DefaultText: string = ''): Boolean;
end;
implementation
{ TDialogsInput }
class fun... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.2.3-3, FILE=DEV200, C... |
{
Напишите программу для решения следующей задачи. Камера наблюдения регистрирует в автоматическом режиме скорость проезжающих мимо неё автомобилей,
округляя значения скорости до целых чисел. Необходимо определить среднюю зарегистрированную скорость всех автомобилей.
Если скорость хотя бы одного автомобиля была не м... |
unit uSelect;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ImgList, ExtCtrls, Buttons, StdCtrls, jpeg, GradPanel;
type
TfSelect = class(TForm)
ImageList1: TImageList;
GradPanel14: TGradPanel;
Image3: TImage;
Image4: TImage;
sbt... |
unit cubemain;
{$mode objfpc}{$H+}
interface
{$DEFINE cubeObject} //optional: demonstrate glcube class
uses
{$IFDEF cubeObject}glcube,{$ENDIF}
gl_core_matrix, gl_core_utils, Classes, SysUtils, FileUtil, OpenGLContext, Forms, Controls, Graphics,
Dialogs, StdCtrls, ExtCtrls, glcorearb, Types;
type { TGLForm1 }
... |
unit UCL.CheckBox;
interface
uses
Classes,
Messages,
Windows,
Controls,
StdCtrls,
Graphics,
UCL.Classes,
UCL.Utils,
UCL.Graphics;
type
TUCheckBoxState = (cbsUnchecked, cbsChecked, cbsGrayed);
TUCheckBox = class(TUCustomControl)
private var
ActiveColor, TextColor: TCol... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.6-2, FILE=CONF086, CLASS=... |
unit UnitMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, Tabs, ExtCtrls, ToolWin, ImgList, ActnList, Menus, ADODB,
DB;
type
TFormMain = class(TForm)
ImageList: TImageList;
MainToolBar: TToolBar;
ToolButtonLogs: TToolButton;
Ac... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
ExtCtrls, StdCtrls,
c_vertsb, c_files, c_msgbox, c_questdlg, c_song, c_horzsb, c_jump,
c_speed, c_settings, c_extinfo,
MpjPlaylists, crDefs,
LMessages, LCLType, strutils,... |
unit VamLib.Collection.List;
interface
type
// TRecList is an unordered list object.
TRecList = record
private
FCount: integer;
FCapacity: integer;
FMaxCapacity: integer;
FGrowBy: integer;
ListData : array of pointer;
procedure SetCapacity(const Value: integer);
function GetData(cons... |
unit Model.Database.Interfaces;
interface
uses
System.Generics.Collections,
Model.Declarations;
type
IDatabaseInterface = interface
['{DDE3E13A-0EC5-4712-B068-9B510977CF71}']
//function UpdatePairDeviceListDatabaseRimDateRange: TOBjectList<TPairDevice>;
function GetFromDate: TDateTime;
procedure ... |
unit RedFoxColor;
interface
uses
Graphics, Agg2D, AggColor;
type
PRedFoxColorString = ^TRedFoxColorString;
TRedFoxColorString = string;
PRedFoxColor = ^TRedFoxColor;
TRedFoxColor = record
class operator Implicit(a : TRedFoxColor):TColor;
class operator Implicit(a : TRedFoxColorString):TRedFoxColor... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ PRETEST 6.6.5.4-6, FILE=ERR47P... |
unit FreqMonitor;
interface
uses
SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls, Buttons, Menus, Clipbrd;
type
TfFreqMonitor = class(TForm)
FMListBox: TListBox;
FLPopupMenu: TPopupMenu;
Clearlist1: TMenuItem;
Savelisttofile1: TMenuItem;
procedure Cle... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO transiente que representa o registro 61R do Sintegra.
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 a... |
unit TestObjects;
interface
type
TPerson = class(TObject)
private
FLastName: String;
FFirstName: String;
FAge: Integer;
FChild: TPerson;
procedure SetLastName(const Value: String);
procedure SetFirstName(const Value: String);
procedure SetAge(const Value: Integer);
pr... |
{ ******************************************************************
Median
****************************************************************** }
unit umedian;
interface
uses
utypes, uConstants;
function Median(var X: TVector; Lb, Ub: Integer): Float; overload;
function Median(var X: TIntVector; Lb... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Snake, Vcl.ExtCtrls, UField;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedur... |
unit eeCockosVstExtensions;
interface
uses
DAEffect;
function CockosVstEx_GetProjectPath(AudioMaster : TAudioMasterCallbackFunc; out FunctionIsImplemented:boolean):string;
implementation
function CockosVstEx_GetProjectPath(AudioMaster : TAudioMasterCallbackFunc; out FunctionIsImplemented:boolean):stri... |
unit Test.FarScape.RootControl;
interface
uses
TestMocks.FarScapeControls,
FarScape.CustomControl,
WatchTower;
type
TRootControlTest = class(TWatchTowerTest)
private
protected
RootControl : TMockRootControl;
fsc1 : TMockControl;
fsc2 : TMockControl;
fsc3 : TMockControl;
public
proce... |
uses System, Collections;
let list := NewList of Integer(0);
WriteLn('capacity is: ' + Capacity(list)); |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ PRETEST 6.6.6.5-6, FILE=ERR59P... |
unit uGK.Logger;
interface
uses
{Delphi}
Winapi.Windows, System.Classes;
type
TLogger = class
private
FOnLoggingEvent: TGetStrProc;
class var FUniqueInstance: TLogger;
constructor Create;
public
destructor Destroy; override;
class function GetInstance: TLogger; static;
///<summary> ... |
unit djfxTwoPoleLP;
interface
uses
eeGlobals, VamLib.MoreTypes, djfxBase, eeSimpleLFO, eeZeroDelayFilters;
type
TDJFXTwoPoleLP = class(TDJFXCustomFX)
private
protected
Freq, res:double;
BiLinTL1, BiLinTL2:TBiLinearTransform;
yL, yR:double;
procedure SetParValue(Index: integer; c... |
unit CadParamsPed;
{*************************************************************************}
{* *}
{* Author : Alcindo Schleder *}
{* Copyright: © 2003 by Alcindo Schleder. All rights reserved. ... |
unit lua;
interface
uses LuaBase;
function lua_upvalueindex(I: Integer): Integer;
function lua_boxpointer(L: PLua_State; U: Pointer): Pointer;
function lua_unboxpointer(L: PLua_State; I: Integer): Pointer;
procedure lua_pop(L: PLua_State; N: Integer);
procedure lua_register(L: PLua_State; const N: PAnsiCha... |
{
MIT License
Copyright (c) 2017-2018 Marcos Douglas B. Santos
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, cop... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.3.5-5, FILE=DEV210, C... |
unit FormPrincipal;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, uVenda, uBalanco, uBlog, uAssinantes, uObserver,
Vcl.Menus, Vcl.ExtCtrls;
type
TForm1 = class(TForm)
edtNomeAssnt: TEdit;... |
unit PropertiesFile4D.Impl;
{$INCLUDE PropertiesFile4D.inc}
interface
uses
{$IFDEF USE_SYSTEM_NAMESPACE}
System.Classes,
System.SysUtils,
{$ELSE USE_SYSTEM_NAMESPACE}
Classes,
SysUtils,
{$ENDIF USE_SYSTEM_NAMESPACE}
PropertiesFile4D;
type
TPropertiesFile = class(TInterfacedObject, IProperti... |
unit uVariavelDeClasse;
interface
type
TMyUniqueClass = class
strict private
constructor Create;
class var
FInternalInstance: TMyUniqueClass;
private
FValue: Extended;
procedure SetValue(const Value: Extended);
published
public
class function Instance: TMyUniqueClass;
property Valu... |
{
*******************************************************************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
//***************************************************************
// This source is written by John Kouraklis.
// © 2016, John Kouraklis
// Email : j_kour@hotmail.com
//
// The MIT License (MIT)
//
// Copyright (c) 2016 John Kouraklis
//
// Permission is hereby granted, free of charge, to any person
// obtain... |
unit LEDCommand;
interface
uses
LED, CommandInterface;
type
TLEDAzul = class(TInterfacedObject, ICommand)
public
constructor Create(LED: TLED);
procedure Execute;
procedure Undo;
private
LED : TLED;
end;
TLEDVermelho = class(TInterfacedObject, ICommand)
public
constru... |
unit uRanXorShift;
{ Unit uRanXorShift : Xor Shift Random generator Unit
Created by : Alex Vergara Gil
Contains the Xor Shift Random generator
}
interface
uses
uConstants, urandom;
type
TRanXorShift = class(TBaseRandomGen)
private
RandSeed32, triple: LongInt;
RandSeed64: int6... |
unit Controllers.AtmIndex;
interface
uses
MVCFramework, MVCFramework.Commons, MVCFramework.Serializer.Commons, MVCFramework.Swagger.Commons, Controllers.Base,
Services.Base, Commons, mvcframework.Serializer.Intf, System.Generics.Collections, System.SysUtils, Services.AtmIndex,
Entities.AtmIndex;
type
[MVCDoc... |
unit WatchTower.MemLogger;
interface
type
// Use MemLogger to monitor memory activity.
MemLogger = record
public
class procedure Install; static;
class procedure Uninstall; static;
class procedure Reset; static;
class procedure GetActivity(out _GetMemCount, _FreeMemCount, _ReallocMemCount, _All... |
unit Lucidity.PluginParameterController;
interface
{$INCLUDE Defines.inc}
uses
eeTypes,
eePublishedVstParameters,
VamLib.Utils,
Lucidity.Interfaces,
Lucidity.PluginParameters,
Lucidity.Types;
type
TPluginParameterController = class
private
class procedure SendMessages(const aPlugin : TObject; c... |
unit EnumRTTIFrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ModuleFrm, StdCtrls, TypInfo;
type
TFrmEnumRTTI = class(TFrm)
ComboBox1: TComboBox;
ListBox1: TListBox;
procedure FormCreate(Sender: TObject);
procedure ComboBox1Change(Sender: T... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ PRETEST 6.6.5.2-10, FILE=ERR24... |
unit SharedStrings;
interface
uses
System.Generics.Collections;
type
TXlsxString = class(TObject)
private
FId: Integer;
FValue: String;
public
property Id: Integer read FId;
property Value: String read FValue;
end;
TXlsxSharedStrings = class(TObject)
private
FStrings: TObjectList<T... |
unit CLSSoccer_u;
interface
uses
sysutils, dialogs;
type
TSoccer = Class // Declaring the name of the object class. No semicolon.
private
{ Private declarations }
// declaring states/attributes - the attributes for the object must be used only by this class
fTeam: String;
fPlayer... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ PRETEST 6.6.5.3-17, FILE=ERR41... |
unit VamNumericKnob;
interface
uses
Types,
Classes, Controls, RedFox, RedFoxWinControl, VamWinControl;
type
TNumericStyle = (nsInteger, nsFloat, nsCustom);
TVamNumericKnob = class(TVamWinControl)
private
fTextVAlign: TRedFoxAlign;
fTextAlign: TRedFoxAlign;
fNumericStyle: TNumericStyle;
fKn... |
unit Test.VamVst2.MidiEventOutputBuffer;
interface
uses
WatchTower, VamVst2.MidiEventOutputBuffer;
type
TMidiEventOutputBufferTest = class(TWatchTowerTest)
private
Buffer1, Buffer2 : TMidiEventOutputBuffer;
public
procedure Setup; override;
procedure TearDown; override;
[Test]
procedure ... |
PROGRAM SumDigit(INPUT, OUTPUT);
VAR
Digit: INTEGER;
PROCEDURE ReadDigit(VAR Source: TEXT; VAR Digit: INTEGER);
VAR
Ch: CHAR;
BEGIN
Digit := -1;
READ(Source, Ch);
IF Ch = '0' THEN Digit := 0 ELSE
IF Ch = '1' THEN Digit := 1 ELSE
IF Ch = '2' THEN Digit := 2 ELSE
IF Ch = '3' THEN Digit := 3 ELSE
IF Ch = '4' THE... |
unit UdtmLinks;
interface
uses
System.SysUtils, System.Classes, Data.DB, Datasnap.DBClient,
Datasnap.DSConnect, Data.FMTBcd, Datasnap.Provider, Data.SqlExpr;
type
TDtmLinks = class(TDataModule)
CDS_CADASTRO: TClientDataSet;
SDS_CADASTRO: TSQLDataSet;
DSP_CADASTRO: TDataSetProvider;
CDS_CADASTRO... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.7.1-9, FILE=LEV1F18... |
uses System;
function ReturnSome of T(x: T): Option of T
begin
Option.Some(x);
end
let someX := ReturnSome of Integer(123);
if someX is Option.Some x then
WriteLn('someX is ' + IntToStr(x))
else
WriteLn('error: x is not Some') |
uses System;
type Greetable = interface
function Name(self: Self): String;
end;
type Person = record
name: String;
end;
function Greetable.Name(self: Person): String
begin
self.name
end;
let alice := Person(name: 'Alice');
WriteLn('hello, ' + alice.Name()); |
unit PropertiesFile4D;
{$INCLUDE PropertiesFile4D.inc}
interface
uses
{$IFDEF USE_SYSTEM_NAMESPACE}
System.Classes,
System.SysUtils;
{$ELSE USE_SYSTEM_NAMESPACE}
System.Classes,
SysUtils;
{$ENDIF USE_SYSTEM_NAMESPACE}
type
EPropertiesFileException = class(Exception);
EPropertiesFileNotFoundE... |
program main;
{$mode objfpc}{$m+}
uses crt;
// =============================================================================
type
ProductClass = class
private
name: string;
amount: integer;
cost: double;
public
constructor create(n: string; a: integer; c: double);
function getPrice(p... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.1.3-2, FILE=CONF008, CLASS=... |
unit TestNullableInt32s;
interface
uses
TestFramework, Variants, NullableInt32s, SysUtils;
type
// Test methods for NullableInt32
TestNullableInt32 = class(TTestCase)
strict private
private
procedure ReadUnint;
procedure ReadNull;
published
procedure TestRandomAssignment;
... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.1-6, FILE=DEV114, CLA... |
unit eePublishedVstParameters;
interface
uses
Contnrs,
VamLib.Collections.Lists,
eeTypes;
type
TVstParameterInfo = record
Name : string;
ShortName : string;
Display : string;
Units : string;
end;
TVstParameter = class
public
PluginParameterName : string;
PluginParameterID :... |
unit ServiceUtilsU;
interface
uses
System.Types, System.Classes, Winapi.Windows, System.UITypes, System.SysUtils, Winapi.WinSvc,
Vcl.Forms,
Vcl.SvcMgr,
Winapi.ShellAPI,
Vcl.Dialogs;
type
TServiceStatus = (ssNotInstalled,ssStarting,ssRunning,ssStopping,ssStopped);
TApplicationType = (atUnknown, atServi... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.3.10-4, FILE=CONF188, CLA... |
program _matrice;
{ programme de matrices avec comme module de gestion des matrices }
{ le module matrices.pas et comme application la procédure }
{ cholesky }
procedure swapr(var a,b:real);
var t:real; begin t:=a; a:=b; b:=t; end;
function pow(x:real;n:integer):real;
var i:integer; y:real; begin y:=1; for i:=1 to a... |
{
Crafting Interpreters
https://craftinginterpreters.com/
}
unit rterror;
{$ifdef FPC}
{$mode delphi}
{$endif}
interface
uses
Classes, SysUtils, token;
type
{ ERunTimeError }
ERunTimeError = class(Exception)
private
FToken: TToken;
public
constructor Create(tok: TToken; const msg: st... |
{------------------------------------------------------------------------------
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 GuiMeta.ActiveModDisplay;
interface
uses
eePlugin,
Controls,
VamLib.ZeroObject;
type
TActiveParameterDetector = class(TZeroObject)
private
CurrentFocus_ParName : string; // this is a parameter name.
Plugin : TeePlugin;
protected
procedure ProcessZeroObjectMessage(MsgID:cardinal; DataA:Po... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.3.9-19, FILE=ERR75T, ... |
unit MainForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons,
Vcl.Imaging.pngimage, Vcl.ExtCtrls, unFuncoes;
type
TForm1 = class(TForm)
btnSete: TSpeedButton;
btnOito: T... |
unit UFrm_CTE_EMISSOR;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Data.FMTBcd, Data.SqlExpr,
Vcl.Menus, RzButton, RzCmboBx, RzDBCmbo, RzPanel, Vcl.Mask, Vcl.DBCtrls,
RzLabel, RzDBLbl, Vc... |
unit LaunchActivities;
interface
procedure ShowBatteryUsage;
procedure LaunchURL(const URL: string);
procedure CreateSMS(const Number, Msg: string);
procedure CreateEmail(const Recipient, Subject, Content: string); overload;
procedure CreateEmail(const Recipients: array of string; const Subject, Content: stri... |
unit BotUnit;
{
This unit handles tasks specific to the binary itself, such as
installation, loading and parsing of settings, restarting, etc.
}
{$WARN SYMBOL_PLATFORM OFF}
interface
uses
SysUtils, Classes,
Windows, Registry,
INIFiles, Zip,
Basics, ElevateUnit, SystemUnit, SpreadUnit;
/// <summary>En... |
{
These filters are based on information provide by Andrew Simper on the Music-DSP
mailing list.
================================================================================
Andrew Simper's Email
================================================================================
I'll do a fancy copy... |
unit FarScape.Events;
interface
uses
FarScape.Event,
Classes,
UITypes;
type
//========================================
// Forward declarations
//========================================
TMouseEnterEvent = class;
TMouseLeaveEvent = class;
TMouseDownEvent = class;
TMouseUpEvent = class;
TB... |
program alg004;
{
#-------------------------------------------#
# Autor: Samuel T. C. Santos #
# Data: 24-04-2014 #
# Free Pascal Compiler #
#-------------------------------------------#
}
var
altura, massa, imc: real;
begin
write('Massa Corporal[kg]? ');
r... |
unit uDrpForm;
interface
uses
{$IF CompilerVersion > 18}
System.SysUtils, System.Classes, vcl.Forms, vcl.Controls, vcl.StdCtrls,
System.Types, Winapi.Windows;
{$ELSE}
SysUtils, Classes, Forms, Controls, StdCtrls, Types, Windows;
{$IFEND}
type
TAnimationStyle = (asSlide, asBlend);
TSlideDirect... |
{ ******************************************************************
Gauss-Legendre integration
****************************************************************** }
unit ugausleg;
interface
uses
utypes, uConstants;
function GausLeg(Func: TFunc; A, B: Float): Float;
{ Integral from A to B }
func... |
unit Venda.Interfaces;
interface
uses
System.SysUtils,
System.Generics.Collections,
Venda.Types;
type
iVenda = interface;
iVendaAttributes<iVenda> = interface;
iItemAttributes<Ivenda> = interface;
iVendaActions = interface;
iVenda = interface
['{6888BF2E-F7ED-4096-BA4D-370CDA773CE4}']
func... |
unit uProduto;
interface
uses
System.SysUtils, System.Classes;
type
TProduto = class(TCollectionItem)
private
codigo : Integer;
nome : String;
preco : Real;
public
//constructor Create; overload;
constructor Create(const pCodigo : Integer; const pNome : String; const pPr... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, uInputQuery;
type
TForm1 = class(TForm)
btnAddInteger: TButton;
AddIntegerArray: TButton;
btnAddIntegerWithRangeValidation:... |
unit TmpInstruccionesDM;
interface
uses
System.SysUtils, System.Classes, _StandarDMod, System.Actions, Vcl.ActnList,
Data.DB, Data.Win.ADODB, System.UITypes;
resourcestring
StrSelectInfo = 'Selecciona los archivos para generar las instrucciones.';
type
TdmTmpInstrucciones = class(T_dmStandar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.