text
stringlengths
14
6.51M
{$i deltics.unicode.inc} unit Deltics.Unicode.Transcode.CodepointToUtf8; interface uses Deltics.Unicode.Types; procedure _CodepointToUtf8(const aCodepoint: Codepoint; var aUtf8: PUtf8Char; var aMaxChars: Integer); implementation uses Deltics.Unicode; { - - - - - - - - - - - - - - - - - - -...
unit obsws; {$mode objfpc}{$H+} interface uses {$IFDEF UNIX}cthreads,{$ENDIF} Classes, SysUtils,log_core,wsutils,wsmessages,wsstream,ssockets,WebsocketsClient,fpjson, jsonparser, StdCtrls; type { treceiverthread } treceiverthread = class(TThread) private ws_com: TWebsocketCommunincator; protected ...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit AccountTitle; interface type TCostTypes = (ctNone,ctOperating,ctCapital); TAccountTitle = class private FName: string; FCode: string; FCostType: TCostTypes; public property Code: string read FCode write FCode; property Name: string read FName write FName; property CostType: TCost...
unit uToolZip; {$mode objfpc}{$H+} interface uses Classes, uBuildFile, processutils, sysutils, FileUtil, LazFileUtils; type TBuildToolZip = class(TBuildTool) function Execute(const aOrder: TStringList): Integer; override; end; implementation uses dynlibs; type TpfnCreateHardlinkW = function (lpFile...
{*******************************************************} { } { Delphi FireMonkey Platform } { } { Copyright(c) 2011 Embarcadero Technologies, Inc. } { ...
Unit MainForm; Interface Uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls; Type TMainFrm = Class (TForm) MainPanel: TPanel; DomainEdit: TEdit; UserEdit: TEdit; PasswordEdit: TEd...
// NIM/Nama : 16518189/M Mirza Fathan Al Arsyad // Tanggal : 22 Maret 2019 Program ProsesLingkaran; { Input: 2 buah Lingkaran } { Output: luas, keliling, dan hubungan lingkaran A dan B } { KAMUS } const PI : real = 3.1415; type { Definisi Type Koordinat } Koordinat = record ...
unit ImgFile; interface uses Graph; TYPE ImgData = ARRAY[0..$8888] OF BYTE; ImgRec = RECORD ImgPtr : ^ImgData; LastColor : BYTE; Location : WORD; RunCount : SHORTINT; InRepeat : BOOLEAN; END;...
unit uScsi; interface uses Windows, Sysutils; function GetSCSISerial(Drive: Char): String; implementation function GetDeviceHandle( sDeviceName : String ) : THandle; begin Result := CreateFile( PChar('\\.\'+sDeviceName), GENERIC_READ or GENERIC_WRITE, FILE_SHARE_READ or FILE_SHARE_WRITE, nil, OPEN_EXISTING, 0...
{ ID:asiapea1 PROG:kimbits LANG:PASCAL } program kimbits; const maxn=31; var f:array[0..maxn+1,0..maxn+1] of int64; i,j,n,l:longint; k:int64; procedure opf; begin assign(input,'kimbits.in'); reset(input); assign(output,'kimbits.out'); rewrite(output); end; procedure clf; begin close...
{*******************************************************} { } { Delphi FireMonkey Platform } { } { Copyright(c) 2012-2018 Embarcadero Technologies, Inc. } { All rights rese...
{**********************************************} { TAxisIncrement Dialog Editor } { Copyright (c) 1996-2004 David Berneda } {**********************************************} unit TeeAxisIncr; {$I TeeDefs.inc} interface uses {$IFNDEF LINUX} Windows, Messages, {$ENDIF} SysUtils, Cla...
unit ClassMHDclient; interface uses Classes, ScktComp, Controls, Konstanty; type TStatus = ( csNone, csConnecting, csSendingInfo, csAcceptingSession, csAcceptSession, csGettingFile, csFileOK, csFini...
{*******************************************************} { } { Delphi DataSnap Framework } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
{*******************************************************} { } { Delphi DBX Framework } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit clsTUsuario; interface uses System.SysUtils, System.Classes, System.JSON, REST.JSON, DBXJSON, DBXJSONReflect; type TUsuarioDTO = class(TPersistent) private FNasc: TDateTime; FNome: String; FID: Integer; FEmail: String; FAlterado: Boolean; procedure Set...
unit FizzBuzzExamples; interface procedure FizzBuzzExample1; procedure FizzBuzzExample2; procedure FizzBuzzExample3(const pFizz, pBuzz:Integer; const pRangeStart, pRangeEnd:Integer); procedure FizzBuzzExample4(const pFizz, pBuzz:Integer; const pRangeStart, pRangeEnd:Integer); procedure FizzBuzzExample_UseCase; proced...
unit GameType; interface uses Windows; type TGameRec = record UpdateTime, RenderTime: Real; end; PRect = ^TRect; TRect = packed record case Integer of 0: (Left, Top, Right, Bottom: Longint); 1: (TopLeft, BottomRight: TPoint); end; TRGB = record R, G, B: Byte; end; TRGBA = r...
unit Demo.CoffeMachine; interface uses Classes, Rtti; procedure ExecuteDemoCoffeeMachine; implementation uses Delphi.Mocks, Model.CoffeMachine; type TDemoCoffeeMachine = class class var fCoffeeMachine: TCoffeeMachine; class procedure S01_BasicSample; class procedure S02_Veryfication; end; ...
unit ContextM; interface uses Windows, ActiveX, ComObj, ShlObj, Dialogs; type TContextMenu = class(TComObject, IShellExtInit, IContextMenu) private FFileName: array[0..MAX_PATH] of Char; protected { IShellExtInit } function IShellExtInit.Initialize = SEIInitialize; // Avoid compiler warning f...
unit Hilighter; interface uses Windows, KOL, KOLHilightEdit; type THilightStyle = (hsDefault, hsKeyword, hsPreprocessor, hsComment, hsString, hsNumber); THilightStyles = array[THilightStyle] of TTokenAttrs; PCHilighter=^TCHilighter; TCHilighter = object(TObj) private FStyles: THilightSty...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit PwdDataFrm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TPwdDataFormData = record Password: string; Note: string; end; TPwdDataForm = class(TForm) GroupBox1: TGroupBox; NoteMemo: TMemo; GroupBox2: TGroupBox; PasswordE...
program divsumts; {Программа проверяет правильность ответа на задачу divsum} Const nmax = 10000; Type list = array[1..nmax] of integer; Var a : list; b : integer; {число из файла с результатами теста} n : integer; {количество чисел в исходном файле} k : integer; {количество чисел в файле с результатам...
{ Copyright (C) 2007 Laurent Jacques This source is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This code is distributed in t...
{----------------------------------------------------------------------------- The contents of this file are subject to the GNU General Public 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.gnu.org/copyleft/gpl...
unit ncaFrmConfigPosVenda; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ncaFrmBaseOpcaoImgTxtCheckBox, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, Menus, StdCtrls, cxRadioGroup, cxButtons, cxLabel, cxCheckBox, PngIma...
unit UGameDataBase; interface uses Windows,Classes,SyncObjs; const C_WORLD_DATA = 2000; C_ITEM_DATA = 2001; C_HERO_DATA = 2002; C_ACT_DATA_DEL = 10; C_ACT_DATA_SUCC = 20; C_ACT_DATA_ERR = 30; type FActionItemCallBack = function (ItemIndex:Integer;pNode:Pointer):Int...
{*************************************************************** * * Project : Proxy * Unit Name: Main * Purpose : Demonstrates using mapped port component to create a simple proxy server * Version : 1.0 * Date : Wed 25 Apr 2001 - 01:54:50 * Author : <unknown> * History : * Tested : Wed 25 Apr 2001 /...
unit IdIntercept; interface uses Classes, IdBaseComponent, IdSocketHandle; type TIdConnectionIntercept = class(TIdBaseComponent) protected FBinding: TIdSocketHandle; FOnConnect: TNotifyEvent; FRecvHandling: Boolean; FSendHandling: Boolean; FIsClient: Boolean; public procedure Connec...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC ADO Local SQL adapter } { } { Copyright(c) 2004-2018 Embar...
{$MODE OBJFPC} program MaxNumber; const InputFile = 'NUMBER.INP'; OutputFile = 'NUMBER.OUT'; max = 1001; type TStr = AnsiString; TLine = array[0..max] of TStr; PLine = ^TLine; var a, b: TStr; m, n: Integer; L1, L2: TLine; Current, Next: PLine; procedure Enter; var f: TextFile; ...
{*******************************************************} { } { Delphi DataSnap Framework } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
//Written for TU Berlin //Compiled with fpc Program yingyang; Uses Math; const scale_x=2; scale_y=1; black='#'; white='.'; clear=' '; function inCircle(centre_x:Integer;centre_y:Integer;radius:Integer;x:Integer;y:Integer):Boolean ; begin inCircle:=power(x-centre_x,2)+power(y-centre_y,2)<=power(radius,2); end; fu...
unit UnitFormMain; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Menus, Psock, NMFtp, ComCtrls, Grids, Outline, FileCtrl, StdCtrls; type PPath = ^TPath; TPath = string; TFormMain = class(TForm) MainMenu: TMainMenu; MainConnect: TMenuItem; NMFTP: TNMFT...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC SQL Server driver } { } { Copyright(c) 2004-2018 Embar...
{ DStun Description: A delphi librry for stun(rfc3489). License: 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/ Conta...
Unit Cutters; Interface Uses Objects, Crt, SndObj; Var CutterUP_OPEN : Format; CutterUP_CLOSE : Format; CutterDOWN_OPEN : Format; CutterDOWN_CLOSE : Format; CutterLEFT_CLOSE : Format; CutterLEFT_OPEN : Format; CutterRIGHT_CLOSE : Format; CutterRIGHT_OPEN : Format; ...
unit AAlteraEstagioCotacao; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, Componentes1, ExtCtrls, PainelGradiente, StdCtrls, Buttons, Localizacao, UnCotacao, DBKeyViolation; type TFAlteraEstagioCotacao = class(TFormularioPermissao) Painel...
{*******************************************************} { } { Delphi DBX Framework } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit LuaProperties; interface Uses Dialogs, Forms, Graphics, Classes, Controls, StdCtrls, TypInfo, LuaPas, Lua; function LuaListProperties(L: Plua_State): Integer; cdecl; function LuaGetProperty(L: Plua_State): Integer; cdecl; function LuaSetProperty(L: Plua_State): Integer; cdecl; function SetPropertiesFromLuaTabl...
unit UMain; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Menus, ExtCtrls, StdCtrls, Buttons, ComCtrls, Grids, Spin, UVisualTools, UTransformation, URTTI, Math, UFigures, UEdits, UGraph, USaveLoadToLPF, UEditsStatic, UAbout; { TVectorEditMainForm } type TVectorEd...
unit WinPropEditor; {$mode objfpc}{$H+} interface uses Forms, Controls, PropEdits, ObjectInspector; type { TWndPropEditor } TWndPropEditor = class(TForm) procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); procedure FormCreate(Sender: TObject); private FObject...
{*******************************************************} { } { Delphi DBX Framework } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
{**********************************************} { TeeChart Gallery Dialog } { Copyright (c) 1996-2004 by David Berneda } {**********************************************} unit TeeGally; {$I TeeDefs.inc} interface uses {$IFNDEF LINUX} Windows, Messages, {$ENDIF} {$IFDEF CLX} ...
unit ncDMCaixa; { ResourceString: Dario 12/03/13 } interface uses SysUtils, Classes, DB, nxdb, kbmMemTable, nxllTransport, nxptBasePooledTransport, nxtwWinsockTransport, nxsdServerEngine, nxreRemoteServerEngine, nxllComponent, frxClass, frxDBSet, frxExportPDF, uLogs, uNexTransResourceStrings_PT; type ...
{------------------------------------------------------------------------------- // EasyComponents For Delphi 7 // 一轩软研第三方开发包 // @Copyright 2010 hehf // ----------------------------...
unit CPRSLibTestCases; interface uses TestFramework, ORFn, SysUtils, Classes, Types; type TORFnTestCase = class(TTestCase) published // Test Date/Time functions procedure TestDateTimeToFMDateTime; procedure TestFMDateTimeOffsetBy; procedure TestFMDateTimeToDateTime; procedure TestFormatFMDat...
unit FC.Trade.FilterDialog; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ufmDialogOKCancel_B, ActnList, StdCtrls, ExtendControls, ExtCtrls, JvExControls, JvComponent, JvEditorCommon, JvEditor, JvHLEditor, RecentlyList, Menus, ActnPopup, Buttons, PlatformDe...
unit IdIcmpClient; interface uses Classes, IdGlobal, IdRawBase, IdRawClient, IdStack, IdStackConsts, SysUtils; const DEF_PACKET_SIZE = 32; MAX_PACKET_SIZE = 1024; ICMP_MIN = 8; const iDEFAULTPACKETSIZE = 128; iDEFAULTREPLYBUFSIZE = 1024; const Id_TIDICMP_ReceiveTimeout = 5000; type TRep...
unit eSocial.Models.DAO.Operacao; interface uses Data.DB, System.Generics.Collections, eSocial.Models.DAO.Interfaces, eSocial.Models.ComplexTypes, eSocial.Models.Entities.Operacao, eSocial.Models.Components.Connections.Interfaces, eSocial.Models.Components.Connections.Factory; type TMod...
unit Kafka.Interfaces; interface uses System.SysUtils, Kafka.Lib; type IKafkaInterface = interface ['{B2F30971-1971-45D7-8694-7C946E5D91E8}'] end; IKafkaProducer = interface(IKafkaInterface) ['{DCED73C8-0F12-4E82-876C-ACF90940D2C2}'] function GetProducedCount: Int64; function GetKafkaHand...
unit State; interface type TWork = class; //工作状态基类 TState = class public procedure WriteProgram(W: TWork); virtual; abstract; end; //上午工作状态 TForenoonState = class(TState) public procedure WriteProgram(W: TWork); override; end; //中午工作状态 TNoonState = class(TState) public procedure...
unit BrickCamp.Repositories.IUser; interface uses System.JSON, BrickCamp.Model.TUser; type IUserRepository = interface(IInterface) ['{9477B244-BFF7-4FBB-86EA-AC6ADAB82833}'] function GetOne(const Id: Integer): TUser; function GetOneByName(const Name: string): TUser; function GetList: TJSONArray...
unit untEasyDBToolObject; interface uses Classes; type TEasyDataBase = class private FName, Fdbid, Fsid, Fcrdate, Ffilename, Fversion : string; public property Name: string read FName write FName; property dbid: string read Fdbid write Fdbid; property si...
unit FIToolkit.CommandLine.Consts; interface uses FIToolkit.Localization; const { Command-line option } STR_CLI_OPTION_PREFIX = '--'; STR_CLI_OPTION_DELIMITER = '='; STR_CLI_OPTIONS_DELIMITER = ' '; { Supported command-line options } STR_CLI_OPTION_GENERATE_CONFIG = 'generate-config'; STR_CLI_OP...
unit SoccerTests.RuleChooserTests; interface uses System.SysUtils, System.Generics.Collections, DUnitX.TestFramework, Soccer.Exceptions, Soccer.Voting.AbstractRule, Soccer.Voting.Preferences, Soccer.Voting.RulePreferenceList, Soccer.Voting.RuleChooser; type [TestFixture] TRuleChooserTests = c...
unit ClassTree; interface const IS_WORD_FLAG = 32; LAST_FLAG = 64; HAS_CHILD_FLAG = 128; type TTree = class public FData : char; FWord : boolean; FLeaves : array of TTree; constructor Create( Data : char; Word : boolean ); destructor Destroy; override;...
unit DecoratorAdicionais; interface uses Bebida, System.SysUtils; type TAdicionais = class(TBebida) public FBebida : TBebida; function GetDescricao: String; override; function Custo: Currency; override; constructor Create(Bebida : TBebida); destructor Destroy; override; end; implementati...
{ Invokable implementation File for TClientsTalking which implements IClientsTalking } unit uClientsTalkingImpl; interface uses Soap.InvokeRegistry, System.Types, Soap.XSBuiltIns, Soap.encddecd, System.IOUtils, FMX.Dialogs, FMX.Forms, Classes, SysUtils, System.UITypes, System.Variants, FMX.Graphics, D...
unit uWebBrowser; interface uses SysUtils, Forms, Graphics, Windows, Classes, ShDocVw, MSHTML, ActiveX, IntfDocHostUIHandler, UContainer; function doURLEncode(const S: string; const InQueryString: Boolean = true): string; function ColorToHTML(const Color: TColor): string; type TOnGetExternalProc = function(...
{ ****************************************************************************** } { * Audio Fingerprint * } { * written by QQ 600585@qq.com * } { * https://zpascal.net ...
{ ********************************************************************** } { } { Delphi and Kylix Cross-Platform Visual Component Library } { Component and Property Editor Source } { ...
unit ServData; { This Datamodule is the CoClass for the IEmpServer interface. It was created using the File | New | Remote Data Module menu option } interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ComServ, ComObj, VCLCom, StdVcl, DataBkr, Provider, Db, DBTables, Serv...
program formato; uses unitmsc2; const MAX_PALABRA=40; MAX_TEXTO=132; type texto_palabra=array[1..MAX_PALABRA] of char; texto_linea=array[1..MAX_TEXTO] of char; palabra=record pal:texto_palabra; tamano:integer; finparrafo:boolean; end; linea=record lin:texto_linea; ...
unit DBServerClientUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DBXpress, DB, SqlExpr, FMTBcd, SOAPLinked, InvokeRegistry, StdCtrls, DBClient, Grids, DBGrids, DBCtrls, XSBuiltIns, SoapDBServerUnit, ExtCtrls; type TClientForm = class(TForm) Ed...
unit AccountingAuxData; interface uses System.SysUtils, System.Classes, Data.DB, Data.Win.ADODB; type TdmAccountingAux = class(TDataModule) dstAccountClass: TADODataSet; dscAccountClass: TDataSource; dstLineItems: TADODataSet; dscLineItems: TDataSource; dstAccountTitles: TADODataSet; dscA...
unit uMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Generics.Collections, Vcl.StdCtrls; type TCity = record State: String; Country: String; Name: String; end; TfmMain = class(TForm) ...
unit Code02.Ongakw.Czas_Zmiana; interface uses System.SysUtils; type THistoria_Zapytan_r_wsk = ^THistoria_Zapytan_r; THistoria_Zapytan_r = record rok : word; czas__zmiana, czas__zmiana__koniec__ustawione, czas__zmiana__poczatek__ustawione, czas__zmiana__ustawione : boolean; cz...
{A benchmark demonstrating that never downsizing memory blocks can lead to problems.} unit DownsizeTestUnit; interface uses BenchmarkClassUnit, Math; type TDownsizeTest = class(TFastcodeMMBenchmark) protected FStrings: array of string; public procedure RunBenchmark; override; class function GetB...
unit uObjectPanel; interface uses Forms, Graphics, Math, Windows, SysUtils, Types, uObjectFeature, uObjectFeatureList, uFeaCombo, uMyTypes, uConfig, Classes, uOtherObjects, uObjectCombo, uObjectComboList, IniFiles, StrUtils, uObjectGuideList; type TPanelObject = class(TObject) private objID: integer; ...
unit UnitAMapWebAPI; interface uses System.SysUtils, System.Classes, IPPeerClient, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client, REST.Response.Adapter, REST.Client, Data.Bind.C...
{**********************************************} { TMyPointSeries } { TBarJoinSeries } { Copyright (c) 1997-2004 by David Berneda } {**********************************************} unit MyPoint; {$I TeeDefs.inc} interface Uses {$IFNDEF LINUX} Window...
unit fMyDate; interface type TMyDate = class private fDate: string[4]; fMonth: byte; fYear: smallInt; function DoConvert: string; function SwitchYearMonth(ADate: string): string; public constructor Create; function Convert(Month: Byte; Year: smallInt): string; function SetDate(Mon...
unit g_hud; interface uses OpenGL, Windows, u_winapi, u_math, g_class_gameobject, g_game_objects, Textures, u_consts, u_opengl, u_utils; type THudCursor = class (TGameObject) procedure Move; override; procedure Render; override; procedure DoCollision(Vector : TGamePos; CoObject : TObject); override; ...
Unit UnAtualizacao; interface Uses Classes, DbTables,SysUtils; Const CT_VersaoBanco = 353; CT_VersaoInvalida = 'SISTEMA DESATUALIZADO!!! Este sistema já possui novas versões, essa versão pode não funcionar corretamente, para o bom funcionamento do mesmo é necessário fazer atualização...' ; CT_Senha...
unit uLocalization; interface uses Windows, Dialogs, Forms, IniFiles, SysUtils; function LongFileName(ShortName: String): String; function GetCurrentLocaleID: LCID; function LoadNewResourceModules(ALocaleId: LCId): Longint; function GetLocaleNameById(LocaleId: LCID): String; //! Возможно не поддерживаетс...
{$mode objfpc}{$H+}{$J-} {$R+} program snakeProgram; uses ncurses, sysutils; const SNAKE_CHAR = 'X'; FOOD_CHAR = 'O'; type TPos = array [ 0..1 ] of integer; snakeArray = array of TPos; TDir = (drUp, drRight, drDown, drLeft); operator = (pos1, pos2 : TPos) b : boolean; begin Result := (pos...
unit HKSqlStringGrid; {$mode objfpc}{$H+} interface uses Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Grids, ZDataset; type { THKSqlStringGrid } TOnWriteCell=Procedure(aSender:TObject; aFieldName, aValue:String; var aResult:String) of object; THKSqlStringGrid = class(TStringGrid) ...
unit rhlELF; interface uses rhlCore; type { TrhlELF } TrhlELF = class(TrhlHash) private m_hash: DWord; protected procedure UpdateBytes(const ABuffer; ASize: LongWord); override; public constructor Create; override; procedure Init; override; procedure Final(var ADi...
unit Auxiliary; interface uses Graphics; function ColorNameToColor(AString: String): TColor; function ColorToColorName(AColor: TColor): String; implementation type TPair = record N: String; C: TColor; end; const ColorTable: array[0..15] of TPair = ( (N: 'clAqua' ; C: c...
Program BalancedParentheses; const MAX = 100; var arr : Array[1..MAX] of boolean; { 0 = '(' 1 = ')' } length : integer; pairs : integer; procedure print(); var i : integer; begin for i := 1 to pairs*2 do if arr[i] then write(')') else write('('); writeln(); end; procedure recc(op...
{***********************************<_INFO>************************************} { <Проект> Медиа-сервер } { } { <Область> 16:Медиа-контроль ...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC physical layer base classes } { } { Copyright(c) 2004-2018 Embar...
unit rhlSHA256Base; interface uses rhlCore, sysutils; type { TrhlSHA256Base } TrhlSHA256Base = class abstract(TrhlHash) private const s_K: array[0..63] of DWord = ( $428a2f98, $71374491, $b5c0fbcf, $e9b5dba5, $3956c25b, $59f111f1, $923f82a4, $ab1c5ed5, $d807aa98, $12835b01, $...
{ *************************************************************************** } { } { Kylix and Delphi Cross-Platform Visual Component Library } { Internet Application Runtime } ...
unit DeleteFileOnCloseUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; type TDeleteFilesOnCloseForm = class(TForm) DeleteFilesLabel: TLabel; DeleteFileTimer: TTimer; procedure FormCreate(Sender: TObject); procedure DeleteFileTime...
{**********************************************************} { } { This unit is a sample of custom encryption algothrim. } { As a sample, the algorithm is very simple . } { } {*************...
{*******************************************************} { } { Delphi LiveBindings Framework } { } { Copyright(c) 2011 Embarcadero Technologies, Inc. } { ...
unit Frmviews; interface uses SysUtils, Windows, Messages, Classes, Graphics, Controls, StdCtrls, Forms, DBCtrls, DB, DBGrids, Buttons, DBTables, Grids, ExtCtrls; type TFrmViewDemo = class(TForm) DBGrid1: TDBGrid; DBNavigator: TDBNavigator; Panel1: TPanel; VaryingTableSource: TDataSource; P...
(* Name: kpuninstallfont Copyright: Copyright (C) SIL International. Documentation: Description: Create Date: 14 Sep 2006 Modified Date: 3 Feb 2015 Authors: mcdurdin Related Files: Dependencies: Bugs: Todo: Notes:...
unit Component.SSDLabel; interface uses Classes, Controls, SysUtils, Windows, StdCtrls, MeasureUnit.DataSize, Getter.PhysicalDrive.PartitionList, Device.PhysicalDrive; type TSSDLabel = class(TLabel) private type TPartitionPosition = (First, Last, Mid); procedure AppendCurrentPartitionToCaption(...
unit Points; interface type float = single; Point = record case boolean of true: (x,y,z:float); false: (c: array [0..2] of float) end; function ToPoint (x,y,z: float): Point; function Dot (const p1,p2: Point): float; function Cross (const p1,p2: Point): Point; function Volume (const p1,p2,p3: ...
//////////////////////////////////////////////////////////////////////////////// /// /// /// MAP FILE PARSER UNIT /// /// ...
unit plugin.ImportMapData; interface uses plugin,infra.Classes,infra.Geometry,infra.Peds,infra.Types,infra.Trackage,Forms,uGeodata, Generics.Collections,infra.Manipulation, EuklidMath,infra.E2Visualizer,plugin.Peds; type TPluginImportMapData = class(TEditorPlugin) strict private FImportMapData : TFr...
UNIT Animation; {$MODE Delphi} INTERFACE TYPE TAnimation = CLASS PUBLIC CONSTRUCTOR create(_offset, _frames, _duration : INTEGER; _loops : BOOLEAN); PROCEDURE advance(); FUNCTION start() : TAnimation; FUNCTION resume(other : TAnimation) : TAnimation; FUNCTION isOver() : BOOLEAN; FUNCTION getSpriteId(...
unit UServerMethods; interface uses SysUtils, Classes, DSServer, WideStrings, ADODB, DB, Provider, DBClient, IniFiles, Variants; type TServerMethods = class(TDSServerModule) dspPublic: TDataSetProvider; ConMain: TADOConnection; QryPublic: TADOQuery; QryExecute: TADOQuery; proc...
//==============================================================// // ParserTuanYon // //--------------------------------------------------------------// // Unit yang menangani parsing tipe data untuk unit-unit lain // //==============================================...
unit ProducersGroupUnit2; interface uses QueryGroupUnit2, System.Classes, NotifyEvents, ProducersQuery, ProducerTypesQuery, System.Generics.Collections, ProducersExcelDataModule; resourcestring // Категория производителей которые добавляются на склад в ручную или из Excel Файла sWareHouseDefaultProducerType ...