text
stringlengths
14
6.51M
unit un_DBFuncoesFD; {$MODE Delphi} interface uses FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.VCLUI.Wait, FireDAC.Phys.FBDef, FireDAC.Phys.IBBase, FireDAC.Phys.FB, Data.DB, Fire...
unit ChooseLayers; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, RzLstBox, RzChkLst, AnePIE; type TfrmChooseLayer = class(TForm) rzclLayerNames: TRzCheckList; Panel1: TPanel; BitBtn1: TBitBtn; BitBtn2: TBitBtn; edParamN...
(* ************************************************ *) (* *) (* 修改:爱吃猪头肉 & Flying Wang 2015-04-24 *) (* 上面的版权声明请不要移除。 *) (* *) (* 禁止发布到城通网盘。 *) (* *) (* ************************************************ *) unit FlyUtils.CnXXX.Common; interface uses System.SysUtils, System.Classes; type TProcessProc = procedure...
unit TicTacToe_RandomPlayerUnit; interface uses TicTacToe_BasePlayerUnit, TicTacToe_GameUnit; type TRandomPlayer = class(TBasePlayer) public class constructor Create; function PlayBestMove(const game: TGame): Boolean; override; end; implementation uses TicTacToe_SquareArraysUn...
{$include opts.inc} {$if not defined(selftest) and not defined(is_test)} {$error Используй дефайн selftest.} {$endif} unit Tests; interface uses USystem, Errors, UMath, Utils, Human {$ifdef use_console}, ConUtils {$endif}; type TestSuite = object type TestProcKind = (TestString2String, TestStr...
unit Convert; interface uses SysUtils; Const QuoiEntier = 'Dinar algeriens'; Const QuoiDecimales = 'Ct'; // 'Centime'; var Txt, PartieEntiere, PartieDecimale, TxtEntier: String; TxtUnites: array [0 .. 19] of String = ( '', 'un', 'deux', 'trois', 'quatre', 'cin...
unit ComputerEditUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ADODB, DB; type TfrmComputerEdit = class(TForm) GroupBox1: TGroupBox; Label1: TLabel; edtComputerName: TEdit; Label2: TLabel; edtIp: TEdit; ...
{ ************************************* Created by Danilo Lucas Github - https://github.com/dliocode ************************************* } unit Sanitizer.NormalizeEmail; interface uses DataValidator.ItemBase.Sanitizer, System.SysUtils; type TSanitizerNormalizeEmail = class(TDataValidatorItemBaseSani...
program TestDrive(input, output); { * Several tests on procedures and functions * trying to get catch the diffs between C and Pascal * * } // Tooo complcated: // Generate the Name of the User from given Input // 1. Name FUNCTION getSirName (name:string):string; var c : char; flag : integer; j, k : integ...
unit PXL.Textures.GLES; { This file is part of Asphyre Framework, also known as Pascal eXtended Library (PXL). Copyright (c) 2000 - 2015 Yuriy Kotsarenko This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free So...
(******************************************************************************* B E S E N ******************************************************************************** Version: See at line in BESENVersionConstants.pas, which contains "BESENVersion" --------------------------...
{***********UNITE************************************************* Auteur ...... : Créé le ...... : 29/06/2007 Modifié le ... : / / Description .. : Source TOF de la FICHE : BTPAREDCONS () Mots clefs ... : TOF;BTPAREDCONS *****************************************************************} Unit BTPAREDCONS_TOF ; In...
unit MatrixAlg; interface uses ComplexAlg; type Matrix = Record Body: Array[0..20, 0..20] of extended; Comp: Array[0..20, 0..20] of Complex; X: integer; //X size = Col count Y: integer; //Y size = Row count end; function ComplAlgExt (M: Matrix; Row, Col: integer): Complex...
unit ForgottenSaga.Scenes; interface {$I Include.inc} uses Classes, Graphics; {$REGION ' TStages '} type TStageEnum = (stGame, stMainMenu, stGameMenu, stRaceMenu, stNameMenu, stTextMenu, stSaveMenu, stLoadMenu, stBattle, stDefeat, stVictory, stDialog, stQuestLog, stQuestInfo, stAboutMenu, s...
program hello; begin writeln('hello') end.
unit Controller.Banco; interface uses Horse, System.JSON, System.SysUtils; procedure RegisterBanco; procedure List(Req: THorseRequest; Res: THorseResponse; Next: TProc); procedure Find(Req: THorseRequest; Res: THorseResponse; Next: TProc); procedure Insert(Req: THorseRequest; Res: THorseResponse; Next: TPr...
unit RepositorioClassificacaoFiscal; interface uses DB, Auditoria, Repositorio; type TRepositorioClassificacaoFiscal = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; f...
unit Posix.ffmpeg.libavutil.mem; (* * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either...
unit Shapes.Implementor.GUI; interface uses System.Types, Vcl.Graphics, Shapes.Implementor; type TPainterGUI = class(TPainter) strict private FCanvas: TCanvas; public constructor Create(canvas: TCanvas); procedure DrawRectangle(bounds: TRect); override; procedure DrawTriangle(bounds: TRec...
unit UserSectorMenuUI; //////////////////////////////////////////////////////////////////////////////// // // Description: UserSectorMenuUI // Author: lksoulman // Date: 2018-1-22 // Comments: // //////////////////////////////////////////////////////////////////////////////// interface uses Windows, ...
unit Interval; interface uses TypesConsts, SkyLists; type TInterval = record private function ValidFromCompareValue: Double; inline; function ValidUntilCompareValue: Double; inline; public ValidFrom: TDateTime; ValidUntil: TDateTime; class function Init(AValidFrom, AValid...
unit Cfg; //////////////////////////////////////////////////////////////////////////////// // // Description£º Cfg Interface // Author£º lksoulman // Date£º 2017-7-24 // Comments£º // //////////////////////////////////////////////////////////////////////////////// interface uses WebCfg, SysCfg, Win...
unit DriverListUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, GridsEh, DBGridEh, DB, ADODB, ComCtrls, Menus; type TfrmDriverList = class(TForm) DBGridEh1: TDBGridEh; Panel1: TPanel; Query: TADOQuery; L...
unit PXL.Archives.Loading; { This file is part of Asphyre Framework, also known as Pascal eXtended Library (PXL). Copyright (c) 2000 - 2015 Yuriy Kotsarenko This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free...
unit PXL.Events; { This file is part of Asphyre Framework, also known as Pascal eXtended Library (PXL). Copyright (c) 2000 - 2015 Yuriy Kotsarenko This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software ...
{######################################################} {### (c) Computer Stars Software, 2012 ###} {### RVer v2.0a ###} {### Unit version 2.0a ###} {### Version info utility ###} {##################################...
unit DW.Androidapi.JNI.AndroidX.Content; {*******************************************************} { } { Kastri } { } { Delphi Worlds Cross-Platform L...
{******************************************************************************* 作者: dmzn@163.com 2009-6-28 描述: 玻璃透明效果 *******************************************************************************} unit UTransGlass; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialo...
unit MFMOCSorbGrowth; interface {MFMOCSorbGrowth defines the "Sorbed Zero Order Growth Rate Unit[i]" layer and the associated parameter and Parameterlist.} uses ANE_LayerUnit, SysUtils, MFGenParam; type TMOCSorbGrowthParam = class(TCustomUnitParameter) class Function ANE_ParamName : string ; override; fu...
unit deadlock1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, System.Threading, System.SyncObjs; type TSharedData = class Counter: int64; LockCounter: TCriticalSection; ...
{******************************************************************************* 作者: dmzn@ylsoft.com 2007-08-04 描述: 实现组件与字符串的相互转换 备注: &.NewControlByType 该函数会依据类名生成一个控件,并将它显示在父容器上.控件的属性由nValue字符串 指定.需要注意的是,nName参数用于在nOwner中搜索是否有名称已存在的控件,但无法保 正同一个窗体中是否有该名称的控件.假若nOwner=Application,nParent=Form1,可能...
unit CPort.Types; interface uses System.SysUtils, System.Classes, System.Generics.Collections; type T7bByte = class; TComDataBuffer = class(TList<byte>) private FLittleEndianMode: Boolean; FAs7bits: T7bByte; procedure DecodeParamString(var str: string; List: TComDataBuffer); procedure EncodePa...
{ $HDR$} {**********************************************************************} { Unit archived using Team Coherence } { Team Coherence is Copyright 2002 by Quality Software Components } { } { For further infor...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Calculator, ExtCtrls, Menus; type TForm1 = class(TForm) Edit1: TEdit; Edit2: TEdit; Button_plus: TButton; Button_multiply: TButton; Button_minus: TButton; ...
unit ssgs; interface uses projectdata; type TDecideFunc = function(const dset: JobData): Integer; TSSGS = class class function ResourceFeasible(const resRemaining, z: ResourceProfile; j, stj: Integer): Boolean; overload; class function ResourceFeasible(const sts: JobData; const z: ResourcePro...
unit db.LoginForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, System.ImageList, System.IniFiles, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ImgList, Data.db, Data.Win.ADODB, db.uCommon; type TfrmLogin = class(TForm) lbl1: TLabel; lbl2: TLa...
unit StoryObject; {$mode objfpc}{$H+} interface uses Entity, EntityList; type { TStoryObject } TStoryObject = class(TEntity) private FBody: string; FCanOverwrite: Boolean; FCategoryId: Integer; FMySqlId: Integer; FProtos: TEntityList; FQA: TEntityList; FSente...
unit uAnalyzerBot; interface uses Classes, uVTHttpWrapper, HttpProt; type PResult = ^TResult; TResult = record IP, Gateway, Level, Anonymous, HTTP, HTTPS: string; end; // TJudgement will make it easy to increase our statistics and ImageIndex TJudgement = (judGo...
unit db.DBConfig; interface uses Winapi.Windows, System.SysUtils, System.StrUtils, System.Classes, System.IniFiles, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.WinXCtrls, Vcl.ComCtrls, Data.Win.ADOConEd, Data.Win.ADODB, db.uCommon; type TDBConfig = class(TForm) btnSave: TButton; ...
unit uTesteSpSelect; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, DB, DBClient, DBGrids, ComCtrls, SConnect, Menus, Grids; type TfTesteSpSelect = class(TForm) PageControl: TPageControl; TabSheetParametros: TTabSheet; TabSheetDados: TT...
unit DiscountStore; interface uses Discounts; type TDiscountType = (BASIC = 7, SILVER = 8, GOLD = 9); type TDiscountDescription = class(TObject) private key: TDiscountType; content: IDiscount; public procedure setKey(key: TDiscountType); procedure setContent(discount: IDiscount)...
unit ProcSubClassing; interface uses Windows, Messages; Function EditNameProc(hWdEdit: HWND; uiMsgEdit: UInt; wPrEdit: WParam; lPrEdit: LParam): LRESULT; stdcall; Function EditSerialProc(hWdEdit: HWND; uiMsgEdit: UInt; wPrEdit: WParam; lPrEdit: LParam): LRESULT; stdcall; Function BtnGenProc(hWdBtn: HWND; uiMsgBtn: U...
unit CommonLog; interface uses LogManagerUnit, RootLoggerUnit, LoggerUnit, DefaultOutputLogWriterUnit, DefaultTextLogMessageFormatterUnit; procedure StartupGlobalLog; function GetGlobalLog: TLogger; inline; function GetGlobalRootLog: TRootLogger; inline; procedure ShutdownGlobalLog; im...
// // Convert a string to name case, e.g. my name -> My Name // Author: Colin J.D. Stewart // Usage: toNameCase( 'my name' ); // function toNameCase(const input: string): string; var i: Integer; b: boolean; begin b := true; Result := input; for i := 1 to Length(Result) do begin if b = true then begin ...
unit Trekktabeller.Fradrag; interface uses Trekktabeller.Konstanter, Trekktabeller.Utils, Trekktabeller.Tabellnummer, Trekktabeller.Tabelltype; type TFradrag = class(TObject) private FKonstanter:TKonstanter; function beregnMinstefradragVanlig(personInntektAar:integer):integer; function beregnMinstefradragPen...
unit DW.MuteCheck.iOS; {*******************************************************} { } { Kastri } { } { Delphi Worlds Cross-Platform Library } ...
unit uFormController; interface uses SysUtils, Classes, Dialogs, Forms, Controls; type TFormClass = class of TForm; TFormController = class FApp: TObject; FForm: TForm; protected procedure AfterFormCreated; virtual; abstract; public property App: TObject read FApp; property Form: TForm...
Unit FuncUnit; Interface Uses WinAPI.Windows, System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, IDHTTP, FMX.Memo, ShellAPI; Function SecToMin(S: String): String; Procedure CheckLabels(Status, Plays, Traffic, Time: String); Implementation Uses MainUnit; Function SecToMin(S: St...
unit WinService; interface uses System.Classes, Winapi.Windows, Winapi.Messages, Winapi.WinSvc, System.SysUtils; type TServiceStatus = SERVICE_STATUS; Handle = Cardinal; function OpenServiceManager: Handle; function IsInstalled(const ServiceName: string): Boolean; function Start(const ServiceName: st...
unit ISO8601Unit; // http://www.iso.org/iso/date_and_time_format // http://en.wikipedia.org/wiki/ISO_8601 // Date YYYY-MM-DD or YYYYMMDD // DateTime: YYYY-MM-DDThh:mm:ss // Time hh:mm:ss or hhmmss interface function Iso8601DateString(const DateTime: TDateTime): string; function Iso8601DateTimeString(c...
{***********UNITE************************************************* Auteur ...... : Créé le ...... : 18/04/2007 Modifié le ... : / / Description .. : Source TOF de la FICHE : BTPARSOCCPTAGS1 () Mots clefs ... : TOF;BTPARSOCCPTAGS1 *****************************************************************} Unit BTPARSOCCPTAG...
unit TestRun; interface {$I Compiler.inc} uses Windows, Classes; type TTestRun = class private class function DoCreateOpenFile(const aPath: string): TFileStream; {$IFDEF D2005} static; {$ENDIF} public class procedure AddMarker(const aText: string); {$IFDEF D2005} static; {$ENDIF} end; i...
{$V-,F+} program EntryExample; {EXENTRY3.PAS} uses Use32, OpCrt, OpString, OpInline, OpConst, {!!.20} OpRoot, OpCmd, OpFrame, OpWindow, OpAbsFld, OpField, OpFEdit, OpSelect, OpEntry; type InfoRec = record Name : String[30]; Bin : Byte; end; const ...
unit UnitNoteEditDlg; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinBlueprint, dxSkinCaramel, dxSkin...
program CommandWindowExample; {EXCMDWIN.PAS} uses OpCrt, OpConst, {!!.20} OpRoot, OpCmd, OpFrame, OpWindow; const {Define a trivial KeySet of a few cursor commands} KeyMax = 19; KeySet : array[0..KeyMax] of Byte = ( {length keys command type key sequence} 3, $00, $48, ccUp, ...
unit reglistbox_wrapper; {$mode Delphi}{$H+} interface uses test_wrapper, reglistbox, regsourcen, Classes; type { TRegListBoxForTest } TRegListBoxForTest = class(TRegListBox) end; { TRegListBoxWrapper } TRegListBoxWrapper = class(TWrapperLST<TRegListBoxForTest>) private FDefault: integer...
unit ScreenSupportUnit; interface uses SysUtils; type TScreenSupport = class(TObject) public class procedure ExecuteWithWaitCursor(const Proc: TProc); overload; static; end; implementation uses Forms, Controls; class procedure TScreenSupport.ExecuteWithWaitCursor(const Proc: TProc)...
unit EspecificacaoCidadePorNome; interface uses Especificacao; type TEspecificacaoCidadePorNome = class(TEspecificacao) private FCidade :String; FUf :String; public constructor Create(Cidade :String; UF :String); public function SatisfeitoPor(Objeto :TObject): Boolean; override; end; im...
unit uShip; interface type TPart = class; TShip = class(TObject) private // Some kind of array or collection of TPart instances. // The details don't matter right now. public destructor Destroy; override; procedure AddPart(APart: TPart); end; TPart = class(TObject) public constructor Creat...
unit unProduto; interface type TProduto = class private FID: Integer; FCodigoEstoque: String; FCodigoVenda: String; FDescricao: String; FQuantidadeEmEstoque: Integer; FValor: Double; property QuantidadeEmEstoque: Integer read FQuantidadeEmEstoque write FQuantidadeEmEstoque;...
unit EntityStreamWriter; interface uses Classes, Entity, EntityWriter, TypesConsts, EntityList, SkyException; type TEntityStreamWriter = class(TEntityWriter) private class procedure InternalAddEntity(AnEntity: TEntity; AContext: TEntityWriterContext); protected class procedure WriteProper...
unit cbClientThread; interface uses Windows, Messages, SysUtils, Variants, Classes, cbSyncObjs, {$IFDEF APPDEBUG} CodeSiteLogging, {$ENDIF} { App: } cbThread, cbDesignPattern, cbROClientModule, cbClientClass; type TClientThread = class(TBaseThread) private { Private declarations } FCompCode: String...
unit UPrincipal; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls; type TFPrincipal = class(TForm) pgcPrincipal: TPageControl; tabPropriedades: TTabSheet; tabInterface: TTabSheet; tabClasse: TTabSheet; ...
unit fOptionsProcessedAlerts; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ORCtrls, ORDtTmRng, ORFn, ExtCtrls, fBase508Form, VA508AccessibilityManager; type TCBProcedure = procedure of object; TfrmOptionsProcessedAlerts = class(TfrmBase508Form) pnl...
object fFormCheckbox: TfFormCheckbox Left = 252 Top = 289 BorderIcons = [biSystemMenu] BorderStyle = bsSingle ClientHeight = 107 ClientWidth = 287 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -12 Font.Name = #23435#20307 Font.Style = [] ...
unit EspecificacaoUnidadesSaidaPorCodigoProduto; interface uses Especificacao, Materia; type TEspecificacaoUnidadesSaidaPorCodigoProduto = class(TEspecificacao) private FMateria :TMateria; public constructor Create(Materia :TMateria); public function SatisfeitoPor(Objeto :TObject): Boolean; ...
{============================================================================== _ ve'va'CHe __ _(_)_ ____ _ ___ ___ ™ \ \ / / \ \ / / _` |/ __/ _ \ \ V /| |\ V / (_| | (_| __/ \_/ |_| \_/ \__,_|\___\___| game toolkit Copyright © 2020 tinyBigGAMES™ LLC All rights re...
unit UIPSModuleTypes; interface uses Windows, SysUtils, UIPSTypes, InvokeRegistry; const IPS_MODULEBASE = 20000; //Defines Interfaces that are implemented //------------------------------------------------------------------------------ type TIDHeader = class(TSOAPHeader) private FID: Integer; ...
unit ServiceMainUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, SvcMgr, Dialogs, TcpFileServer, NetDiskUnit, AppEvnts; type TNetDiskThread = class(TThread) private FParam: SERVER_PARAM; protected procedure Execute; override; public constructor Cre...
unit DictionaryUnit; interface uses IniFiles; //TODO -ojpl: Check THashedStringList usage and object ownership type //1 Dictionary that can be owner of the Objects inside /// - Names property contains in fact a (Key, Value) pairs of (string, string) /// - Strings and Objects property contain (K...
unit ParamTest.Constants; interface const HELP_PARAM0 = '?'; HELP_PARAM1 = 'h'; HELP_PARAM2 = 'help'; HelpParams: array [0..2] of string = ( HELP_PARAM0, HELP_PARAM1, HELP_PARAM2 ); KILOBYTE = 1024; MEGABYTE = KILOBYTE * KILOBYTE; GIGABYTE = MEGABYTE * KILOBYTE; HexVolumes: array [0..15] of s...
{$include opts.inc} {$include all_numbers.inc} unit Errors; interface uses USystem; function ExhaustiveCase(value: sint; const where: string): Exception; function UnsupportedCase(const what, where: string): Exception; {$define numberf := function RangeCheck(const value, max: typ; const where: string)...
unit Log.Abstract; interface uses System.SysUtils, System.SyncObjs, Log.Intf, Log.Level; type TPFCBILogFileProperties = class private FFileNameModifier: String; FRelativePath: String; FExtension: String; function GetExtension: String; function GetRelativePath: String; procedure Se...
unit FormFactory.FMX; interface uses System.SysUtils, FMX.StdCtrls, FMX.Edit, FMX.ListBox, FMX.Forms, FormFactory.Intf; type IFMXForm = interface ['{8EC67205-31FD-4A40-B076-F572EF76CF0A}'] function AsForm: TForm; end; TFMXForm = class(TInterfacedObject, IForm, IFMXForm) strict private FForm: T...
unit WindowsX; interface uses windows, typex, sysutils; const THREAD_TERMINATE = $0001; THREAD_SUSPEND_RESUME = $0002; THREAD_GET_CONTEXT = $0008; THREAD_SET_CONTEXT = $0010; THREAD_SET_INFORMATION = $0020; THREAD_QUERY_INFORMATION ...
unit SpatialIndex; {$include opts.inc} interface uses USystem, UMath, Utils; const MaxKdDepth = 48; type pBounding = ^Bounding; Bounding = object type BaseEnum = (UnknownBase, BasedOnSphere, BasedOnAABB); private _base: BaseEnum; _sphere: Sphere; _aabb: AABB; function Make(newB...
unit Exceptions; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.Generics.Collections, System.Threading; type TfExceptions = class(TForm) Memo1: TMemo; Button1: TButton; Mem...
Program QBHEAP; Const maxn = 15000; Var a : array[1..maxn] of longint; i, n : word; v : longint; ch : char; Procedure UpHeap(node : word); Var key : longint; parent : word; Begin key := a[node]; Repeat parent := node shr 1; If (parent = 0) or (a[parent] > key) then...
program demo; { Example GPIO-Monitoring - similar ISR Rotation-Encoder ALPS conected to GPIO 17 + 27 / GND https://tech.alpsalpine.com/prod/e/pdf/encoder/incremental/ec20a/ec20a.pdf } {$mode objfpc}{$H+} uses // {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, // {$ENDIF}{$ENDIF} Classes, SysUtils, CustApp, ...
unit CalendarPrintDialog; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, DateUtils, StrUtils, Math, CalendarConfig, Printers, CalendarPrinter, plPrev, plSetPrinter, ExtCtrls; type TfrmCalendarPrint = class(TForm) RangeGroup: TGroup...
(* SafeMM Debug Memory Manager 0.4 (C) Ben Taylor based on code from: (C) 2000 Per B. Larsen & TurboPower Software Co. All rights reserved. Used with permission. Description: A "proof of concept" unit for using OS functionality to raise an AV when an improper attempt is made to read or writ...
unit SLDispersivity; interface uses ANE_LayerUnit, SLCustomLayers, SLGeneralParameters; type TMaxLongDispParam = class(T_ANE_LayerParam) class Function ANE_ParamName : string ; override; function Units : string; override; function Value : string; override; end; TMidLongDispParam = class(TMaxLongDi...
unit MSConnectionDataModuleUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Db, ADODB, SyncObjs, MSConnectionLayerUnit, ADOConnectionStringBuilderUnit, MSConfigUnit; type TMSConnectionDataModule = class(TDataModule) MainADOConnection: TADOConnectio...
unit DXGUIDEdit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ActiveX, ComObj; type TDelphiXGUIDEditForm = class(TForm) Edit: TEdit; OKButton: TButton; CancelButton: TButton; NewButton: TButton; procedure NewButtonClick(Sender: TObject);...
{***********UNITE************************************************* Auteur ...... : NA Créé le ...... : 24/02/2006 Modifié le ... : / / Description .. : Source TOM de la TABLE : REGLESPOP (REGLESPOP) REGLES IDR/POPULATION Mots clefs ... : TOM;REGLESPOP **************************************************************...
unit CppClassImport; interface const CPP_CLASS_LIB = 'DllLib1.dll'; function Initialize: integer; stdcall; external CPP_CLASS_LIB name 'Initialize' delayed; function Finalize: integer; stdcall; external CPP_CLASS_LIB name 'Finalize' delayed; function CreateCppClass(var index: integer): integer; ...
unit ContourListUnit; interface {ContourListUnit provides methods for reading and writing contours from and to Argus ONE} uses Classes, Graphics, SysUtils; type TContourList = class; TContour = class; TZoomPoint = class(TObject) private ContourList : TContourList; Contour : TContour; function ...
unit Xmpp.x.Value; interface uses Element,XmppUri; type TValue=class(TElement) const TagName='value'; public constructor Create();override; constructor Create(val:string);overload; constructor Create(val:Boolean);overload; class function GetConstTagName():string;override; end; implementat...
unit HST3DPorosityLayers; interface uses ANE_LayerUnit; type TPorosityParam = Class(T_ANE_LayerParam) function WriteName : string; override; function Value : string; override; class Function ANE_ParamName : string ; override; end; TPorosityLayer = Class(T_ANE_InfoLayer) constructor Create(ALayerLi...
unit ReadersWriterMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, System.Generics.Collections, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TfrmReadersWriter = class(TForm) lbLog: TListBox; btnMREW: TButton; btnSimp...
unit MenuShortcuts; {$mode objfpc}{$H+} interface uses Classes, SysUtils, strutils, types, fgl, ActnList, ButtonPanel, Controls, Dialogs, StdCtrls, Menus, Forms, Graphics, LCLType, LCLIntf, LCLProc, // LazUtils LazUTF8, // IdeIntf IDEDialogs, PropEdits, // IDE LazarusIDEStrConsts; type TSCKind =...
(********************************************************************* * LomCN Mir3 Actor core File 2012 * * * * Web : http://www.lomcn.co.uk * * Version : 0.0.0.1 ...
unit Test_SaleClasses; interface uses TestFramework, SysUtils, JclHashMapsCustom, IBDatabase, SaleClasses; type CRACK_TPOSConnector = class(TPOSConnector); CRACK_TSale = class(TSale); CRACK_TSaleLine = class(TSaleLine); CRACK_TDeptLine = class(TDeptLine); CRACK_TPLULine = class(TPLULine); TTPCTestCas...
{ Счастливый билет (Время: 1 сек. Память: 16 Мб Сложность: 12%) Вы пользуетесь общественным транспортом? Вероятно, вы расплачивались за проезд и получали билет с номером. Счастливым билетом называют такой билет с шестизначным номером, где сумма первых трех цифр равна сумме последних трех. Т.е. билет с номером 385916 ...
unit Vodopad.FloatList; interface uses System.Classes; const (* Минимальное значение для типа double *) _FLOAT_MIN_ = -1.7e308;//-1.1E4932; (* Максимальное значение для типа double *) _FLOAT_MAX_ = 1.7e308;//1.1E4932; } (* Точность в рабочих вычислениях *) _EPSILON_ = 0.00001; (* Константа возвра...
unit s3WinAutoUpdate; interface uses System.SysUtils; type Ts3UpdateEvent = reference to procedure(Sender: TObject; AETag: string); Ts3RestartEvent = reference to procedure(Sender: TObject; var aHandled: boolean); Ts3UpdateCheckOption = (checkETagOnly, checkBuild, checkFullVersion); Ts3UpdateFileOption = ...
{$MODE OBJFPC} {$INLINE ON} program LABUDOVI; const maxR = 1500; maxC = 1500; dx : array[1..4] of Integer = ( 0, -1, 0, 1 ); dy : array[1..4] of Integer = ( -1, 0, 1, 0 ); type TCord = record x, y : Integer; end; TQueue = record first, last : Integer; item : array[1..maxR * max...
unit StreamHelper; interface uses System.Classes; type TStreamHelper = class helper for TStream public procedure Advance(delta: int64); procedure Append(source: TStream); function AtEnd: boolean; function BytesLeft: int64; procedure Clear; procedure GoToStart; procedure GoToEnd; ...
program PathListExample; {EXPATH.PAS} uses Dos, OpCrt, OpRoot, OpCmd, OpFrame, OpWindow, OpPick, OpDir; var Path : PathList; SelPath : PathStr; Result : Word; begin {Make a PathList object with custom window options} if not Path.InitCustom(25, 5, 55, 20, {Window coordinates} ...
unit regcheckbox; {$mode Delphi}{$H+} interface uses SysUtils, Classes, Controls, StdCtrls, regsourcen, regmsg, LResources, regconst, LMessages, regtype; type { TCustomRegCheckBox } TCustomRegCheckBox = class(TCheckBox) private FRegistrySource: TRegistrySource; FRegistrySettings:...