text
stringlengths
14
6.51M
{----------------------------------------------------------------------------} { Written by Nguyen Le Quang Duy } { Nguyen Quang Dieu High School, An Giang } {----------------------------------------------------------------------------} ...
program Fibonacci; // Compiler mode objfpc // This is the same mode as FPC mode, but it also includes classes, interfaces and exceptions. // In this case used for optional parameters, the rest of de code is FPC compliant. {$mode objfpc} uses math, sysutils; type Int64Array = array of Int64; function fib(n: Int64)...
unit window; {$mode objfpc}{$H+} interface uses base; function Hamming(Width: longint): TVector; function Hann(Width: longint): TVector; function Cosine(Width: longint): TVector; function Lanczos(Width: longint): TVector; function Tukey(Width: longint; alpha: double): TVector; function Blackman(Width: ...
unit ULuaEngine; interface uses Windows,Classes,LuaLib,GD_Utils; type TLuaState = Lua_State; TProc = function(L: TLuaState): Integer of object; TCallback = class FuncName:string; Routine: TMethod; // Code and Data for the method Exec: TProc; // Resulting execution function end; TL...
unit IdCoder3To4; interface uses Classes, IdCoder, IdException; const // Coding Table Length (CTL) values CTL3To4 = 64; HalfCodeTable = CTL3To4 div 2; Base64CodeTable: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; UUCodeTable: string = '`!"#$%&''()*+,-./01234567...
unit ClassDBF; interface uses Classes, SysUtils, Dialogs; type PFldDesc = ^TFldDesc; TFldDesc = record FldName : array[1..11] of char; FldType : char; FldAddr : word; FldLength : byte; end; THeader = record Compatibility : byte; Rok, Mesiac, Den : byte; ...
unit UpdateBDEParametersUnit; interface uses BDE, DBTables, Classes, SysUtils, Forms, Dialogs, DB; Procedure UpdateBDEParameters(Application : TApplication); const DBASEVERSION = '\DRIVERS\DBASE\INIT\;VERSION'; DBASETYPE = '\DRIVERS\DBASE\INIT\;TYPE'; DBASELANGDRIVER = '\DRIVERS\DBASE\INIT\;LANGDRIVER'; DBA...
unit u_xpl_event; {============================================================================== UnitName = uxPLEvent UnitDesc = xPL timer management object and function UnitCopyright = GPL by Clinique / xPL Project ============================================================================== ...
{** * @Author: Du xinming * @Contact: QQ<36511179>; Email<lndxm1979@163.com> * @Version: 0.0 * @Date: 2018.10 * @Brief: *} unit org.algorithms.queue; interface uses WinApi.Windows, org.algorithms; type TQueueType = (qtLinked, qtFixed, qtFlexible); TLinkedItem<T> = class private FNext: TLinkedIt...
// // Copyright (c) 2009-2010 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
object Form1: TForm1 Left = 0 Top = 0 BorderIcons = [biSystemMenu, biMinimize] BorderStyle = bsSingle Caption = 'Registro Diamond' ClientHeight = 578 ClientWidth = 660 Color = clWindow Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -12 Font.Name = 'Tahoma' Font.Style = ...
{*******************************************************} { } { Borland Delphi Visual Component Library } { Web server application components } { } { Copyright (c) 2001 Bo...
unit ColorComboEdit; interface uses Windows, Types, UITypes, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, RxCombos, CommDlg; type TColorComboEdit = class(TColorComboBox) private { Private declarations } FColorDlg: TColorDialog; FCanTransparent: boolean; procedure Set...
unit DUnitTestRunner; interface uses System.SysUtils, TextTestRunner, {$IFDEF CLR} {$IF RTLVersion <= 20.00} // RS 2009 or earlier NGuiTestRunner, {$ENDIF} {$ENDIF} {$IFDEF MSWINDOWS} {$IFNDEF NEXTGEN} Vcl.Forms, GuiTestRunner, {$ENDIF NEXTGEN} {$ENDIF} TestFramework; procedure RunRegis...
unit U_Param_Mod; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, U_ParamReadWrite, StdCtrls, Buttons; type TF_Param_Mod = class(TF_ParamReadWrite) btn_read: TBitBtn; btn_write: TBitBtn; chk_plc_frequency: TCheckBox; cbb_plc_frequency: TComboBo...
{ @html(<b>) Timer @html(</b>) - Copyright (c) Danijel Tkalcec @html(<br><br>) Thread-safe timer class, tightly coupled with the RTC Window Handle and Thread Pool mechanisms. @html(<br>) This class is used internally by TRtcConnection and all its descendant classes to implement the timeout, reconn...
(**********************************************************************************) (* Code generated with NexusDB Enterprise Manager Data Dictionary Code Generator *) (* *) (* Version: 3,0101 ...
unit u_Comm; interface uses Windows, Forms, Messages, ComCtrls, SysUtils, Variants, Classes, SyncObjs, IniFiles , UniDBC, u_OneIC, u_Mes, u_CommBag; type TPDAConnInfo = record TID: THandle; IP: string; Port: Word; CreateTime: TDateTime; LastActiveTime: TDateTime; end; proce...
{*******************************************************} { } { Delphi DataSnap Framework } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit fileutil; interface function GetFileSize(const f: string): Int64; implementation uses Windows, sysUtils; function GetFileSize(const f: string): Int64; var Handle: THandle; FindData: TWin32FindData; begin Handle := FindFirstFile(PChar(f), FindData); if Handle <> INVALID_HANDLE_VALUE then begin Wind...
unit ClientsList; interface uses Classes, StdCtrls, SysUtils, Contnrs, ScktComp, Client, CommonUtils; type TClientsList = class(TObjectList) constructor Create; public // Синхронизация с отображением procedure Sync; function IsNickInUse(NickName: string) : boolean; ...
unit Form.EditCategory; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Form.BaseEditForm, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, dxSkinsCore, dxSkinMetropolis, cxClasses, dxSkinsForm, ...
{**************************************************************************************************} { } { Project JEDI Code Library (JCL) } { ...
unit WasmSample_Threads; interface uses System.Classes, System.SysUtils , Wasm {$ifndef USE_WASMER} , Wasmtime {$else} , Wasmer {$ifend} ; function ThreadsSample() : Boolean; implementation const N_THREADS = 10; const N_REPS = 3; // A function to be called from Wasm code. function callback(const args : P...
unit GrupoEditFormUn; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, osCUSTOMEDITFRM, Wwintl, Db, DBClient, osClientDataset, ActnList, StdCtrls, Mask, DBCtrls, Grids, DBGrids, ComCtrls, wwdbedit, Wwdotdot, Wwdbcomb, Menus, ImgList, osActionList, ToolWin, Bu...
unit uSurgery; interface uses SysUtils, Windows, Messages, Controls, Classes, StdCtrls, ORfn, dialogs; type TSurgeryTitles = class public ClassName: string; DfltTitle: Integer; DfltTitleName: string; ShortList: TStringList; constructor Create; destructor Destroy; override; end; funct...
unit vr_fpg; {$mode delphi}{$H+} {$I vrode.inc} interface uses SysUtils, Classes, vr_types, vr_utils, fgl, vr_intfs, RtlConsts, Math; type { TGThreadObjectList } TGThreadObjectList<T{$IF FPC_FULLVERSION >= 030200} : TObject{$ENDIF}> = class(TObject) private type TObjectList_T = TFPGObjec...
unit RN_Helper; interface uses SysUtils; type TCompareIndicesFunction = function (const A,B: Pointer): Integer; procedure qSort(aBuffer: Pointer; aCount: Integer; aSize: Integer; Compare: TCompareIndicesFunction); function Sscanf(const s: string; const fmt: string; const Pointers: array of Pointer): Integer; ...
unit FIToolkit.Runner.Exceptions; interface uses FIToolkit.Commons.Exceptions; type ECommonTaskException = class abstract (ECustomException); { Task manager exceptions } ETaskManagerException = class abstract (ECustomException); ESomeTasksFailed = class (ETaskManagerException); { Task runner except...
{ ************************************************************** Package: XWB - Kernel RPCBroker Date Created: Sept 18, 1997 (Version 1.1) Site Name: Oakland, OI Field Office, Dept of Veteran Affairs Developers: Danila Manapsal, Joel Ivey Description: Contains TRPCBroker and related components. Unit: RpcSLogin S...
program stack; const STACK_ELEMENTS = 18; type TStack = record data: array of integer; head: integer; end; procedure stack_init(var stack: TStack); begin SetLength(stack.data, STACK_ELEMENTS); stack.head := 0; end; procedure stack_destroy(var stack: TStack); begin stack_init(...
unit TablasComis; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, TB2Dock, TB2Toolbar, ComCtrls, TB2ExtItems, TBXExtItems, TBX, AxCtrls, OleCtrls, StdCtrls, Mask, RxToolEdit, Menus, VCIF1Lib_TLB,IniFiles, LibApp, RxPlacemnt, RXCtrls, ExtCtrls, RXSpin, ProductoS...
// Example showing TProcess usage and setting environment program TProcessExample2; {$mode objfpc} {$h+} uses sysutils, classes, process; procedure DoLog(s: string); begin writeln(s); end; function RunProcess(const Binary: string; args: TStrings): boolean; const BufSize = 2048; var p: TProce...
namespace RemObjects.SDK.CodeGen4; {$HIDE W46} interface type CocoaRodlCodeGen = public class (RodlCodeGen) private fCachedNumberFN: Dictionary<String, String> := new Dictionary<String, String>; property IsSwift: Boolean read Generator is CGSwiftCodeGenerator; property IsObjC: Boolean read...
unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm1 = class(TForm) ButtonMyAdd: TButton; EditValue1: TEdit; EditValue2: TEdit; EditResult: TEdit; LabelAn...
unit uArquivoUDL; interface uses System.Classes, System.SysUtils, System.IniFiles; type TArquivoUdl = class private FDataSource: string; FsecurityInfo: Boolean; FuserId: string; Fcatalogo: string; Fpassword: string; FintegratedSecurity: string; public property dataSource : s...
unit Ths.Erp.Database.Connection.Settings; interface {$I ThsERP.inc} uses Vcl.Forms, System.SysUtils, System.IniFiles; type TConnSettings = class private FLanguage: string; FDBUserPassword: UnicodeString; FDBPortNo: Integer; FDBUserName: UnicodeString; FSQLServer: UnicodeString; FDatab...
unit New_Crt; INTERFACE const BW40 = 0; CO40 = 1; BW80 = 2; CO80 = 3; C40 = CO40; C80 = CO80; Black = 0; Blue = 1; Green = 2; Cyan = 3; Red = 4; Magenta = 5; Brown = 6; LightGray = 7; DarkGray = 8; LightBlue = 9; LightGreen = 10; LightCyan = 11; LightRed = 12; Lig...
unit ADOTools; { ADOTools: thin ADODB wrapper. https://github.com/stijnsanders/DataLank } interface uses SysUtils, ADODB_TLB; type TADOLink=class(TObject) private FConnection:Connection; public constructor Create(const ConnectionString: WideString); destructor Destroy; override; function...
unit FIToolkit.Config.Data; interface uses System.SysUtils, System.Types, FIToolkit.Commons.Types, FIToolkit.Config.FixInsight, FIToolkit.Config.Types, FIToolkit.Config.TypedDefaults, FIToolkit.Config.Consts; type DefaultDeduplicate = class (TDefaultBooleanValue); //FI:C104 DefaultExcludeP...
unit uViewInclusao; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls; type TListaEvent = procedure of object; // Aqui é uma grande sacada pois a variável abaixo // FDOLista recebe um procedimento...
unit taTypes; interface uses System.Generics.Collections, System.SysUtils, Data.DB, System.Classes; type TTimePeriod = record Start: TDateTime; Duration: Integer; Tags: string; strict private function GetFinish: TDateTime; procedure StringsTrim(AStrings: TStrings); procedure TagsFromStr...
{*******************************************************} { } { Delphi Visual Component Library } { Registration of Web server application and } { internet components } { ...
unit UnRelatorioModelo; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, FMTBcd, DB, DBClient, Provider, SqlExpr, { helsonsant } Util, DataUtil, UnModelo; type TRelatorioModelo = class(TModelo) SqlTemp: TSQLDataSet; protected function GetSQL: TSql...
namespace WxListboxDemo; interface uses Wx, System.IO, System.Drawing, System; type MyFrame = class(Frame) protected mainsizer, editsizer, logosizer: BoxSizer; toppanel, logopanel, logofillerleft, logofillerright: Panel; textbox: TextCtrl; addbutt...
unit Unit3_WithPublicVersion; interface uses System.Classes, System.SysUtils; type ICommand = interface procedure Execute(); end; TFooInfo = record Kind: TTypeKind; PropertyName: string; ClassName: string; function isAvaliableForInjection(const aInjection: TVarRec): boolean; end; t...
{ ****************************************************************************** } { Fast KDTree Single Type support } { ****************************************************************************** } { * https://zpascal.net ...
{*! * Fano Web Framework (https://fanoframework.github.io) * * @link https://github.com/fanoframework/fano * @copyright Copyright (c) 2018 Zamrony P. Juhara * @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT) *} unit ControllerImpl; interface {$MODE OBJFPC} uses DependencyIn...
namespace RemObjects.Elements.System; interface uses Foundation; type NSCountedSet<T> = public class mapped to Foundation.NSCountedSet where T is class; public { Class Constructors } class method &set: id; mapped to &set; class method setWithArray(&array: NSArray<T>): id; mapped t...
unit OS.MutexManager; interface uses Windows; type TMutexManager = class private MutexHandle: THandle; MutexName: String; public constructor Create(const MutexNameToUse: String); destructor Destroy; override; function OpenMutex: Boolean; function CreateMutex: Boolean; procedure Re...
//////////////////////////////////////////////////////////////////////////////// // IdSyslogServer component // Server-side implementation of the RFC 3164 "The BSD syslog Protocol" // Original Author: Stephane Grobety (grobety@fulgan.com) // Copyright the Indy pit crew // Release history: // 08/09/01: Dev started...
unit AManutencaoNotas; { Autor: Rafael Budag Data Criação: 19/05/1999; Função: Consultar as notas fiscais Motivo alteração: } interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, StdCtrls, Componentes1, ExtCtrls, PainelGradiente,...
{*******************************************************} { } { Delphi DBX Framework } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit PathGroups; interface uses classes, sysUtils, // DirectoryStat, ExtensionTypeManager; type TPathGroups = class(TStringList) protected // (object associé) mysuminfo : Tsuminfo; private fReference : TStringList; function GetGroupName(Key : String) : String; procedure SetGroupName(Key : String; val...
unit BaseComponentsQuery; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, ...
(* * (c) Copyright 1994, MAP Ltd., Veldhoven * * Function : SPV11.PAS * * Abstract : Set Ports Version 1.1 * * Description : see Summary * * History : MV ð Menno A.P.J. Vogels * * Version 1.0 source, 94-05 * * 940616, added DecodeStr function & StripZeroParam procedure and * ...
unit uMain; interface procedure RestartService(const AServiceName: string; const AExeName: string); procedure RestartJYAppUpdateService; implementation uses Windows, Psapi, SysUtils, StrUtils; //var // strCurrPath: string; {function GetCurrPath: string; begin result := ExtractFilePath(Applic...
unit iaUnitTest.TThreadedQueue.ExerciseQueue; interface uses DUnitX.TestFramework, System.Generics.Collections, iaExample.ProducerThread, iaExample.ConsumerThread; type [TestFixture] TiaTestMultiThreadedProducerAndConsumer = class(TObject) private fConsumers:Array of TExampleLinkedC...
unit mainform; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Menus, Vcl.Grids, Vcl.ValEdit, Vcl.ComCtrls, Vcl.ExtCtrls, Ap, mlpbase, calc_utils; type TMainFormExtrapolation = class(TForm) ...
unit UnContasPagarListaRegistrosView; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Grids, DBGrids, StdCtrls, JvExControls, JvButton, DB, JvTransparentButton, ExtCtrls, { Fluente } Util, DataUtil, UnModelo, UnContasPagarListaRegistrosModelo, Componentes, ...
{*******************************************************} { } { Borland Delphi Visual Component Library } { Remote Data Module support } { } { Copyright (c) 1997,98...
unit uQuoteCommandHandler; interface uses uCommandHandler, uTokenizer, dmConnection; type TQuoteCommandHandler = class(TCommandHandler) function HandleCommand(const AConnection: TConnectionData; const ATarget: string; const ATokenizer: TTokenizer): string; override; end; implementation uses SysUtils; { TQ...
unit UnitFormInterrogate; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, System.Generics.Collections, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, stringgridutils, stringutils, System.ImageList, Vcl.ImgList, UnitFormCurrentParty; ty...
{*******************************************************} { } { Delphi REST Client Framework } { } { Copyright(c) 2014-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit UnProdutoSearch; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.StdCtrls, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.ComCtrls, Data.DB, Data.SqlExpr, Data.FMTBcd, Datasnap.Provider, Datasnap.DBClient, Data.DBXFirebird, Vcl.Grid...
unit WinAPI.HSTRINGIterables; interface uses System.Win.WinRT, WinAPI.CommonTypes, System.Generics.Collections, WinAPI.WinRT; type THSTRINGList = class(TList<HSTRING>) public procedure AddAsCopy(const AHSTRING: HSTRING); end; TIterableHSTRING = class(TInspectableObject, IIterable_1__HSTRING) priva...
unit NtUtils.Security.AppContainer; interface uses Winapi.WinNt, Ntapi.ntrtl, NtUtils.Exceptions, NtUtils.Security.Sid; { Capabilities } // Convert a capability name to a SID function RtlxLookupCapability(Name: String; out CapabilityGroupSid, CapabilitySid: ISid): TNtxStatus; { AppContainer } // Convert an Ap...
unit fInspector; interface uses Windows, Types, UITypes, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Ex_Grid, Ex_Inspector, StdCtrls, ExtCtrls, ImgList, FlexBase, FlexProps, FlexControls, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, cxScrollBox, dx...
unit DUnitXMLParser; interface uses System.SysUtils, System.Variants, Xml.xmldom, Xml.XMLIntf, Xml.Win.msxmldom, Xml.XMLDoc, TestStructureUnit, RTTI, System.Generics.Collections; type TTestsXMLParser = class private FXMLFileName: string; FXMLDocument: IXMLDocument; function GetRootNode: IXMLNode...
{*************************************************************} { } { Embarcadero Delphi Visual Component Library } { InterBase Express core components } { } ...
unit mCoverSheetDisplayPanel_CPRS_Appts; { ================================================================================ * * Application: CPRS - Coversheet * Developer: doma.user@domain.ext * Site: Salt Lake City ISC * Date: 2015-12-08 * * Description...
unit Model.CoffeMachine; interface uses SysUtils, Math; type TGrindSize = (gsSuperFine, gsFine, gsMediumFine, gsMedium); TCoffeeSelection = (csNone, csRistretto, csEspresso, csDoppio, csLungo); TBeanAmount = (baClassic, baLight, bsExtraStrong); TMachineWarning = (mnNonw, mwNoBeans, mwNoWater, mvGrinderJa...
{*****************************************} { TeeChart Pro } { TPoint3DSeries } { Copyright (c) 1995-2004 David Berneda } {*****************************************} unit TeePoin3; {$I TeeDefs.inc} interface Uses {$IFNDEF LINUX} Windows, Messages, {$ENDI...
unit uFuncionarioEdt; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls, Vcl.ComCtrls, ENumEd, EChkCPF, Vcl.Mask, EDBDate, EDateEd, Vcl.Grids, Vcl.Samples.Cale...
unit Module.ValueObject.StringVO; interface type IStringVO = interface(IInterface) ['{A362E218-6B58-4837-A4BF-E2CD070C7C49}'] function AsString: string; end; implementation end.
unit uUploadVio; interface uses System.Classes, SysUtils, ActiveX, uGlobal, uRequestItf, uJsonUtils, FireDAC.Comp.Client, Generics.Collections; type TUploadVioThread = class(TThread) private procedure UploadVio(systemid: String); procedure GetVio; protected procedure Execute; override; end; ...
unit LoanList; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseDocked, Vcl.StdCtrls, RzLabel, Vcl.ExtCtrls, RzPanel, Data.DB, Vcl.Mask, RzEdit, Vcl.Grids, Vcl.DBGrids, RzDBGrid, LoanListIntf, DockedFormIn...
unit ClassLetterStack; interface uses ClassLetters; type TStack = array[1..7] of TLetter; TLetterStack = class private FLetters : TLetters; FStack : TStack; public constructor Create( Letters : TLetters ); destructor Destroy; override; procedure PopStack( Lett...
{**********************************************} { TRotateTool Editor } { Copyright (c) 1999-2004 by David Berneda } {**********************************************} unit TeeRotateToolEditor; {$I TeeDefs.inc} interface uses {$IFNDEF LINUX} Windows, Messages, {$ENDIF} SysUt...
unit ProcRefUnit; interface uses NotifyEvents; type // —сылка на метод обрабатывающий данные запроса TProcRef = reference to procedure(ASender: TObject); IHandling = interface(IInterface) procedure Process(AProcRef: TProcRef; ANotifyEventRef: TNotifyEventRef); end; implementation end.
object FormBitPatternHelp: TFormBitPatternHelp Left = 0 Top = 0 BorderStyle = bsToolWindow Caption = 'Bit Pattern Usage' ClientHeight = 536 ClientWidth = 769 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style =...
unit uEventModel; interface uses uBase, Classes, SysUtils, Generics.Collections, uExceptions, uExceptionCodes, Variants; type TEventID = string; ISubscriber = interface procedure ProcessEvent( const aEventID : TEventID; const aEventData : variant ); end; TBaseSubscriber = ...
unit ExportCSV; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, Menus, db, Oracle, OracleData, RXCtrls, Animate, GIFCtrl, ImgList; type TFmExportCSV = class(TForm) Panel1: TPanel; OracleQuery1: TOracleQuery; Image1: TImage; R...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, TlHelp32; type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; Button4: TButton; Memo1: TMemo; Button5: TButton; Button6: TButton; ...
{*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1995-2001 Borland Software Corporation } { ...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, Menus, engine.databases; type { TMainForm } TMainForm = class(TForm) MainMenu: TMainMenu; Memo: TMemo; MenuItemGetCountMsgs: TMenuItem; MenuItemGetFriendCount: TMenuItem; MenuI...
unit VM_INTF; interface {$IFDEF FPC} {$MODE DELPHI} {$ENDIF} uses SysUtils, VM.Invoke, xmldom, XMLDoc, XMlIntf; implementation type IMyIntf = interface ['{965AC8F3-6952-41C7-BFB9-41D48BF3D860}'] function GetInt: Integer; procedure SetInt(V: Integer); end; TMyIntf = class(TInterfacedObject, IMy...
// // This unit is part of the GLScene Project, http://glscene.org // { : GLSDLWindow<p> Non visual wrapper around basic SDL window features.<p> <u>Notes to Self:</u><br> Unit must ultimately *NOT* make use of any platform specific stuff, *EVEN* through the use of conditionnals.<br> SDL-specifics ...
unit uFileCopyEx; {$mode objfpc}{$H+} interface uses Classes, SysUtils; const FILE_COPY_NO_BUFFERING = $01; type TFileCopyProgress = function(TotalBytes, DoneBytes: Int64; UserData: Pointer): LongBool; TFileCopyEx = function(const Source, Target: String; Options: UInt32; ...
unit eBackupSystemHelpers; interface uses Windows; function GetFolderDate(const iFolder:string):TDateTime; function FileTimeToDateTime(const iTime:TFileTime):TDateTime; implementation uses SysUtils; function GetFolderDate(const iFolder:string):TDateTime; var lSearch:TSearchRec; lOk:dword; ...
unit testnearestneighborunit; interface uses Math, Sysutils, Ap, tsort, nearestneighbor; function TestNearestNeighbor(Silent : Boolean):Boolean; function testnearestneighborunit_test_silent():Boolean; function testnearestneighborunit_test():Boolean; implementation procedure Unset2D(var A : TComplex2DArray)...
unit uFrmAutoEntity; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ImgList, ComCtrls, AdvMemo, ExtCtrls, ToolWin, DB, ADODB, IniFiles, StdCtrls; type TFrmAutoEntity = class(TForm) tlb1: TToolBar; spl1: TSplitter; tvTables: TTreeVie...
unit PascalCoin.RPC.Node; interface uses System.Generics.Collections, PascalCoin.Utils.Interfaces, PascalCoin.RPC.Interfaces, System.JSON; type TPascalCoinNodeStatus = class(TInterfacedObject, IPascalCoinNodeStatus) private FReady: Boolean; FReady_S: String; FStatus_S: String; FPort: Integer; ...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit ccdatasetutils; { Dataset Utils - Delphi / Lazarus Helper ------------------------------------ Author : Tigor M Manurung Email : tigor@tigorworks.com Helper for TDataset :) } interface uses classes,sysutils,db; type {$IFNDEF fpc} TDatasetLoopProc = reference to procedure(); TDatasetL...
unit FlowTestForm; interface // running this program raises an exception by design uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Layouts, FMX.Memo, FMX.Controls.Presentation, FMX.ScrollBox; ...
unit IdComponent; interface uses Classes, IdAntiFreezeBase, IdBaseComponent, IdGlobal, IdStack, IdResourceStrings, SysUtils; type TIdStatus = (hsResolving, hsConnecting, hsConnected, hsDisconnecting, hsDisconnected, hsText); const IdStati: array[TIdStatus] of string = ( RSStatusRes...
unit LoanAssessmentDetail; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BasePopupDetail, Data.DB, Vcl.Grids, Vcl.DBGrids, RzDBGrid, RzDBEdit, Vcl.StdCtrls, Vcl.Mask, RzEdit, RzButton, RzTabs, RzLabel, Vcl....
unit uFaixaInteger; interface type TFaixaInteger = record fiDe, fiAte : Integer; end; TArrayFaixaInteger = Array of TFaixaInteger; function ArrayFaixaIntegerToString(A: TArrayFaixaInteger): String; procedure ArrayFaixaIntegerFromString(var A: TArrayFaixaInteger; S: String); function IntegerDentroFaixa(A...