text
stringlengths
14
6.51M
unit intensive.Controller; 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.Phys.SQLite, FireDAC.Phys.SQLiteDef, FireDAC.Stan.ExprFuncs, FireDAC.Phys.S...
unit IteratorMenu; interface uses System.SysUtils, ItensDoMenu, InterfaceIterator, System.Generics.Collections; type ListaDeMenus = array of TItensMenu; TMenuIterator = class(TInterfacedObject, IIterator) private Itens: ListaDeMenus; Posição: Integer; PizzaAtual: TItensMenu; public constru...
{ Application main form. @author(Tomáš Borek <tomas.borek@post.cz>) } unit UMainF; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs; type { TMainForm } TMainForm = class(TForm) public { Customizes form when created. } constructor Create(AOwner...
unit uConexao; interface uses System.IniFiles, System.SysUtils, 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, Data.DB, FireDAC.Comp.Client, Vcl.Forms, uArqui...
unit uSecurity; {$mode objfpc}{$H+} interface uses SynCommons, mORMot, uForwardDeclaration;//Classes, SysUtils; type // 1 TSQLX509IssuerProvision = class(TSQLRecord) private fCommonName: RawUTF8; fOrganizationalUnit: RawUTF8; fOrganizationName: RawUTF8; fCityLocality: RawUTF8; ...
Unit Research; Interface Uses Regularexpressions, Math, vcl.dialogs, SysUtils; Type TOperator = record Operator: string; Used: integer; end; TOperand = record Operand: string; Used: integer; end; TProgress = record OBJ: integer; // Объект с которым идет работа Status: integer;...
unit UsesFixMain; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; type TUsesFixMainForm = class(TForm) LabeledEditDprFileName: TLabeledEdit; Button1: TButton; OpenDialog1: TOpenDialog; ButtonFix: TButton; L...
(* ulist.pas -- (c) 1989 by Tom Swan *) unit ulist; interface uses uitem; type listPtr = ^list; list = object( item ) anchor : itemPtr; { Addresses list head } cip : itemPtr; { Current item pointer } constructor init; destructor done; virtual; function listEmpty : Boole...
{ *********************************************************************** } { } { Delphi Runtime Library } { } { Copyright (c) ...
unit LoadLibraryR; interface uses Windows,Logger; function GetReflectiveLoaderOffset(lpReflectiveDllBuffer:Pointer):DWORD; function LoadLibraryR_(lpBuffer:Pointer;dwLength:DWORD ):HMODULE;stdcall; function LoadRemoteLibraryR(hProcess:THandle;lpBuffer:Pointer;dwLength:DWORD;lpParameter:Pointer):THandle;stdcall; im...
unit Component.ButtonGroup; interface uses Forms, StdCtrls, ExtCtrls, Generics.Collections; type TClickEventProcedure = procedure (IsOpening: Boolean; Sender: TObject; GroupBox: TGroupBox); TButtonGroupEntry = record Selected: Boolean; ImageButton: TImage; LabelButton: TLabel; GroupBox: TG...
{ "Pointer Pool" - Copyright (c) Danijel Tkalcec @exclude } unit memPtrPool; {$INCLUDE rtcDefs.inc} interface uses SysUtils; const MinPoolSize=10; MaxPoolSize=MaxLongInt div SizeOf(pointer); type tPtrPoolElems = array[1..MaxPoolSize] of pointer; pPtrPoolElems = ^tPtrPoolElems; tPtrPool = class(T...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
// ************************************************************************ // ***************************** CEF4Delphi ******************************* // ************************************************************************ // // CEF4Delphi is based on DCEF3 which uses CEF3 to embed a chromium-based // browser in D...
unit Uini; // SpyroTAS is licensed under WTFPL // interface to ini file usage interface type // define a key-value pair TStringPair = record Key, Value: string; end; type // managed array of key-values TPairsArray = array of TStringPair; // overloads to create such pairs (key is always a st...
(****************************************************************************) (* *) (* REV97.PAS - The Relativity Emag (coded in Turbo Pascal 7.0) *) (* *) (* "...
unit consoles; interface uses Windows, Classes, SysUtils; const Black = 0; Blue = 1; Green = 2; Cyan = 3; Red = 4; Magenta = 5; Brown = 6; LightGray = 7; // Foreground colors DarkGray = 8; LightBlue =...
unit ZCrc32; (************************************************************************ crc32.c -- compute the CRC-32 of a data stream Copyright (C) 1995-1998 Mark Adler Pascal translation Copyright (C) 1998 by Jacques Nomssi Nzali For conditions of distribution and use, see copyright notice in readm...
unit SD_Configuracion; interface uses IniFiles; const ARCHIVO_CFG= 'programa.cfg'; ERROR_APERTURA_CFG= 'ErrorAperturaCFG'; ERROR_CFG= 'ErrorLecturaCFG'; SECCION_APP = 'APLICACION'; SERVIDOR_FB = 'RUTA_FB'; //Ruta al archivo de BD BASE_HOST='HOST'; //Dirección IP del HOST DIR_SERVIDOR = 'SE...
program _demo; Array[0] var M : AlglibInteger; N : AlglibInteger; K : AlglibInteger; Y : TReal1DArray; X : TReal2DArray; C : TReal1DArray; Rep : LSFitReport; State : LSFitState; Info : AlglibInteger; EpsF : Double; EpsX : Double; MaxIts : AlglibInteger; ...
{*******************************************************} { } { FMXUI 虚拟键遮挡问题处理单元 } { } { 版权所有 (C) 2019 by KngStr } { ...
unit UI.ListView.Header; interface uses UI.ListView, System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, UI.Base, UI.Standard; type /// <summary> /// ListView 默认头部 /// </summary> TListViewDefaultH...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC resource strings } { } { Copyright(c) 2004-2018 Embar...
unit uConversoesTestes; interface Uses TestFramework, uConversoes; type TConversoesTestes = class(TTestCase) private FConverteTexto: TConverteTexto; FConverteInvertido : TConverteInvertido; FConvertePrimeiraMaiuscula : TConvertePrimeiraMaiuscula; FConverteOrdenado : TConverteOrdenado; protec...
unit fOptions; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, ComCtrls, StdCtrls; type TOptionsForm = class(TForm) CancelButton: TButton; OkButton: TButton; PagesList: TListView; HolderPanel: TPanel; procedure FormDestroy(Sender:...
{*******************************************************} { } { Delphi DBX Framework } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
{ Copyright (C) 1998-2018, written by Shkolnik Mike, Scalabium E-Mail: mshkolnik@scalabium.com mshkolnik@yahoo.com WEB: http://www.scalabium.com TConerBtn component is a extended button with new style. It's an extended TBitBtn (caption with glyph): by PlaceConer property switch you can def...
#skip unit iDPascalParser; interface {$IFDEF FPC} {$MODE DELPHI} {$ENDIF} uses iDStringParser, SysUtils, Classes, CompilerClasses, CompilerMessages, CompilerErrors; type TTokenID = ( token_unknown {= -1}, // unknown token token_eof {= 0}, // end of file token_identifier, ...
{ *************************************************************************** } { } { Delphi and Kylix Cross-Platform Visual Component Library } { } ...
unit ClassBoard; interface uses ClassBaseBoard, ClassLetters, Classes, Controls, ExtCtrls, Graphics; type TScoreType = ( stSingle, stDblL, stTrpL, stDblW, stTrpW ); const CBckgndColor = $00000000; CDblLColor = $00FFB0B0; CTrpLColor = $00FF1010; CDblWColor = $00B0B0FF; CTrpWColor = $0...
(***************************************************************************** * Pascal Solution to "How Many Zeroes?" from the * * * * Seventh Annual UCF ACM UPE High School Programming Tournament * ...
unit constexpr_case_1; interface implementation function GetValue(a: int32): string; pure; begin case a of 0: Result := 'zero'; 1: Result := 'one'; 2: Result := 'two'; else Result := 'any'; end; end; var s0, s1, s2, sa: string; procedure Test; begin s0 := GetValue(0); s1 := GetVal...
unit ff7sound; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, FF7Snd, StdCtrls, ComCtrls, Buttons, BaseUtil; type TfrmCosmoSound = class(TForm) lstSound: TListView; savWAV: TSaveDialog; opnWav: TOpenDialog; opnAudio: TOpenDialog; btnOp...
{********************************************************************* * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Autor: Brovin Y.D. * E-mail: y.brovin...
unit BrickCamp.Model.IEmployee; interface uses Spring; type IEmployee = interface(IInterface) ['{E31612DC-EB02-4576-B119-575696111EF6}'] function GetDepartmentNumber: string; function GetFirstName: string; function GetHireDate: TDateTime; function GetId: Integer; function GetJobCode: strin...
unit Controller.Visita; interface uses Horse, System.JSON, System.StrUtils, System.SysUtils, System.Classes, Server.Connection, DAO.Visita; procedure RegisterVisita; procedure List (Req: THorseRequest; Res: THorseResponse; Next: TProc); procedure Find (Req: THorseRequest; Res: THorseRespo...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
{ ************************************************************** Package: XWB - Kernel RPCBroker Date Created: Sept 18, 1997 (Version 1.1) Site Name: Oakland, OI Field Office, Dept of Veteran Affairs Developers: Wally Fort, Joel Ivey Description: Contains TRPCBroker and related components. Unit: XWBHash encrypti...
unit uFrameGridView; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, {$IF CompilerVersion >= 31} FMX.DialogService, {$ENDIF} UI.Standard, UI.Base, UI.Grid, UI.Frame, FireDAC.Stan.Int...
unit VisCom; interface uses ExtCtrls, Contnrs, Graphics, Classes; type TMap = class; // forward //============================================================================== // VisCom // Viscoms are components for visualization of map elements. // TVisCom is the base class for VisComs. A TVisC...
{----------------------------------------------------------------------------- Unit Name: fNewSetting Author: Erwien Saputra Purpose: User interface to add a new setting. If the class function returns true, the NewSettingName is meaningful. History: 02/21/2005 - Updated the tab order. 06/1...
object frmGMV_TimeOutManager: TfrmGMV_TimeOutManager Left = 357 Top = 263 BorderIcons = [biSystemMenu] BorderStyle = bsDialog BorderWidth = 15 Caption = 'Application Time Out Warning!' ClientHeight = 113 ClientWidth = 253 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText ...
unit uSped; interface uses Contnrs, // <-- Nesta Unit está implementado TObjectList MVCInterfaces,uRegistroEmpresaContabil,uEmpresa, UI010, uRegistro , uExcecao, SysUtils; // apagar uexcecao type TSped = class(TRegistroEmpresaContabil) private fID : Integer; ...
unit uHik; interface uses System.Classes, Generics.Collections, IdHTTP, SysUtils, uGlobal, uCommon, uDecodeHikResult, DateUtils, ActiveX, uEntity; type TImageInfo = Class public GCXH: String; KDBH: String; CDBH: String; Url: String; PassTime: String; HPHM: String; End; THik = cl...
{*******************************************************} { } { Delphi VCL Extensions (RX) } { } { Copyright (c) 1995 AO ROSNO } { Copyright (c) 1997, ...
unit uDrawingCommand; interface uses uBase, uBaseCommand, uGraphicPrimitive, Graphics, uExceptions, Variants; type TDrawingCommandType = (dctBackground); TBaseDrawingCommand = class public procedure Execute(const aPrimitive: TGraphicPrimitive; const aData: variant); virtual; abstract; ...
unit UAboutBoxDialog; interface uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls, Buttons, ExtCtrls, UVersionLabel; type TAboutBox = class(TForm) Panel1: TPanel; ProgramIcon: TImage; ProductName: TLabel; VersionLabel1: TVersionLabel; Copyright: TLabel; Comments: TLabel...
unit ucsvwrapper; {Membungkus teks agar kompatibel dengan csv dan dapat memuat koma di dalamnya} {REFERENSI : https://stackoverflow.com/questions/4617935/is-there-a-way-to-include-commas-in-csv-columns-without-breaking-the-formatting} interface {PUBLIC VARIABLE, CONST, ADT} const wrapper = '"'; {PUBLIC FUN...
unit Finance.Taxes; interface uses Finance.interfaces, System.JSON, System.Generics.Collections; type TFinanceTaxes = class(TInterfacedObject, iFinanceTaxes) private FParent : iFinance; FDate : String; FCdi : string; FSelic : string; FDailyFactor : string; ...
unit FIToolkit.Reports.Builder.Intf; interface uses FIToolkit.Reports.Builder.Types; type { Common } IReportBuilder = interface ['{68BE0EA3-035D-42B9-B20F-CFF16DA05DA8}'] procedure AddFooter(FinishTime : TDateTime); procedure AddHeader(const Title : String; StartTime : TDateTime); procedure ...
{ DataPort - thread-safe abstract port for data exchange Sergey Bodrov (serbod@gmail.com) 2012-2016 TDataPort is abstract component for reading and writing data to some port. It don't do anything and needs to be used as property or parent class for new components. Properties: Active - is port ready for data...
unit BrickCamp.Model.TAnswer; interface uses Spring, Spring.Persistence.Mapping.Attributes, BrickCamp.Model.IProduct; type [Entity] [Table('ANSWER')] TAnswer = class private [Column('ID', [cpRequired, cpPrimaryKey, cpNotNull, cpDontInsert], 0, 0, 0, 'primary key')] [AutoGenerated] FId: Inte...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, ComCtrls, DBCtrls, ShellApi, TlHelp32; type TForm1 = class(TForm) Label1: TLabel; Timer1: TTimer; DBMemo1: TDBMemo; procedure Timer1Timer(Sender: TObject); proc...
{*******************************************************} { } { Delphi Runtime Library } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit Security.ChangePassword; interface uses System.SysUtils, System.Classes, Vcl.ExtCtrls, System.UITypes, Vcl.StdCtrls, Security.ChangePassword.Interfaces, Security.ChangePassword.View ; type TChangePasswordNotifyEvent = Security.ChangePassword.Interfaces.TChangePasswordNotifyEvent; TResultNo...
(***********************************************************) (* xPLRFX *) (* part of Digital Home Server project *) (* http://www.digitalhomeserver.net *) (* info@digitalhomeserver.net *) (****...
unit Test01.RemoveRepetitions; interface uses DUnitX.TestFramework, Code01.RemoveRepetitions; {$M+} type [TestFixture] TDelphiChallenge01 = class(TObject) private procedure RunTest(aParticipants: TChallengeParticipants); published procedure Challenge01_LukaszHamera; procedure Challenge01_Ja...
unit uStrRepHelper; {$I ..\Include\IntXLib.inc} interface uses {$IFDEF DELPHI} Generics.Collections, {$ENDIF DELPHI} SysUtils, uStrings, uUtils, uIntX, uIntXLibTypes; type /// <summary> /// Helps to work with <see cref="TIntX" /> string representations. /// </summary> TStrRepHelper = class seal...
unit TOConfiguration; {$mode objfpc}{$H+} interface uses Classes, SysUtils, constants, inifiles, strutils; Type TSwampNode = record address: String; port: Integer; connectionId: Integer; end; Type TConfiguration = class var nodeSleepTime: Integer; NodeId: String; starSwampNodes: array o...
{*******************************************************} { } { Delphi VCL Extensions (RX) } { } { Copyright (c) 1995, 1996 AO ROSNO } { Copyright (c) 1997, ...
unit FC.Trade.Trader.MACross2; {$I Compiler.inc} interface uses Classes, Math,Graphics, Contnrs, Forms, Controls, SysUtils, BaseUtils, ActnList, Properties.Obj, Properties.Definitions, StockChart.Definitions, StockChart.Definitions.Units, Properties.Controls, StockChart.Indicators, Serialization, FC.Definition...
{ Version 12 Copyright (c) 2011-2012 by Bernd Gabriel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
unit main; interface uses DDDK; const DEV_NAME = '\Device\MyDriver'; SYM_NAME = '\DosDevices\MyDriver'; IOCTL_QUEUE = $222000; // CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS) IOCTL_PROCESS = $222004; // CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_BUFFE...
unit Chain; //////////////////////////////////////////////////////////////////////////////// // // Author: Jaap Baak // https://github.com/transportmodelling/CHAINBLD // //////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////...
unit u_frameExamineList; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, u_CommonDef, StdCtrls, u_frameExamineItemUI, u_frameExamineItemUIBase; type TframeExamineList = class(TFrame) GridPanel1: TGridPanel; ScrollBox1: TScrollBox; proc...
{*******************************************************} { } { Borland Delphi Visual Component Library } { UpdateSQL Component Editor } { } { Copyright (c) 1997,19...
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+} {$M 16384,0,0} { by Behdad Esfahbod Algorithmic Problems Book April '2000 Problem 54 O(N2) Dfs Method } program FindingPathOnLineSegment; const MaxN = 50; type TSegment = record X1, Y1, X2, Y2 : Integer; end; var N : Integer; S : array [1 .. M...
// // This unit is part of the GLScene Project, http://glscene.org // {: GLSCUDAParser <p> Helper unit for parsing CU modules and get information about.<p> kernel's functions, textures, shared and constants memory.<p> <b>History : </b><font size=-1><ul> <li>13/04/11 - Yar - Added Ptx parsing t...
unit frm_SetupAlm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinBlueprint, dxSkinCaramel, dxSkinCoffee, dxSkinDarkRoom, dxSkinDarkSide, dxSkinDevExpressDarkStyle, dxSkinDevExpressStyle, dxSkinFoggy, dxSkinGlassOc...
unit DimensionGraphicsUnit; interface uses SysUtils, //System, DimensionsUnit, Graphics; function SpaceToBitmap(SpaceToConvert: TSpace) : TBitmap; function XYSpaceToBitmap(SpaceToConvert: TSpace; ZSpaceIndex: Integer) : TBitmap; implementation type TRGB24Bit = packed record R, G, B: b...
unit pengembalian_handler; interface uses tipe_data; const nmax = 1000; type pengembalian = record Username, ID_Buku, Tanggal_Pengembalian: string; end; tabel_pengembalian = record t: array [0..nmax] of pengembalian; sz: integer; // effective size ...
{*******************************************************} { } { Delphi FireMonkey Platform } { } { Copyright(c) 2011 Embarcadero Technologies, Inc. } { ...
unit CSCClient; interface uses Classes, Consts, Controls, Dialogs, Windows, Forms, Math, ExtCtrls, SysUtils, Messages, SyncObjs, CSCBase, CSCQueue, CSCTimer, CSCCustomBase, ScktComp; type TCSCClient = class( TCSCCustomCommBase ) protected FIPPort : TClientSocket; ...
unit uControl; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Grids, StdCtrls, ExtCtrls, DBGrids, Mask; type TFrmControl = class(TForm) Panel2: TPanel; LbBalance: TLabel; LbHours: TLabel; SGrid: TStringGrid; Panel1: TPanel; ...
{ GMPolygonFMX unit ES: contiene las clases FMX necesarias para mostrar polígonos en un mapa de Google Maps mediante el componente TGMMap EN: includes the FMX classes needed to show polygons on Google Map map using the component TGMMap ==================================================================...
unit SettingsController; interface uses System.IniFiles, System.SysUtils, Vcl.Forms; type TSettings = class(TObject) private FFileName: string; FIniFile: TIniFile; class var Instance: TSettings; function GetBodyTypesLandPatternFolder: string; function GetBodyTypesOutlineDrawingFolder: string;...
unit ThreadHandle; interface uses Classes; procedure StartGetData; procedure StopGetData; implementation type TGetData=class(TThread) protected // the main body of the thread procedure Execute; override; end; procedure TGetData.Execute; begin // execute codes inside the following block until the ...
unit uI200BD; interface uses IBQuery,SqlExpr,SysUtils,Contnrs, Dialogs, DB, ADODB, uRegistro,uRegistroBD; type TI200BD = class(TRegistroBD) private public function Inserir (const oRegistro : TRegistro) : Boolean; override; function Alterar (const oR...
unit uMenu; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, Buttons, uDmParametros, RLConsts, ActnList, jpeg, ExtCtrls; type TfMenu = class(TForm) MainMenu1: TMainMenu; Cadastros1: TMenuItem; Cidades1: TMenuItem; Usurios1: TMenuItem; ...
unit Unit_Form; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, ComCtrls, Forms, StrUtils, StdCtrls, ExtCtrls, CheckLst, Spin, Math, Dialogs, dglOpenGL, KromOGLUtils, RN_InputGeom, RN_Recast, RN_SampleInterfaces, RN_Sample, RN_SampleSoloMesh, RN_SampleTileMesh; type TForm1 = cl...
unit UnitStringCompression; interface uses ZLibEx, StreamUnit; function CompressString(Str: string): string; function DecompressString(Str: string): string; function StreamToStr(Stream: TStream): string; procedure StrToStream(S: string; Stream: TStream); implementation function StreamToStr(Stream: TStream): stri...
unit Security4D; interface uses System.SysUtils; type ESecurityException = class(Exception); EAuthenticatorException = class(ESecurityException); EAuthorizerException = class(ESecurityException); EAuthorizationException = class(ESecurityException); EAuthenticationException = class(ESecurityException); ...
unit FIToolkit.Config.TypedDefaults; interface uses System.SysUtils, System.Types, FIToolkit.Config.Defaults, FIToolkit.Config.Types; type TDefaultBooleanValue = class (TDefaultValueAttribute<Boolean>); TDefaultFileNameValue = class (TDefaultValueAttribute<TFileName>); TDefaultIntegerValue = class (TDefa...
unit CRC32U; interface uses Winapi.Windows, System.SysUtils; type TCrc32 = record public class procedure Hash(p: Pointer; ByteCount: DWORD; var CRCValue: DWORD); overload; static; class function Hash(input: string): DWORD; overload; static; end; implementation const Table: array [0 .. 255] of DWO...
//--------------------------------------------------------------------------- // This software is Copyright (c) 2015 Embarcadero Technologies, Inc. // You may only use this software if you are an authorized licensee // of an Embarcadero developer tools product. // This software is considered a Redistributable as ...
(***********************************************************) (* xPLRFX *) (* part of Digital Home Server project *) (* http://www.digitalhomeserver.net *) (* info@digitalhomeserver.net *) (****...
{*******************************************************} { } { Delphi LiveBindings Framework } { } { Copyright(c) 2011 Embarcadero Technologies, Inc. } { ...
unit MediaStream.PtzProtocol.Http; interface uses SysUtils, Classes, MediaStream.PtzProtocol.Base,Http.Cgi, Generics.Collections; type TPtzProtocol_Http = class (TPtzProtocol) private FAddress: string; FPort: Word; FUser, FPassword: string; procedure Init(const aAddress: string; aPort: Word; co...
unit DrillType; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Grids, Buttons, DB, ExtCtrls; type TDrillTypeForm = class(TForm) btn_ok: TBitBtn; btn_cancel: TBitBtn; Gbox: TGroupBox; sgDrillType: TStringGrid; gbox2: TGroupBox; ...
unit xTCPServerBase; interface uses xCommBase, System.Types, xTypes, System.Classes, xFunction, system.SysUtils, IdBaseComponent, IdComponent, IdCustomTCPServer, IdTCPServer, IdGlobal, IdContext; type /// <summary> /// 客户端状态改变事件 /// </summary> TTCPClientChangeEvent = procedure( AIP: string; n...
unit DataMod; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, IBDatabase, IBCustomDataSet, IBUpdateSQL, IBQuery, Db, IBTable; type TCacheData = class(TDataModule) CacheDS: TDataSource; IBDatabase1: TIBDatabase; IBCacheQuery: TIBQuery; IBUpdateSQL: TIBUpd...
unit Dialogs4D.Modal.Warning; interface uses Dialogs4D.Modal.Intf; type TDialogModalWarning = class(TInterfacedObject, IDialogModal) private /// <summary> /// Displays a dialog box for the user with a warning message. /// </summary> /// <param name="Content"> /// Warning message to be dis...
unit fSelectDuplicates; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Buttons, StdCtrls, ExtCtrls, KASComboBox, uFileView; type { TfrmSelectDuplicates } TfrmSelectDuplicates = class(TForm) btnApply: TBitBtn; btnCancel: TBitBtn; btnOK...
(***************************************************************************** * Pascal Solution to "Mind Your PQs" from the * * * * Seventh Annual UCF ACM UPE High School Programming Tournament * ...
{*******************************************************} { } { Delphi FireMonkey Platform } { Copyright(c) 2015-2018 Embarcadero Technologies, Inc. } { All rights reserved } { ...
(* This is a reference document for my personal use. I want to have a consistent coding style in Pascal, that is why I would like to have something like a reference cheat sheet to look at when in doubt. 1. Start each program, however small it may be, with the following line: {$mode objfpc}{$H+}{$J-} I read ...
unit Classe_VerificacaoInicial; interface uses Classes, Dialogs, SysUtils, TiposDeDados; type TVerificacaoInicial = class private function getAcessoNegado: boolean; function getValidadeCertificado: TDateTime; protected FValidadeDoSistema, FValidadeCertificado : TDateTime; FStatusIn...
unit UMensagens; interface resourcestring //Geral STR_ATENCAO = 'Atenção'; STR_CAPTION_ABA_CONSULTAS = '%d - %s...'; STR_TODOS = 'Todos'; STR_ATUALIZADO = 'atualizado(a)'; STR_GRAVADO = 'gravado(a)'; STR_EXCLUIDO = 'excluido...
program test; {$mode objfpc}{$H+} uses Classes, SysUtils, StrUtils, QTemplate; type { TQTemplateTest } TQTemplateTest = class(TQTemplate) public constructor Create(const AStream: TStream); override; function ReplaceTitle(const ATag: String; AParams: TStringList): String; function ReplaceI...
program FileReq; uses DOS, { FindFirst, FindNext, SearchRec, DirStr, NameStr, ExtStr } StrUtil {RepeatStr}, BTREE {STree, CompProc, TreePtr}, CRT ; {$F+} CONST WildSpec = '*.*'; DirAtr = '<DIR>'; TYPE NameStr = String[12]; NameStrPtr = ^NameStr; FNameRecPtr = ^FNameRec; FNameRec = ...