text
stringlengths
14
6.51M
unit stanicniHlaseni; { Trida TStanicniHlaseni se stara o prehravani stanicniho hlaseni jedne oblasti rizeni. } interface uses Generics.Collections, IdContext, Classes, SysUtils; const _HLASENI_SPRTYP_FORBIDDEN: array [0..5] of string = ( 'Pn', 'Mn', 'Vn', 'Lv', 'Vle', 'Slu' ); type TAvailableEvent =...
{*******************************************************************************} { } { XML Data Binding } { ...
program ej13; procedure circulo(rad:Real; var diam:Real; var peri:Real); const pi = 3.14156; begin diam:=0; peri:=0; diam:=rad*2; peri:=rad*2*pi; end; procedure leerPlaneta(var nom:String; var rad:Real; var dist:Real); begin writeln('Ingrese el nombre del planeta: '); readln(nom); writeln('Ingrese el...
unit uClienteDAO; interface uses uConexao,ZAbstractConnection, ZConnection, DB, ZAbstractRODataset, ZAbstractDataset, ZDataset, uClienteModel, uDMConexaoDAO, SysUtils, generics.collections; type TClienteDAO = class private public function Inserir(ClienteModelo:TClienteModel):Boolean; funct...
unit AqDrop.Core.Helpers.TThread; interface uses System.Classes; type TAqThreadHelper = class helper for TThread public class procedure RunOnMainThread(const pMethod: TThreadProcedure); overload; static; class procedure RunOnMainThread( const pIfAlreadyOnMainThreadMethod, pSynchroniza...
unit BuilderPizzaExample.Director.MenuServices; interface uses BuilderPizzaExample.Builder.Base.IPizzaBuilder, BuilderPizzaExample.Domain.ValueObject.PizzaSize, BuilderPizzaExample.Domain.Edge, BuilderPizzaExample.Director.IMenuServices; type TMenuServices = class(TInterfacedObject, IMenuServices) public ...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All r...
unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; const Key = 'Just A Test'; type TForm1 = class(TForm) Panel1: TPanel; mmText: TMemo; btnLoadTextFile: TButton; btnSaveToBinFile: TButton; btnLoadBinFile: TButton; ...
(* Name: kwhelp Copyright: Copyright (C) SIL International. Documentation: Description: Create Date: 1 Aug 2006 Modified Date: 9 Aug 2015 Authors: mcdurdin Related Files: Dependencies: Bugs: Todo: Notes: ...
unit grid; (* Connect Four grid *) interface uses SysUtils; type TDisk = ansichar; const CWhite = 'X'; CBlack = 'O'; CEmpty = '.'; CNihil = '#'; type TGrid = array[0..8, 0..7] of TDisk; TLineIndex = 0..24; procedure EmptyGrid(var AGrid: TGrid); procedure CopyGrid(var AGrid: TGrid; const ASou...
unit FixUp; (* The DCU Fixup information module of the DCU32INT utility by Alexei Hmelnov. ---------------------------------------------------------------------------- E-Mail: alex@icc.ru http://hmelnov.icc.ru/DCU/ ---------------------------------------------------------------------------- See the file "readme.txt" f...
(* Copyright (c) 2011-2012, Stefan Glienke All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions ...
unit Predictor; { SimThyr Project } { A numerical simulator of thyrotropic feedback control } { Version 4.0.6 (Merlion) } { (c) J. W. Dietrich, 1994 - 2022 } { (c) Ludwig Maximilian University of Munich 1995 - 2002 } { (c) Ruhr University of Bochum 2005 - 2022 } { This unit delivers predicted equilibrium valu...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, TCaptureXLib_TLB, TSelectionLib_TLB, UIElementLib_TLB; type TForm1 = class(TForm) btnSelReg: TButton; btnSelWnd: TButton; Label1: TLabel; txtHandle: TEdit; Label2: TLabel...
uses GraphABC,ListUtils; const RAD=5; MARGIN=4; MARGINUP=20+RAD; type // coor=record // x:integer; // y:integer; // end; Vertex=class public constructor create(coorx,coory:integer); constructor create(coorx,coory:integer;vname:string); function getx:integer; function gety:i...
program Test4; var var1, var2 : real; var3 : boolean; begin (* Comment parenthesis *) { Comment braces } end.
unit UMLS_FindError; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, UForms, Dialogs, StdCtrls, Buttons, ExtCtrls, ComCtrls, RzTabs; type TMLSFindError = class(TAdvancedForm) Label3: TLabel; btnOk: TBitBtn; btnReplaAll: TBitBtn; btnSkip: TButton; bt...
unit TSTOCustomPatchesImpl; interface Uses HsInterfaceEx, TSTOCustomPatchesIntf; Type TTSTOPatchData = Class(TInterfacedObjectEx, ITSTOPatchData) Private FInterfaceState : TInterfaceState; FPatchType : Integer; FPatchPath : WideString; FCode : WideString; Protected Fu...
unit Project; interface uses Classes, SysUtils, Windows, Contnrs, Outlines, SizeableOutlines, OtherOutlines, Netlist, Board, ExceptSafe, UndoEngine; const TveBoardDEFAULTWIDTH = 25; TveBoardDEFAULTHEIGHT = 34; TveBoardMAXWIDTH = TbrBoardMAXWIDTH; type EPerfProject = class( Exce...
unit ListBooks; interface uses System.Generics.Collections, Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.WinXCtrls, Vcl.Menus, Vcl.Themes, User, Diagram, Vcl.Samples.Spin, Vcl.Grids, AddBoo...
unit uProdPositionCalc; {$i twcomp.pas} interface uses uOpportunityPositions, sysUtils, uGetPriceAndRebate, CAS_ToolsVariant, uFunctionCheck, Variants, Math, twTypes, CAS_Logger; type //Hiervon gibt es eine SDK-Ableitung: Keinerlei Schnittstellenänderung erlaubt TProductPositionData = class private FPu...
unit MUIClass.StringGrid; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Exec, Utility, Intuition, icon, mui, MUIClass.Base, MUIClass.List, MUIClass.Group; type {$M+} TGridColumn = record Title: string; Rows: array of record Text: string; Data: Pointer; end; end; TGridColum...
unit TarFTP.Tasks; interface uses Windows, SysUtils, Classes, TarFTP.Interfaces, SyncObjs, IdGlobal; type TCommand = class(TInterfacedObject, ICommand) public { ICommand } procedure Execute(const Task : ITask); virtual; abstract; end; TTask = class(TInterfacedObject, ITask) private FError: TEx...
unit uF6_OlahBahan; interface uses uP1_tipeBentukan, uP3_Umum; procedure mainOlahBahan(ID : integer; //hapus parameter yang tidak perlu var dataBahanMentah : tabelBahanMentah; var dataBahanOlahan : tabelBahanOlahan; var dataSimulasi : tabelSimulasi; var inventoriBahanOlahan : ...
unit uExceptionsManager; interface uses AppEvnts, SysUtils, Contnrs; type ExceptionClass = class of Exception; TExceptionManager = class private Exceptions: TClassList; AppEvents: TApplicationEvents; constructor Create; public destructor Destroy; override; procedure RegisterKnowException...
unit RepositorioCFOP; interface uses DB, Repositorio; type TRepositorioCFOP = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; function GetIdentificador(Objeto :TObject)...
unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Printers, WinSpool; type TForm1 = class(TForm) Button1: TButton; Label1: TLabel; Label2: TLabel; Label3: TLabel; Label4: TLabel; Label5: TLabel; procedure B...
namespace Beta.ViewModels; interface uses System, System.Collections.Generic, System.Collections.ObjectModel, System.ComponentModel, System.Linq, Beta.Resources, Beta; type MainViewModel = public class(INotifyPropertyChanged) private var fBuildsList: ObservableCollection<BuildViewModel>; v...
{$optimize 7} {---------------------------------------------------------------} { } { Character set handling routines } { } { This module handles different character...
unit VolumeInfo; {$mode objfpc}{$H+} interface uses Classes, SysUtils, BaseModel; type IBaseVolumeInfo = interface(IBaseModel) ['{A313D343-9BEE-4548-8D30-ACD9887EEC2E}'] function GetCubicMeters: Double; function GetCubicFeet: Double; procedure SetCubicMeters(AValue: Double); procedure SetCubic...
unit NtUiLib.Exceptions; { This module adds support for raising unsuccessful error codes as Delphi exceptions. } interface uses NtUtils, System.SysUtils; type // An exception type thrown by RaiseOnError method of TNtxStatus ENtError = class(EOSError) private xStatus: TNtxStatus; public constru...
unit ProjectCodeGenerationOptionsController; interface uses Classes, SysUtils, tiObject, mapper, mvc_base, widget_controllers, AppModel, ProjectCodeGenerationOptionsViewFra, EventsConsts, BaseFrameController; type // ----------------------------------------------------------------- // Class Objects // ---...
unit unitMeta; {$mode objfpc}{$H+} interface uses Classes, SysUtils, DB; type { TField } TField = class Name: string; Value: string; ReferenceTable: string; ReferenceField: string; constructor Create(prmName, prmValue, prmReferenceTable, prmReferenceField: string); end; TTable = cla...
unit DIOTA.Utils.Signing; interface uses DIOTA.Pow.ICurl, DIOTA.Pow.SpongeFactory, DIOTA.Model.Bundle; type TSigning = class private FCurl: ICurl; function GetICurlObject(mode: TSpongeFactory.Mode): ICurl; public constructor Create; overload; virtual; constructor Create(curl: ICurl); over...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://localhost/WS/WS.dll/wsdl/IdmServer // >Import : http://localhost/WS/WS.dll/wsdl/IdmServer>0 // Version : 1.0 // (0...
unit BoosterDb; //this unit defines booster database as a class interface uses Booster, IniFiles, Classes, SysUtils, Windows, Generics.Collections, Generics.Defaults; type BoosterExistsException = class(Exception); TBoosterDb = class private const _BEEP_INTERVAL = 1; ...
unit SubProcessos_01; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls; type TSubProcessos01 = class(TForm) Panel3: TPanel; BT_Incluir: TBitBtn; BT_Sair: TBitBtn; Panel1: TPanel; GroupBox1: TGroupBox...
PROGRAM SarahRevere(INPUT, OUTPUT); { Печать сообщения о том как идут британцы, в зависимости от того, первым во входе встречается 'land' или 'sea'. } VAR W1, W2, W3, W4, Looking: CHAR; PROCEDURE Initializ(VAR Ch1, Ch2, Ch3, Ch4, Looking: CHAR); BEGIN { Initializ } Ch1 := ' '; Ch2 := ' '; Ch3 := ' '; Ch4 := '...
unit ObjectInspector; interface uses System.Classes, System.SysUtils, Vcl.Controls, Vcl.ComCtrls, Vcl.StdCtrls, System.Types, Vcl.ExtCtrls, TypInfo; type TObjectInspector = class(Tobject) private FLastitem: TListItem; FListview: TListView; FTask: TTimer; procedure DoSelectItem(S...
{ **************************************************************************** } { Project: ConnectFour3D { Module: AboutBoxForm.pas { Author: Josef Schuetzenberger { E-Mail: schutzenberger@hotmail.com { WWW: http://members.fortunecity.com/schutzenberger/download/en.html#ConnectFour3D { This unit is based ...
// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://localhost:9999/wsdl/ITxsRxsWS // Encoding : utf-8 // Version : 1.0 // (4/19/2011 10:04:44 PM - 1.33.2.5) // ...
unit win.thread; interface uses base.thread; type PSysWinThread = ^TSysWinThread; TThreadProc = function(AThread: PSysWinThread): HRESULT; stdcall; TSysWinThread = record Core : TSysThread; OleInitStatus : Integer; // CoInitialize(nil); ThreadProc ...
unit UXMLConst; { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. } { this the unit has all the constants for the generic XML package we can create } interface const ...
unit GlobalErrorHandler; interface uses Forms, SysUtils, Classes; type TGlobalErrorHandler = class sealed private class var FInstance: TGlobalErrorHandler; class function GetInstance: TGlobalErrorHandler; static; private FPreviousOnExceptionEventHandler: TExceptionEvent; ...
Program listas; Type Lista= ^Nodo; Nodo= Record Datos: integer; Sig: Lista; End; {----------------------------------------------------------------------------- INSERTAR - Inserta num en la lista pri manteniendo el orden creciente} Procedure Insertar ( var pri: lista; num: ...
unit DatabaseUtils; interface uses Aurelius.Criteria.Base, Aurelius.Drivers.Interfaces, Aurelius.Engine.DatabaseManager, Aurelius.Engine.ObjectManager, AureliusEntities; procedure UpdateDatabase(Conn: IDBConnection); implementation procedure SaveAllObjects(M: TObjectManager); var Rock,...
unit UFormSelectShare; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls, VirtualTrees, StrUtils, Vcl.ImgList; type TfrmSelectShare = class(TForm) plButtons: TPanel...
unit ULoading; interface uses USimulation; type // Класс THeap - куча земли. // По существу, просто ячейка списка THeap = TLink; // Класс TBulldozer - бульдозер TBulldozer = class(TProcess) protected procedure RunProcess; override; end; // Класс Tloader - погрузчик TLoader = class(TProcess)...
(* 2013-08-03: APL: This unit is an attempt to remake the classbuilder code, in a more discrete manner, with more usage of inheritence. Mainly to enable comments on any code element. It does not seem to be entirely possible, when also wanting to keep a high level of object-irisat...
(*=================================================*) (* Developer: Michael Neuhold *) (* Date: 14.12.18 *) (* Title: candles *) (*=================================================*) PROGRAM Candles; FUNCTION CandlesRec(h: INTEGE...
program WormBlits; Uses Graph, Crt, GrafBits, WormPics; const North: array[1..3] of Byte = (1, 2, 8); NorthEast: array[1..3] of Byte = (1, 2, 3); East: array[1..3] of Byte = (2, 3, 4); SouthEast: array[1..3] of Byte = (3, 4, 5); South: array[1..3] of Byte = (4, 5, 6); SouthWest: array[1..3] of B...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Grids, unit2; type { TForm1 } TForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; Button4: TButton; StringGrid1: TStringGrid; StringGrid...
unit Setup; interface uses Windows, AvL, avlUtils, SetupScript, LZMADecAPI; type TProcessEntry = function(const Section: string; Index: Integer): Boolean of object; TSetupEngine = class private FLog: TSetupScript; procedure InitLog; function ProcessEntries(const Section: string; Proc...
{$mode objfpc} {$modeswitch advancedrecords} unit UDynArray; interface uses SysUtils; type generic TDynArray<T> = record public type TDynArrayPtr = ^TDynArray; private const kArrayLiteralSize = -1; kArrayInvalidIndex = -1; type TDynArrayTable = array[0..0] of T; TDynArrayTablePtr = ^TDynArrayT...
unit QGame.Resources; interface uses QuadEngine, QEngine.Font, QEngine.Texture; type TResource = class abstract strict protected FResourceTypeName: string; FResourceName: string; public constructor Create(const ATypeName, AName: string); property Name: string read FResourceNa...
// Author: Wayne Buchner // Student ID: 6643140 // Date: 03/04/2011 // Program: MyFriends.pas // Description: reads strings from a prompt into an array program MyFriends; uses SysUtils; type Address = record no: Integer; street: String; suburb: String; end; Friend = Record name, phone : String; age : Inte...
unit uModelMemorialDescritivo; interface type TMemorial = class private FCodigo : Double; FDescricao : string; FCodGrupo : Double; FDescricaoGrupo : string; FInativo : string; public property Codigo : Double read FCodigo write FCodigo; property Descricao : string read FDescricao write ...
{$MODESWITCH RESULT+} {$GOTO ON} (************************************************************************* Cephes Math Library Release 2.8: June, 2000 Copyright by Stephen L. Moshier Contributors: * Sergey Bochkanov (ALGLIB project). Translation from C to pseudocode. See subroutines comments for...
unit Services.Checkins; 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, FireDAC.Stan.Async, FireDAC.DApt, Data.DB, System.JSON, DataSet.Serialize, FireDAC.C...
// ************************************************************************ // This file implements library exports for the callee. // ------- // WARNING // ------- // This file was generated by PWIG. Do not edit. // File generated on 4.1.2017 17:40:15 unit testlib_callee; {$IFDEF FPC}{$MODE DELPHI}{$ENDIF}...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
unit frameBuscaComanda; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Comanda, StdCtrls, Buttons, Mask, RXToolEdit, RXCurrEdit, Pedido; type TBuscaComanda = class(TFrame) edtCodigo: TCurrencyEdit; btnBusca: TBitBtn; edtNumeroComanda: TEdit; b...
unit OAuth2.ResponseType.BearerTokenResponse; interface uses System.JSON, Web.HTTPApp, OAuth2.Contract.Entity.AccessToken, OAuth2.ResponseType.Abstract; type TOAuth2BearerTokenResponse = class(TOAuth2AbstractResponseType) private { private declarations } protected { protected declarations } ...
//Exercício; //Criar duas variáveis: Horas_aula; Mês_aula; Resultado_aula; //um aluno faz um curso de ingles e tem 4 aulas por Mês, cada aula; //tem 2 horas; //Quantas horas o aluno estuda inglês por mês?; //Usando o writeln mostrar o resultado da variavel resultado_aula; Program Aula06_Exer...
unit ExceptionWithInnerExceptionUnit; interface uses SysUtils; type TExceptionWithInnerException = class (Exception) protected FInnerException: Exception; function GetInnerException: Exception; procedure SetInnerException(AInnerException: Exception); public destructor Destroy;...
unit UFSettings; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; type TFSettings = class(TForm) LEE: TLabeledEdit; LERnd: TLabeledEdit; BSave: TButton; LEn: TLabeledEdit; LEm: TLabeledEdit; CBShow: TCheckBox; CBSho...
unit OAuth2.Grant.AbstractAuthorize; interface uses System.Net.HttpClient, System.Generics.Collections, OAuth2.Grant.AbstractGrant; type TAbstractAuthorizeGrant = class(TOAuth2AbstractGrant) private { private declarations } protected { protected declarations } public { public declarations ...
unit ScriptExpressionEngine; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ScriptEngine, uPSComponent; type TScriptExpressionEngine = class(TScriptEngine) private oldOnCompile: TPSEvent; procedure PSScriptCompile(Sender: TPSScript); function Ge...
unit UMonat; { Monatsanalyse: Betrachtet, an wie vielen Tagen im Statistikzeitraum mit der gleichen Position im Monat (Datum des Tages) ein Treffer gemeldet wurde. Dies gibt die Wahrscheinlichkeit im Monatsverlauf wieder. } {$mode objfpc}{$H+} interface uses DateUtils { Eigen }, UAspekt; type TMonat ...
unit Pospolite.View.CSS.StyleSheet; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Pospolite.View.Basics, Pospolite.View.HTML.Document, Pospolite.View.CSS.Declaration, Pospolite.View.CSS.Selector, Pospolite.View.CSS.MediaQuery; type TPLCSSStyleSheetPartKind = (sspSelector, sspRule, sspU...
PROGRAM Swap; PROCEDURE SwapReal(VAR a, b: REAL); VAR temporary_storage: REAL; BEGIN temporary_storage := a; a := b; b := temporary_storage; END; PROCEDURE SwapInt(VAR a, b: INTEGER); VAR temporary_storage: INTEGER; BEGIN temporary_storage := a; a := b; b := temporary_storage; END; BEGIN END.
unit StringBuilderUnit; interface const StringBuilderMemoryBlockLength = 1000; type PStringBuilderMemoryBlock = ^TStringBuilderMemoryBlock; TStringBuilderMemoryBlock = record Data: array[0..StringBuilderMemoryBlockLength - 1] of byte; Count: Cardinal; Next: PStringBuilderMemoryBlock; ...
program Ready; {$APPTYPE CONSOLE} const // количество дискет: KCount = 12; //в коробке YaCount = 144; //в ящике //Cтоимость: StD = 11.5; //одной дискеты StK = 114.5; //коробки дискет StYa = 1255; //ящика дискет var N, K, Ya: integer; Cost: Real; //стоимость n дискет, выгодная для покупки MaxSt,...
unit RepositorioConfiguracoesSistema; interface uses DB, Auditoria, Repositorio; type TRepositorioConfiguracoesSistema = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; ...
{ ********************************************************************* * * Autor: Efimov A.A. * E-mail: infocean@gmail.com * GitHub: https://github.com/AndrewEfimov * Change: 07.11.2019 * ******************************************************************** } unit uMain; interface uses S...
unit Parameters; interface uses ElbrusTypes; // Analog input function LoadAIGains : AnalogGains; procedure SaveAIGains( var Gains : AnalogGains ); function LoadAIFactors : AnalogVoltages; procedure SaveAIFactors( var Factors : AnalogVoltages ); function LoadAIRange( AI : AIRange ) : TAIRange; f...
unit UUADSiteArea; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, UUADUtils, UGlobals, UCell, UContainer, UEditor, UStatus, UUtil1, UForms; type TdlgUADSiteArea = class(TAdvancedForm) edtAcres: TEdit; lblAcres: TLabel; bbtnCle...
unit Main; interface uses {$IFDEF FPC} LCLIntf, LCLType, LMessages, {$ELSE} Windows, {$ENDIF} Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, KMemoFrm; type { TMainForm } TMainForm = class(TForm) procedure FormCreate(Sender: TObject); procedure Form...
unit IdTestCookie; interface uses IdTest, IdSys, IdCookie; type TIdTestNetscapeCookie = class(TIdTest) published procedure TestSubDomain; end; implementation procedure TIdTestNetscapeCookie.TestSubDomain; var aCookie:TIdNetscapeCookie; aSuccess:Boolean; begin aCookie:=T...
unit UPixelConvert; interface uses Graphics; type TEColorSpace = (csFullColor, csRGB, csCMYK, csHSI, csYIQ); TEColorChannel = (ccRed, ccGreen, ccBlue, ccCyan, ccMagenta, ccYellow, ccKeyColor, ccHue, ccSaturation, ccIntensity, ccY, ccI, ccQ); TRColorChannels = record case TEColorSpace of ...
PROGRAM SortMonth(INPUT, OUTPUT); {Сравнивает введенные значения месяцев} USES DateIO; BEGIN {SortMonth} VAR Temporary, Mo: Month; IF NOT EOLN THEN BEGIN ReadMonth(INPUT, Mo); IF NOT (Mo = NoMonth) THEN BEGIN Temporary := Mo; ReadMonth(INPUT, Mo); I...
unit AbstractFactory.View.Main; interface uses Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls; type TfrmMain = class(TForm) pnlTop: TPanel; mmResult: TMemo; btnGetResult: TButton; procedure btnG...
{***************************************************************************} { } { Delphi.Mocks } { } { ...
unit IdTestIOHandler; interface uses IdTest, IdIOHandler, IdObjs, IdStream, IdIntercept, IdExceptionCore, IdResourceStringsCore, IdGlobal, IdSys; type //reads and writes to its own inputbuffer, makes easy to test TIdLoopbackIOHandler = class(TIdIOHandler) protected fu...
unit MainFMX; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, FMX.ScrollBox, FMX.Memo; type TM...
program NoCarriageReturns; uses Crt; const FileNamePrompt = 'Filename : '; NewFileNamePrompt = 'New Filename : '; Blank: char = ' '; MaxChars = 16036; var Txt: file; Count: Word; C: char; X, Y, NumChars: integer; Ch: array[1..MaxChars] of ^char; FileName, NewFileName: string; pr...
unit i_LonLatRect; interface uses t_GeoTypes; type ILonLatRect = interface ['{B93137DE-5BA8-4A3E-885E-0976CE70199E}'] function GetLeft: Double; property Left: Double read GetLeft; function GetTop: Double; property Top: Double read GetTop; function GetRight: Double; prop...
unit dmConfigSistema; interface uses SysUtils, Classes, IBCustomDataSet, IBUpdateSQL, DB, IBQuery; type TConfigSistema = class(TDataModule) qSistema: TIBQuery; qSistemaOID_SISTEMA: TIntegerField; qSistemaSECCION: TIBStringField; qSistemaNOMBRE: TIBStringField; qSistemaVALOR: TMemoField; u...
unit UFolderItem; interface uses Windows,Sysutils,Classes,ShellAPI,ShlObj, ShellUtils,TreeItems; type TShellFolderEnvir = class private FShellFolder: TShellFolder; public property ShellFolder : TShellFolder read FShellFolder; constructor Create; destructor destroy; override; end; ...
unit ServiceModule; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs; type THelloServer = class(TService) procedure ServiceStart(Sender: TService; var Started: Boolean); procedure ServiceStop(Sender: TService; v...
{===============================================================================} { (c) 2010-2013 by Razzivin Alexandr } { kotyara12@yandex.ru } { 22.02.2013 ...
RSA encryption. The encryption key is: C = M to the power of e MOD n where C is the encrypted byte(s) M is the byte(s) to be encrypted n is the product of p and q p is a prime number ( theoretically 100 digits long ) q is a prime number (...
// ============================================================================= // Module name : $RCSfile: ConfigBase.pas,v $ // Description : This unit defines base class for configurations of measurement // device, product and so an. // Compiler : Delphi 2007 // Author : 2015-12-11 /bsu/ /...
namespace Moshine.UI.UIKit.Weather; uses CoreLocation, Moshine.Api.Weather, Moshine.Api.Weather.Models.WeatherUnderground, Moshine.UI.UIKit.Weather.Models, RemObjects.Elements.Linq, Realm.Realm; type LocationsCollectionDelegate = public block(locations:NSArray<Station>); ConditionsDeleg...
unit DIOTA.Utils.Constants; //This unit defines the global constants. interface const KEY_LENGTH = Integer(6561); //This String contains all possible characters of the tryte alphabet TRYTE_ALPHABET = '9ABCDEFGHIJKLMNOPQRSTUVWXYZ'; //The length of an IOTA seed SEED_LENGTH = Integer(81); //The length ...
unit TSTOFunctions; interface Uses Classes, HsInterfaceEx, TSTOProject.Xml, TSTOHackMasterList.IO; Type ITSTOItemLister = Interface(IInterfaceEx) ['{4B61686E-29A0-2112-BAA6-1CD0E7C8D5D4}'] Function ListXmlPackageFiles(Const AFileName : String; AResult : TStringList) : Boolean; OverLoad; Function ListXm...
unit main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, WinSock, ExtCtrls, mmsystem, Web.Win.Sockets, Vcl.Buttons; const cTelnetProtocol = '23'; cSSHProtocol = '22'; TLNT_EOR = #239; TLNT_SE = #240; TLNT_NOP = #241; ...
// создать ViewDataSetHolder на основе DataSetHolder unit AbstractDataSetHolder; interface uses DB, SysUtils, Classes, Variants; type TDataSetHolderFilterApplyingMode = (famDisableControls, famNotDisableControls); TDataSetHolderFilterResetMode = (frmEnableControls, frmNotEnableControls); TAbstractD...
/////////////////////////////////////////////////////////////////////////// // Project: CW // Program: beeperu.pas // Language: Object Pascal - Delphi ver 3.0 // Support: David Fahey // Date: 01Oct97 // Purpose: This code runs in a seperate thread and beeps the // PC speaker until the th...