text
stringlengths
14
6.51M
unit iaRTL.SysUtils; interface type TPathUtils = class private const {$IFDEF MSWINDOWS} HomePathEnvironmentVariable = 'UserProfile'; {$ELSE} HomePathEnvironmentVariable = 'HOME'; {$ENDIF} public class function GetUserHomePath:string; end; TEnvironmentUtils = clas...
unit uSurvey2; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Menus, StdCtrls, cxButtons, cxControls, cxContainer, cxEdit, dxSkinsCore, dxSkinCaramel, dxSkinOffice2007Blue, cxMaskEdit, cxDropDownEdit, cxCale...
{****************************************************************************} { @@Copyright:SUNTOGETHER } { @@Summary:框架核心类。 } { @@Description: } { @@...
unit uPlane; interface uses uVect, uRay, uColour, uSceneObject; type Plane = class(SceneObject) private normal: Vect; distance: Double; color: Colour; public constructor Create; overload; constructor Create(normalValue: Vect; distanceValue: Double; colorValue: Colour); over...
unit ServerContainerUnit1; interface uses System.SysUtils, System.Classes, Datasnap.DSServer, Datasnap.DSCommonServer, Datasnap.DSClientMetadata, Datasnap.DSHTTPServiceProxyDispatcher, Datasnap.DSProxyJavaAndroid, Datasnap.DSProxyJavaBlackBerry, Datasnap.DSProxyObjectiveCiOS, Datasnap.DSProxyCsharpSilverlight...
unit AspectsClasses; interface uses Classes, InfraCommonIntf, InfraAspect; type TAspect1 = class(TInfraAspect) procedure After(const Sender: IElement; const Params: IInterfaceList); override; procedure Before(const Sender: IElement; const Params: IInterfaceList); override; ...
unit TypeWork; interface uses Registrator, ComCtrls, Classes, Grids, MeasureUnits, Forms, Controls, BaseObjects; type TTypeWork = class; TTypeWorks = class; TStateWork = class (TRegisteredIdObject) protected procedure AssignTo(Dest: TPersistent); override; public constructor Create(ACollect...
unit SeisExemple; interface uses BaseObjects, Registrator, Classes, SeisMaterial,Material; type // тип экземпляра TExempleType = class (TRegisteredIDObject) public constructor Create(ACollection: TIDObjects); override; end; TExempleTypes = class (TRegisteredIDObjects) private function Get...
unit Utils; interface uses Generics.Collections, fuBaseChildForm, RzTabs, cxPC; type TufChildFormManager = class private FPageControl: TcxPageControl; FDict: TDictionary<String,TcxTabSheet>; public constructor Create(APageControl: TcxPageControl); destructor Destroy; override; procedure A...
unit TestDependencyMeetsExpectation; interface uses uDependencyMeetsExpectations , DUnitX.TestFramework ; type [TestFixture] TEmailManagerTester = class public [Test] procedure TestAddingPersonSendingOneEmail; end; implementation uses Delphi.Mocks , Classes ; { TEmailMa...
unit USale; interface uses System.SysUtils, System.Generics.Defaults, System.Generics.Collections, System.Types, UProductDescription, UMoney, USalesLineItem, UDate, UPayment; type ISale = interface function getBalance(): IMoney; function getTotal(): IMoney; procedure becomeComplete(); ...
{*******************************************************} { } { Gospel Compiler System } { } { Copyright (C) 1999 Voltus Corporation } { ...
program one; var h, m, s, t: integer; procedure IncTime(var h,m,s: integer; const t: integer); begin s := s+t; m := m+s div 60; s := s mod 60; h := (h+m div 60) mod 24; m := m mod 60 end; begin read(h,m,s,t); if (h>=24)or(m>59)or(s>59) then writeln('error'); IncTime(h, m, s, t); writeln(h,' ',m,' ',s) end.
unit RegCode; interface uses Windows, SysUtils, Classes, Controls, Forms, Dialogs, StdCtrls, Buttons, Registry, DateUtils; type TRegCodeForm = class(TForm) btnReg: TBitBtn; edtRegCode: TEdit; Label1: TLabel; Label5: TLabel; edtIDE: TEdit; BtnUnReg: TBitBtn; procedure...
program Merge4listas; const dimF=4; type Subrango=0..11; Lista=^ Nodo; Nodo = record dato: Subrango; sig:Lista; end; Vector= array [1..dimF] of Lista; //----------------------------Procedimientos------------------------------------// procedure leer (var d:Subrango); begin write('Escribe el ISBN: '...
(************************************* Ext2D Engine *************************************) (* Модуль : E2DConsts.pas *) (* Автор : Есин Владимир *) (* Создан : 01.06.06 ...
unit F10; interface uses loadandsave; procedure tambahJumlahBuku (var ArrayBuku: arrBuku); // Prosedur ini dapat dimanfaatkan untuk menambah jumlah sebuah buku var jumlah_tambahan, i : integer; id_terkait : string; found : boolean; implementation procedure tambahJumlahBuku (var ArrayBuku: arrBuku); begin // M...
unit mungo.textfile.dom.sourceeditor; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Graphics, SynHighlighterXML, SynHighlighterHTML, mungo.intf.filepointer, mungo.components.colors, mungo.textfile.sourceeditor; type { TSourceEditorDOM } TSourceEditorDOM = class ( TSourceEditor ) ...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls, ActnList, DateUtils, ComObj, MeiserDB, sqldb, lclintf;//, sqldb, ODBCConn;//, ComCtrls; type { TForm1 } TForm1 = class(TForm) ButtonLunchTable: TButton; ButtonLunchTa...
unit rcEditorProjects; {$mode objfpc}{$H+} interface uses Classes, SysUtils, rcRecords; { TEditorProjects } type TEditorProjects = class(TObject) private ProjectParam1: TProjectParam; ProjectStream: TFileStream; Filename1: string; procedure Close(); procedure ClearProp(); function Get...
unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Menus, Vcl.ExtCtrls, Vcl.ComCtrls; type TForm1 = class(TForm) MainMenu1: TMainMenu; FontDialog1: TFontDialog; File1: TMenuItem; S...
{12. Realizar un programa modularizado que lea una secuencia de caracteres y verifique si cumple con el patrón A$B#, donde: - A es una secuencia de sólo letras vocales - B es una secuencia de sólo caracteres alfabéticos sin letras vocales - los caracteres $ y # seguro existen Nota: en caso de no cumplir, informar que p...
unit BowlingGame; interface uses System.Generics.Collections, SysUtils; type IGame = interface ['{B1B1825B-A39E-4C12-ABCC-FB8D5A78FABB}'] procedure Start; function Roll(pins: Integer) : Tlist<Integer>; function ScoresByFrame: Tlist<Integer>; function GetTotalScore: Integer; property Total...
unit PJBank.Consts; interface const {$IFDEF DEBUG} PJBank_URLAPI_Sandbox = 'https://sandbox.pjbank.com.br'; // Debug {$ELSE} PJBank_URLAPI_Producao = 'https://api.pjbank.com.br'; // Produção {$ENDIF} const PJBank_Endpoint_CredenciarConta = '/recebimentos'; PJBank_Endpoint_EmitirBoleto = '/recebimentos/{{cred...
{ ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi Copyright (c) 2016, Isaque Pinheiro All rights reserved. GNU Lesser General Public License Versão 3, 29 de junho de 2007 Copyright (C) 2007 Free S...
unit smuBasico; interface uses System.SysUtils, System.Classes, Datasnap.DSServer, Datasnap.DSAuth, Datasnap.DSProviderDataModuleAdapter, 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...
{*******************************************************} { } { NTS Aero UI Library } { Created by GooD-NTS ( good.nts@gmail.com ) } { http://ntscorp.ru/ Copyright(c) 2011 } { License: Mozilla Pu...
// SkelList // This is a list management unit for TransSkel, a layer on top // of NSTableView. A shown by the demo, the API allows very compact code. // Regrettably, this first version does not allow dynamic arrays and has // therefore a size limit determined at compilation time by constants // below. I wish to remove...
unit uBairroDto; interface uses uMunicipioDto, System.SysUtils; type TBairroDto = class private FNomeMunicipio: String; FidBairro: Integer; FNome: String; FidMunicipio: Integer; FoMunicipio: TMunicipioDto; procedure SetidBairro(const Value: Integer); procedure SetNome(const Value: S...
unit CoreFunctions; {$H-} interface uses ExprShared, ExprTree, SysUtils, Math; { Utilidades } // BEGIN CFS { Devuelve una copia completa de la expresión dada. + Esta operación es fundamental, porque permite gestionar la memoria dinámica. En una operación a implementar, "function F(E : Expr) : Expr", la mem...
{$include kode.inc} unit kode_file; //---------------------------------------------------------------------- interface //---------------------------------------------------------------------- function KFileExists(AFile:PChar) : Boolean; function KFileSize(AFile:PChar) : LongInt; function KFileLoad(AFile:PChar; ABu...
unit UFormFileStatusDetail; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,ComCtrls, SyncObjs, UMyUtil, UIconUtil, ImgList, ExtCtrls, ToolWin, RzButton, UFormUtil, UMainForm, siComp; type TfrmFileStatusDetail = class(TForm) lvFileOwners: TLis...
unit rsdat; {$mode objfpc}{$H+} interface uses Classes, SysUtils, rsdat_common; type { TRSDatFile } TRSDatFile = class private sections: array of TSection; data: pbyte; procedure ReadDatFile(const fname: string); function ReadEntry(const stream: TMemoryStream): TFileNode; p...
{*******************************************************} { } { NTS Aero UI Library } { Created by GooD-NTS ( good.nts@gmail.com ) } { http://ntscorp.ru/ Copyright(c) 2011 } { License: Mozilla Pu...
PROGRAM hello (ouput); {WRITE 'Hello, world.' ten times.} VAR i: integer; BEGIIN FOR i:= 1 TO 10 DO BEGIN writeln('Hello, world.'); END; END{hello}.
// Copyright 2014 Asbjørn Heid // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
{@unit RLPreview - Implementação dos componentes de pré-visualização. } unit RLPreview; interface uses Classes, SysUtils, Math, Contnrs, Windows, Types, Graphics, Controls, ExtCtrls, Forms, Menus, Clipbrd, Dialogs, RLMetaFile, RLConsts, RLUtils; type TRLPreviewBox=class; { TRLPreview } TR...
{ * Program SetGame.pas * Agnieszka Kusnierz * 332284 } program SetGame; const DECK = 81; TABLE = 21; //istnieje max 20 kart bez seta CARDS_DEAL = 12; {kazda karta jest rekordem, ktory przechowuje: * jej numer, ten podany na wejsciu, cztery atrybuty * i aktualna pozycje - numer na stole} type card = record ca...
unit Minerva.Treinamento.Etiqueta; interface type TDescricaoAttribute = class(TCustomAttribute) private FDescricao: string; public constructor Create(pDescricao: string); property Descricao: string read FDescricao write FDescricao; end; [TDescricao('Tipo para definir formato da etiqueta')] T...
unit LQSearch; interface uses LQMessage,Generics.Collections; type TLiveQuerySearch = class private FSearchResult: TList<TLiveQueryEntry>; public constructor Create; Destructor Destroy; function SearchListItems(AListToSearch: TList<TLiveQueryEntry>; ASearchTerm: string; FindIP:...
unit Calculo; interface uses StrUtils, Dialogs, Math; type TFigura = class private ATipoCalculo: String; //(┴)rea ou (P)erÝmetro public constructor Create; destructor Destroy; Override; property TipoCalculo: String read ATipoCalculo write ATipoCalculo; end; TQuadrado = class(TFigura) pri...
unit uFrmConsultaProdutoHistorico; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, UFrmFormDataSetConsulta, Data.DB, System.Actions, Vcl.ActnList, Vcl.StdCtrls, Vcl.Buttons, Vcl.Grids, Vcl.DBGrids, Vcl.ExtCtr...
unit ObjectTree; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.ImgList, DBAccess, MemData, OdacVcl, DB, Ora, MemDS, Vcl.ExtCtrls, Vcl.StdCtrls, Vcl.ToolWin, Vcl.ActnList, JvStringHold...
unit uTaskDiagram; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, uGlobals, GdiPlus, GdiPlusHelpers; type TTasks = array of IGPGraphicsPath; TfrmTaskDiagram = class(TForm) img: TImage; private { Private declarations } Graphic: IGPGr...
unit ufInterfaces; interface uses Forms, Controls, Classes, SysUtils; type TufBase = class(TInterfacedObject, IInterface) protected FForm: TForm; protected function GetComponentByName(ComponentName: String): TComponent; function GetWinControlByName(ControlName: String): TWinControl; public p...
unit UParamEditors; {$mode objfpc}{$H+} interface uses Classes, Controls, SysUtils, StdCtrls, FPCanvas, Spin, UFigureParams, Graphics, UUtils; type TParamClass = class of TFigureParam; TParamClassArray = array of TParamClass; TParamChangingEvent = procedure(Sender: TObject) of object; TDrawItemEvent = p...
{: GLBehaviours<p> Standard TGLBehaviour subclasses for GLScene<p> <b>Historique : </b><font size=-1><ul> <li>02/10/00 - Egg - Fixed TGLBInertia.DoProgress (DamplingEnabled bug) <li>09/10/00 - Egg - Fixed ApplyTranslationAcceleration & ApplyForce <li>11/08/00 - Egg - Fixed translation bug ...
unit InstanceTracker; { When using this unit, it will track the number of instanced of most classes in the application. For most accurate results, it is recommended to put this unit at the top of the uses-clause of the project (.dpr) file. On Windows, macOS, iOS Simulator and Linux, it will track allocations an...
unit VisibleDSA.InsertionSort; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type TArray_int = array of integer; TInsertionSort = class public // 对整个arr数组使用InsertionSort排序 class procedure Sort(arr: TArray_int); // 对arr[l...r]的区间使用InsertionSort排序 class procedure Sort(arr: TArray_...
unit uMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, IdBaseComponent, IdComponent, IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL, IdSSLOpenSSL, Vcl.Tabs, Vcl.DockTabSet, Vcl.ComCtrls, Vcl.Std...
unit uFrmRelatorioListagemCliente; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, UFrmFormControlRelatorio, System.Actions, Vcl.ActnList, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls,UFrmFormDataSetRelatorio, Vcl...
unit Opcode; interface uses Classes, Types; type TOpCode = class private FName: string; FValue: Byte; FArgCount: Byte; FIsBasic: Boolean; public constructor Create(AName: string; AValue, AArgCount: Byte; AIsBasic: Boolean = True); property Name: string read FName; ...
{ MASTERFILE: Reference attached to wrong cell for its location: 'Wilderness' (01006609) (27, -8) in WorldSpace 'MyWorld' (01000819) } unit FixWorldspaceRefsCells; function GetCellFromWorldspace(Worldspace: IInterface; GridX, GridY: integer): IInterface; var blockidx, subblockidx, cellidx: integer; wrldgrup, ...
{ This file is part of the Free Component Library JSON source parser Copyright (c) 2007 by Michael Van Canneyt michael@freepascal.org See the file COPYING.FPC, included in this distribution, for details about the copyright. This program is distributed in the hope that it will be useful, b...
(* Category: SWAG Title: TEXT FILE MANAGEMENT ROUTINES Original name: 0028.PAS Description: Formatting Author: SADHUNATHAN NADESAN Date: 01-27-94 12:11 *) { | From: Scott Stone <pslvax!ucsd!u.cc.utah.edu!ss8913> | | This may sound like a simplistic request, but I need code to do the following: not really ...
unit dco.rpc.RPCHandlerMock; interface uses superobject, dutil.core.NonRefCountedInterfacedObject, dco.rpc.ErrorObject, dco.rpc.RPCHandler, dco.rpc.Identifier; type THandlerMock = class(TNonRefCountedInterfacedObject, IRPCHandler) public procedure HandleRequest(const Method: string; const Params: I...
unit PakFile; interface uses //Dlzo, //lazlzo, SysUtils, dialogs, Classes, lzoobj, Windows, Head, messages; Type PStringList = ^TStringList; TPakType = (ptNONE, ptPAK, ptPACKAGE, ptSPAK); TPakdataHead = record FileID: Cardinal; Offset: integer; filelen: integer; //原始大小 end;...
{*******************************************************} { } { Gospel Compiler System } { } { Copyright (C) 1999 Voltus Corporation } { ...
unit herro; {$I DelphiDefs.inc} interface uses betterobject, classes,systemx, idsockethandle, idglobal, skill, typex, stringx, better_indy,IdUDPServer, orderlyinit, tickcount, simplequeue, networkx, PeriodicEvents; const HERRO_PAYLOAD_START = 5; HERRO_PORT = 3333; type TGreeterPacketHeader = packed record ...
unit eAudioFile; interface uses API_ORM, eCommon; type TAudioFile = class(TEntity) private FFormat: string; FPath: string; FTrackID: Integer; public class function GetStructure: TSructure; override; published property Format: string read FFormat write FFormat; property Path: strin...
unit uDataResource; interface uses Generics.Collections; type TmRequiest = class id: Integer; date: TDateTime; number: string; constructor Create(id: Integer; number: string); end; TmCompany = class id: integer; name: string; constructor Create(id: integer; name: string); end; ...
unit ArrayHlp; //////////////////////////////////////////////////////////////////////////////// // // Author: Jaap Baak // https://github.com/transportmodelling/Utils // //////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////...
PROGRAM IsPrime(INPUT, OUTPUT); FUNCTION CheckOnPrime: BOOLEAN; VAR Number, Counter: INTEGER; Prime: BOOLEAN; BEGIN {CheckOnPrime} READ(Number); Prime := TRUE; Counter := 2; IF Number <= 1 THEN Prime := FALSE; WHILE ((Counter * Counter) <= Number) AND Prime DO BEGIN IF Number MOD C...
unit Horse.Logger.Provider.Console; {$IFDEF FPC } {$MODE DELPHI} {$ENDIF} interface uses {$IFDEF FPC } Classes, {$ELSE} System.Classes, {$ENDIF} Horse.Logger; type THorseLoggerConsoleConfig = class private { private declarations } FLogFormat: string; protected { protected declarations } p...
unit WMSServerInfo; {$writeableconst on} interface uses ShareTools, Contnrs, SysUtils, Classes; type TWMSServerInfo = class private fComment : string; fHTTP : string; fIndex : integer; fRemoveRootNode : boolean; public property Comment : string read fComment write fComment; property HTTP...
PROGRAM SayHello(INPUT, OUTPUT); USES DOS; VAR QueryString: STRING; FUNCTION GetName(VAR QueryString: STRING): STRING; VAR FirstPositionName, I: INTEGER; Name: STRING; BEGIN { GetName } Name := ''; FirstPositionName := POS('name=', QueryString) + 5; FOR I := FirstPositionName TO LENGTH(QueryString) ...
Unit Encoder; Interface Uses SysUtils; Const cBase64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/,'; Function QuotedPrintableEncode(mSource: String): String; Function QuotedPrintableDecode(mCode: String): String; Function Base64Encode(mSource: String; mAddLine: Boolean = True): String; Func...
{*******************************************************} { } { Copyright (c) 2001-2017 by Alex A. Lagodny } { } {*******************************************************} unit aOPCImageList; {$I VCL....
unit UMRUList; interface uses Classes; type TMRUList = class(TStringList) public procedure AddMRU(strFileName: string); procedure CheckExists; procedure Load; procedure Save; end; function GetMRUList: TMRUList; implementation uses SysUtils, USettings; var gl_MRUs: TMRUList; functi...
unit cmpExWebBrowser; interface uses Windows, SysUtils, Classes, Controls, OleCtrls, SHDocVw, ActiveX, Forms, URLMon; type TDocHostUIInfo = packed record cbSize : ULONG; dwFlags : DWORD; dwDoubleClick : DWORD; pchHostCss : polestr; pchHostNS : polestr; end; pDocHostUIInfo =...
(* @abstract(Contient une classe TBZLogger servant à générer des fichiers logs simplement. Elle utilise un Thread pour ecrire les messages en arrière-plan.) Vous pouvez ajoutez des sorties supplémentaires en héritant la classe TBZCustomLoggerWriter. @br Ensuite il vous suffira de déclarer les nouvelles classes...
{ Copyright (C) 2013-2018 Tim Sinaeve tim.sinaeve@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicabl...
unit usb_relay_device; interface uses windows; type usb_relay_device_type = ( USB_RELAY_DEVICE_ONE_CHANNEL = 1, USB_RELAY_DEVICE_TWO_CHANNEL = 2, USB_RELAY_DEVICE_FOUR_CHANNEL = 4, USB_RELAY_DEVICE_EIGHT_CHANNEL = 8, USB_RELAY_DEVICE_LAST = $10000 // make sure sizeof is large enough in structur...
PROGRAM Snake2; { An improved version of the game snake } USES GraphWin; TYPE Vector =RECORD x :INTEGER; y :INTEGER; END; TYPE Colour =RECORD ...
unit MvcDemo; interface {$R+} uses Iocp.Http, Iocp.Http.WebSocket, iocp.Http.MVC, DB, SysUtils, Classes; type TUserData = record UID: Integer; Age: Integer; Name: string; Nick: string; end; TPerson = record UID: Integer; Name: string; Status: Integer; end; TRegState = rec...
unit uDuckDuckDelphi; interface uses Duck , uQuackingThings , System.Classes ; type TGoose = class strict private FName: string; public procedure Honk; property Name: string read FName write FName; end; TAddSix = class procedure AddSix(aInteger: integer); end; procedu...
unit Main; interface procedure MainProc; implementation uses System.SysUtils, Shippment, DataProxy.Order, Order.ShippmentProcesor, Database.Connector, Database.Connector.Interbase, DataProxy.Factory; procedure MainProc; var Shippment: TShippment; processor: TShipmentProcessor; DataProxyFactory:...
unit lua.loader; interface uses SysUtils, System.Generics.Collections, dorLua, lua.context; type TScriptError = reference to procedure(Status: Integer; const Error: string); TScriptEvent = reference to procedure(State: Plua_State); TScriptMessage = reference to procedure(const Message: string...
{$include kode.inc} unit kode_widget_scrollbox; { this is a bit clumsy/hack-ish.. that un_scroll and re_scroll things.. one minor issue: when resizing the window (not using scrollbar), in do_update, scrollbox is one pixel off (top) } //---------------------------------------------------------------------- ...
unit LasFileDataPoster; interface uses PersistentObjects, DBGate, BaseObjects, Organization, Employee, LasFile, Variants ; type TLasFileDataPoster = class(TImplementedDataPoster) private FAllOrganizations : TOrganizations; FAllEmployees: TEmployees; public property AllOrganizations : TOrganizatio...
unit ButtonN; interface uses WinProcs, Classes, Graphics, Controls; type TButtonN = class(TGraphicControl) constructor Create(aOwner: TComponent); override; private FPossible, FLit: boolean; FGraphic, FMask, FBackGraphic: TBitmap; FIndex,BackIndex: integer; FSmartHint: string;...
unit AppController; interface uses Orders, Order; type TAppController = class; IView = interface function GetController: TAppController; procedure SetController(const Value: TAppController); property Controller: TAppController read GetController write SetController; function GetMo...
unit Test.AsyncIO.Detail; { Delphi DUnit Test Case ---------------------- This unit contains a skeleton test case class generated by the Test Case Wizard. Modify the generated code to correctly setup and call the methods from the unit being tested. } interface uses TestFramework, AsyncIOTestCase, System...
{ complete detab -- accepts list of tab stops arguments } program detabprog (input, output); const ENDSTR = 0; ENDFILE = -1; MAXSTR = 1024; NEWLINE = 10; { ASCII value } BLANK = 32; PLUS = 43; MINUS = 45; BACKSPACE = 8; TAB = 9; type character = -1..127; { ASCII, plus ENDFIL...
unit UObjectFile; interface uses SysUtils, Windows, Graphics, Dialogs, types, Utils, PNGImage, StrUtils, IniFiles; const MAX_OBJECTS = 256; MAGIC_COLOR = $00ec9d; OBJECT_FILE_FILTER = 'Level files (*.lua)|*.LUA|All files (*.*)|*.*'; SIGNATURES : array [1..3] of string = ('BM', 'JFIF', 'PNG'); DEF_EXT = '...
unit uFrmCadAlunos; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Buttons, Vcl.ComCtrls, Vcl.Mask, Vcl.StdCtrls, Vcl.ExtCtrls, FireDac.Comp.Client, uAlunoDAO, uEnderecoDAO, uAluno, uResponsavel, uEnde...
Program SortArray; Uses Objects; const N = 4; { кол-во элементов в массиве } SORT_STR: boolean = true; type PInteger = ^Integer; List = array[1..N] of Pointer; { список указателей на ячейки данных } { процедурный тип для вызова функции сравнения } TSortFunc = function (a,b: pointer): integer; va...
program auflager; uses crt,strings; const festlager=1; loslager=2; rad:real=pi/180; type kraft = record f,fx,fy:real; alpha:real; lx,ly:real end; lager = record typ:integer; x,y:real;...
unit Unit7; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm7 = class(TForm) Label2: TLabel; edURL: TComboBox; Label11: TLabel; edArq: TEdit; Button1: TButton; B...
unit SmartFields; interface uses Forms, Classes, Controls, SysUtils, Dialogs, BASE_PARSER, PaxScripter, PaxPascal,TypInfo, IMP_Dialogs, IMP_DB, IMP_Classes, IMP_Forms, IMP_SmartFunctions, IMP_Sysutils, IMP_Dateutils, IMP_Math, SmartFunctions; type TShowEvent = (seClick,seDblClick,seEnter,seExit,seDropdown, seCol...
unit HamC4880; { ========================================================================================= HamC4880 - Hamamatsu C4880-81 control software (c) J. Dempster, University of Strathclyde 23/08/01 Started 17/06/03 60/6/5 .... C4880_GetCameraGainList now supplies correct gain list 08/07/05 .. Readout ...
unit Playground.TimeZone; interface uses DUnitX.TestFramework; type [TestFixture] TPlayground = class(TObject) private public { * * źródło: https://pl.wikipedia.org/wiki/Czas_letni * * 1917 16 kwietnia 17 września * 1918 15 kwietnia 16 września * 1949 10 kwietnia 2 paźdz...
unit ExactFloatToStr_JH0; (* ***************************************************************************** This module includes (a) functions for converting a floating binary point number to its *exact* decimal representation in an AnsiString; (b) functions for parsing the floating point types into ...
unit qdac_postqueue; interface uses classes, sysutils, syncobjs, qstring{$IFDEF MSWINDOWS}, windows, messages{$ENDIF}; { 本单元实现的是一个跨平台的异步调用模块,调用时用AsynCall函数,参数为一个接口对象 } type TQAsynProc = procedure(AParams: IInterface) of object; TQAsynStdProc = procedure(AParams: IInterface); stdcall; TQAsynProcG = procedure...
unit StringUtils; interface uses Windows, Sysutils, StrUtils, Classes, Variants; type TSetOfChar = set of char; const NumberSet = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']; RestrictedCharacters: string = '<>"/|?*'; function GetLastErrorMessage:String; function FormatedWin32Error(const Obj...
unit CommonUtil; interface uses DBGridEh, DBGridEhImpExp, SysUtils, Dialogs, Windows, ShlObj, StrUtils, Controls, Forms, IdCoder, IdCoderMIME, IdHashMessageDigest, ZLibEx, WinSock, WinSvc, Classes, EncdDecd, jpeg; type TCol = record field: string; showField: string; end; TCommonUti...
// Copyright 2018 The Casbin Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
unit tpRTTI; // Delphi run time type information (* Copyright (c) 2000-2018 HREF Tools Corp. Public at https://sourceforge.net/p/free-no-warranty-delphi-units/code/HEAD/tree/trunk/from_tpack/tpRTTI.pas Permission is hereby granted, on 31-Oct-2003, free of charge, to any person obtaining a copy of this f...
unit Lunar; interface uses SysUtils; type TCNDate = Cardinal; function DecodeGregToCNDate(dtGreg: TDateTime): TCNDate; function GetGregDateFromCN(cnYear, cnMonth, cnDay: word; bLeap: Boolean = False): TDateTime; function GregDateToCNStr(dtGreg: TDateTime): string; function isCNLeap(cnDate: TCNDate): Bool...
unit FramePriSphere; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Spin, ComCtrls, PMBuild; type TPriSphereFrame = class(TFrame) SphereGroup: TGroupBox; Slices: TSpinEdit; Stacks: TSpinEdit; SmoothCheck: TCheckBox; ...