text
stringlengths
14
6.51M
unit BankAccount; interface uses Bank; type TBankAccount = class(TObject) private FBank: TBank; FAccountNo: string; FCardNo: string; FCardExpiry: TDate; public property Bank: TBank read FBank write FBank; property AccountNo: string read FAccountNo write FAccountNo; property CardNo...
{********************************************} { TeeChart Pro Charting Library } { Copyright (c) 1995-2004 by David Berneda } { All Rights Reserved } {********************************************} unit TeeTransposeTool; {$I TeeDefs.inc} interface uses {$IFDEF CLR} Classes, ...
unit func_ccreg_set24; interface implementation type TEnum24 = (_a00,_a01,_a02,_a03,_a04,_a05,_a06,_a07,_a08,_a09,_a10,_a11,_a12,_a13,_a14,_a15,_a16,_a17,_a18,_a19,_a20,_a21,_a22,_a23); TSet24 = packed set of TEnum24; function F(a: TSet24): TSet24; external 'CAT' name 'func_ccreg_set24'; var a, r: TSet24; ...
unit uGMV_DLLCommon; { ================================================================================ * * Application: Vitals * Revision: $Revision: 1 $ $Modtime: 1/16/09 2:17p $ * Developer: dddddddddomain.user@domain.ext * Site: Hines OIFO * * Description: Common DLL ...
unit ORRadioCheck; interface uses Windows, Classes, SysUtils, ComCtrls, ExtCtrls, StdCtrls, Controls, Graphics, Messages, ORStaticText; const OR_DEFAULT_SPACING = 3; DEFAULT_ICON_SIZE = 17; // default size DEFAULT_MAX_WIDTH = 0; type TORRadioCheck = class(TPanel) private fCheck: TCheckbox; fRadi...
unit ncaFrmEditFunc; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, cxLabel, PngImage, ExtCtrls, LMDControl, LMDCustomControl, LMDCustomPanel, LMDCustomBevelPanel, LMDSimpleP...
unit RegFIBPlusEditors; interface {$I ..\FIBPlus.inc} uses Windows,Classes, {$IFDEF D_XE2} Vcl.StdCtrls,Vcl.Forms,Vcl.ExtCtrls,Vcl.Dialogs, {$ELSE} StdCtrls,Forms,ExtCtrls,Dialogs, {$ENDIF} SysUtils,pFIBInterfaces, TypInfo, FIBDatabase, {$IFDEF D6+} DesignEditors,DesignIntf, Variants//,Types {$else}...
unit mGMV_SystemParameters; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, // TRPCB, StdCtrls, CheckLst, ExtCtrls // , u_Common ; type TfraSystemParameters = class(TFrame) Panel1: TPanel; pnlBottom: TPanel; Label1: TLabel; Label3:...
unit UShapes; {$mode objfpc}{$H+} interface uses Classes, Graphics, UViewPort, UGeometry, math, LCLIntf, LCLType, sysutils, UBaseShape; type { TFill } TBrushColor = type TColor; TFill = class abstract(TShape) private FBrushColor: TBrushColor; FBrushStyle: TBrushStyle; procedure Set...
{**********************************************} { TCustomBoxSeries } { TBoxSeries } { THorizBoxSeries } { } { Copyright (c) 2000-2004 by } { Marjan Slatinek and Da...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC SQL script engine standard commands } { } { Copyright(c) 2004-2018 Embar...
unit Support.Transcend; interface uses SysUtils, Support, Device.SMART.List; type TTranscendNSTSupport = class sealed(TNSTSupport) private InterpretingSMARTValueList: TSMARTValueList; function GetSemiSupport: TSupportStatus; function GetTotalWrite: TTotalWrite; function IsProductOfTranscend: ...
{*******************************************************} { } { Delphi FireMonkey Platform } { } { Copyright(c) 2011 Embarcadero Technologies, Inc. } { ...
PROGRAM FibonacciRI; USES IntStack; CONST MAX = 21; TYPE IntArray = ARRAY[0..MAX] of INTEGER; CONST FIBONACCI: IntArray=(0, 1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946); FUNCTION Fib(n: INTEGER): INTEGER; BEGIN IF n = 0 THEN Fib := 0 ELSE IF n = 1 THEN Fib := 1 EL...
unit BowlingInt; // unit containing the interfaces and data structures for the app interface uses Generics.Collections; // apparently this version of Delphi doesn't have spring.collections type // Represents the state the frame is in at any given time TBowlFrameType = (frameIncomplete, // frame with incomple...
(***********************************************************) (* xPLRFX *) (* part of Digital Home Server project *) (* http://www.digitalhomeserver.net *) (* info@digitalhomeserver.net *) (****...
// // This unit is part of the GLScene Project, http://glscene.org // {: Types3DS<p> Implements the standard Teapot, build from evaluators.<p> <b>History : </b><font size=-1><ul> <li>06/04/08 - DaStr - Fixed sizes of some array pointer types. Now $R- is not required for...
unit osUrl; interface uses SysUtils; function UrlDecode(url: string): string; implementation function UrlDecode(url: string): string; var i: integer; decodedUrl: string; begin decodedUrl := ''; i := 1; while (i<=(length(url))) do begin if url[i]='%' then begin ...
unit CustomerSelect; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Grids, DBGridEh, DB, ComCtrls, ToolWin; type TCustomerSelectForm = class(TForm) Panel1: TPanel; CancelButton: TButton; OKButton: TButton; D...
unit Ntapi.nttmapi; {$MINENUMSIZE 4} interface uses Winapi.WinNt, Ntapi.ntdef; const // Transaction manager // WinNt.21983 TRANSACTIONMANAGER_QUERY_INFORMATION = $0001; TRANSACTIONMANAGER_SET_INFORMATION = $0002; TRANSACTIONMANAGER_RECOVER = $0004; TRANSACTIONMANAGER_RENAME = $0008; TRANSACTIONMANA...
Unit morphmath; Interface Uses Windows; Type PVector3D = ^Vector3D; Vector3D=Packed Object X:Single; Y:Single; Z:Single; Function Equals(Const B:Vector3D):Boolean; Function Dot(Const B:Vector3D):Single; Procedure Add(Const B:Vector3D); Procedure Subtract...
unit FilterRoutines; interface procedure DoConvert (const inputfile, outputfile: string; flag: Char); procedure ConvUpper; procedure ConvCapitalize; procedure ConvSymbols; implementation uses SysUtils; var FileIn, FileOut: TextFile; FileLength: LongInt; procedure DoConvert (const inputfile, outputfile: s...
(** This module contains a class / interface for managing a response file for collecting the files from the IDE project for zipping into an archive. @Author David Hoyle @Version 1.0 @Date 13 Jan 2018 **) Unit ITHelper.ResponseFile; Interface {$INCLUDE 'CompilerDefinitions.inc'} Uses ToolsAPI, ...
unit UnMensagemView; interface uses // VCL Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, ImgList, System.ImageList, // JEDI JvExControls, JvButton, JvTransparentButton; type TMensagemView = class(TForm) pnlDesktop: TPanel; pnlTitle: TPanel...
{ @html(<b>) Data Server Components @html(</b>) - Copyright (c) Danijel Tkalcec @html(<br><br>) This unit implements a set of Server-side Data components. @Link(TRtcDataServer) implements a wrapper for all Request/Response based server-side connection components. By linking one or more @Link(TRtcDataSe...
unit fOrdersRelease; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, fAutoSz, StdCtrls, ORFn, ORCtrls, ExtCtrls, UBACore, UBAGlobals, VA508AccessibilityManager; type TfrmReleaseOrders = class(TfrmAutoSz) Panel1: TPanel; lstOrders: TCaptionListBox; Label1: ...
unit MD.DAO.Client; interface uses MD.Model.Classes, System.Generics.Collections, System.SysUtils; type TDAOClient = class private function CopyClient(AClient: TClient): TClient; public procedure insert(Client: TClient); procedure update(Client: TClient); procedure delete(Id: Integer); ...
unit IdException; interface uses SysUtils; type EIdException = class(Exception); TClassIdException = class of EIdException; EIdAlreadyConnected = class(EIdException); EIdSilentException = class(EIdException); EIdInvalidServiceName = class(EIdException); EIdProtocolReplyError = class(EIdException) p...
uses Classes, SysUtils; {procedure TestStringList;} var Dictionary: TStringList; name: String; answer: String; begin Dictionary := TStringList.Create; { add coubtry} Dictionary.AddPair('Россия', 'Москва'); Dictionary.AddPair('Беларусь', 'Минск'); Dictionary.AddPair('Ливия',...
unit Stats.PedsDatabaseIO; interface uses Stats.Constant, System.Diagnostics,System.TimeSpan, Stats.IO.Base; type TDatabasePedRW = class(TDatabaseReaderWriter) strict private strict protected function GetTraceType(): TTraceType; override; protected procedure Write(paData: TTraceDataObj)...
{ GS1 interface library for FPC and Lazarus Copyright (C) 2020-2021 Lagunov Aleksey alexs75@yandex.ru This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License,...
unit UserSessionUnit; { This is a DataModule where you can add components or declare fields that are specific to ONE user. Instead of creating global variables, it is better to use this datamodule. You can then access the it using UserSession. } interface uses IWUserSessionBase, SysUtils, Classes, ...
{$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 84 O(N3) Minumum Cut Method FordFulkerson Alg. } program ProjectOnTwoProcessors; const MaxN = 100; MaxD = 100; var N : Integer; G : array [1 .. MaxN + 2, 1 .. MaxN + 2]...
unit EQ2008_Function; interface Const EQ2008_Dll = 'EQ2008_Dll.dll'; //颜色常量 RED = $0000FF; GREEN = $00FF00; YELLOW = $00FFFF; //返回值常量 EQ_FALSE = 0; EQ_TRUE = 1; Type User_FontSet = Packed Record //字体设置 strFontName: String; //字体的名称 iFontSize: Longword ; ...
unit dlg_ProrataNewExemptionUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, Mask, Db, DBTables, Wwtable, wwdblook; type Tdlg_ProrataNewExemption = class(TForm) gb_ProrataYear: TGroupBox; Label5: TLabel; Label6: TLabel; ed_RollYea...
unit BCEditor.Utils; interface uses Winapi.Windows, System.Math, System.Classes, Vcl.Graphics, System.UITypes, BCEditor.Consts, BCEditor.Types; function CharWidthTable(AChar: Char): SmallInt; function GetBestTabConvertProc(TabWidth: Integer): TBCEditorTabConvertProc; function GetLeadingExpandedLengt...
unit Mail_Queue; interface uses Classes, SyncObjs, IdSMTP, IdMessage, IdComponent, IdCoderHeader, SIP_RingList; type TMailQueue=class(TThread) private SMTP:TIdSMTP; Mail:TIdMessage; MailList:TThreadList; Event:TEvent; From:String; FSIPApp:TObject; procedure MailInitializeISO(var VTrans...
unit uGMV_Engine; { ================================================================================ * * Application: Vitals * Revision: $Revision: 1 $ $Modtime: 5/05/09 1:44p $ * Developer: andrey.andriyevskiy@va.gov * Site: Hines OIFO * * Description: This unit isolates...
unit delphi_intf_1; interface type IUnknown = interface procedure QueryInterface(const IID: TGUID; out Intf); stdcall; function _AddRef: Int32; stdcall; function _Release: Int32; stdcall; end external 'SYS'; IMyIntf = interface(IUnknown) function GetInt: Int32; procedure SetInt...
{*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1995-2002 Borland Software Corporation } { ...
unit uMainForm; interface uses System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls, Vcl.Imaging.Jpeg, // GLScene GLScene, GLVectorFileObjects, GLObjects, GLTexture, GLVectorLists, GLCadencer, GLWin32Viewer, GLSimpleNavig...
unit UMainForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ActnList, Menus, ImgList, PlatformDefaultStyleActnCtrls, ActnMan, ActnCtrls, ComCtrls, ToolWin, ActnMenus, StdActns, ExtActns, ExtCtrls, RpCon, RpConDS, RpRave, RpDefine, RpBase, RpSystem; type ...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 2010-2018 Embarcadero Technologies, Inc. } { All rights rese...
{$I SBDemo.inc} unit DemoForm; interface uses {$IFNDEF MSWINDOWS} Types, {$ENDIF} SysUtils, Classes, Windows, Forms, Messages, Controls, StdCtrls, Graphics, ImgList, ComCtrls, Dialogs, ExtCtrls, Tabs, Menus, DBCtrls, Buttons, {$IFNDEF VER130} Variants, {$ENDIF} DemoBase, DemoFrame {$IFDEF XPMAN}, UxThe...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Buttons; type { TfrmMarkUp } TfrmMarkUp = class(TForm) bmbReset: TBitBtn; edtWholesale: TEdit; gpbWholesale: TGroupBox; gpbSelling: TGroupBox; gpbMarkUp: TGroupBox;...
{*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1995,2001 Borland Software Corporation } { ...
{*******************************************************} { } { Borland Delphi Visual Component Library } { COM Web server application components } { } { Copyright (c) 1997-200...
{**********************************************} { TErrorSeries } { TErrorBarSeries (derived from TBarSeries) } { } { Copyright (c) 1995-2004 by David Berneda } {**********************************************} unit ErrorBar; {$I TeeDefs...
{ Module of relatively small GUI library utility routines. } module gui_util; define gui_string_wrap; %include 'gui2.ins.pas'; { ************************************************************************* * * Subroutine GUI_STRING_WRAP (STR, WIDE, LIST) * * Wrap the string STR into multiple lines as needed to not e...
{*******************************************************} { } { Delphi LiveBindings Framework } { } { Copyright(c) 2011-2018 Embarcadero Technologies, Inc. } { All rights rese...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2015-2018 Embarcadero Technologies, Inc. } { All rights reserved } { ...
unit MD5.Version; interface uses System.SysUtils, System.StrUtils, Windows; type /// <summary> /// This structure describes a file version /// </summary> TVersion = record Version: String; CompanyName: String; ProgramName: String; Comments: String; end; /// <summary> /// Retrieve...
unit JEDECQuery; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseQuery, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, ...
unit SIP_App; interface uses SIP_Status,Classes,SIP_QueueManager,Contnrs, SMS_Queue, Mail_Queue, Event_RS232; type TSIPApp = class (TObject) public SIPStatus:TSIPStatus; SIPQueueManager:TSIPQueueManager; SIPChannels:TObjectList; SMSQueue:TSMSQueue; MailQueue:TMailQueue; EventRS232:TEventRS...
unit Unit4; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdActns, ActnList, LangManCtrls, ComCtrls, LangManSys, LangManComp, TeeProcs, TeEngine, Chart, StdCtrls, ExtCtrls, Menus, ToolWin, ImgList, LangManCore, System.Actions; type TMainForm = class(TFo...
(* **************************************************************** *) (* Copyright (C) 1999-2010, Jon Gentle, All right reserved. *) (* **************************************************************** *) (* This program is free software; you can redistribute it under the *) (* terms of the Artistic License, as...
{*******************************************************} { } { Borland Delphi Visual Component Library } { Web services description language (WSDL) } { generation from RTTI } { ...
unit main1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,system.Types, Vcl.Buttons, Vcl.Grids, ComObj ; type //===========================================CLASS CH...
unit uQueryCommandHandler; interface uses uCommandHandler, uTokenizer, dmConnection; type TQueryCommandHandler = class(TCommandHandler) function HandleCommand(const AConnection: TConnectionData; const ATarget: string; const ATokenizer: TTokenizer): string; override; end; implementation uses SysUtils; { TQ...
unit FIToolkit.Reports.Parser.Exceptions; interface uses FIToolkit.Commons.Exceptions; type EReportsParserException = class abstract (ECustomException); { FixInsight XML output parser exceptions } EFixInsightXMLParseError = class (EReportsParserException); implementation uses FIToolkit.Reports.Parser...
unit Xml.Internal.ParserUtilsWin32; // ParserUtilsWin32 3.0.4 -- Win32 version // Delphi 4 to 2009 and Kylix 3 Implementation // February 2009 // // // LICENSE // // The contents of this file are subject to the Mozilla Public License Version // 1.1 (the "License"); you may not use this file except in compliance with /...
unit uFrmGrid; interface uses Windows, Forms, uFrmRoot, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxStyles, dxSkinsCore, dxSkinsDefaultPainters, dxSkinscxPCPainter, cxCustomData, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, dxSkinsdxBarPainter, cxClasses, dxBar, ExtCtrls...
// NOT Ported CDI unit SMARTSupport.NVMe.Intel; interface uses SysUtils, BufferInterpreter, Device.SMART.List, SMARTSupport, Support; type TIntelNVMeSMARTSupport = class(TSMARTSupport) private function ModelHasIntelString(const Model: String): Boolean; function GetTotalWrite(const SMARTList: TSMARTVa...
unit ComponentsSearchGroupUnit2; interface uses BaseComponentsGroupUnit2, NotifyEvents, System.Classes, ComponentsSearchQuery, FamilySearchQuery, SearchComponentOrFamilyQuery; type TComponentsSearchGroup2 = class(TBaseComponentsGroup2) private FOnOpenCategory: TNotifyEventsEx; FqComponentsSearch: TQu...
UNIT Astar; {$MODE Delphi} INTERFACE USES LinkedList, Map, MapObject; TYPE TPathNode = CLASS PUBLIC x, y : INTEGER; prev : TPathNode; CONSTRUCTOR create(_x, _y, destx, desty : INTEGER; _prev : TPathNode); OVERLOAD; CONSTRUCTOR create(_x, _y : INTEGER); OVERLOAD; FUNCTION getG() : INTEGER; FUNCTION getH...
unit MD5.Utils; interface uses System.SysUtils, System.DateUtils, Windows; const DATE_FORMAT = 'dd"/"mm"/"yyyy'; TIME_FORMAT = 'hh":"nn":"ss'; DATE_TIME_FORMAT = DATE_FORMAT + ' ' + TIME_FORMAT; /// <summary>Преобразовать байт в строковое представление</summary> function ByteToHex(B: Byte): String; ///...
unit uProgress; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, acProgressBar, ExtCtrls, StdCtrls, sLabel, Vcl.Imaging.GIFImg, sButton, acImage, sSkinManager; type TFProgressWnd = class(TForm) lblLoading: TsLabel; ImgLoading: TsImage; ...
unit Rx.Observable.Take; interface uses Rx, Rx.Subjects; type TTake<T> = class(TPublishSubject<T>) strict private FCounter: Integer; FLimit: Integer; FSubscription: ISubscription; public constructor Create(Source: IObservable<T>; Limit: Integer); procedure OnNext(const Data: T...
unit PieReg; interface uses Windows, Classes, Graphics, Forms, Controls, Pies, Buttons, DsgnIntf, DsgnWnds, StdCtrls, ComCtrls; type TAngleEditorDlg = class(TForm) EAngleLabel: TLabel; OKButton: TButton; CancelButton: TButton; SAngleLabel: TLabel; STrackBar: TTrackBar; ETrackBar: TTrackBa...
unit U_AddMdyMeter; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, U_MyFunction; type TF_AddMdyMeter = class(TForm) lbl1: TLabel; lbl2: TLabel; lbl3: TLabel; lbl4: TLabel; lbl5: TLabel; lbl6: TLabel; lbl7: TLabel...
unit FactoryConversor; interface uses InterfaceConversor, System.SysUtils, Data.DB, Datasnap.DBClient, JSONToDataSet, XMlToDataSet, CSVToDataSet; type TFactoryConversor = class public function ConverterArquivo(Arquivo: string; ClientDataSet: TClientDataSet): TConversor; end; EValidationError = class...
 {$IFDEF FPC} {$MODE Delphi} {$ENDIF} //------------------------------------------------------------------------------------------------- unit OptType; interface uses Classes, DataTypes; const er_opt_MaxFunEval = 1; // превышено максимальное число вычислений функции er_Opt_InitVal = 2; // ќшибк...
unit js_lexer; interface uses fw_utils,fw_vm_types,fw_system_types; type TJs_OnComment=function (src,tpos,pos:pchar;data:pointer):boolean; TJs_Lexer=class private CommentHandlers:pointer; CommentData:pointer; function LexError(s:string):boolean; // G...
unit OwnerProgressionDialog; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Db, DBTables, StdCtrls, Buttons, ComCtrls, ExtCtrls, MemoDialog; type TSalesOwnerProgressionForm = class(TForm) SalesTable: TTable; AuditNameAddressTable: TTable; Panel1: TPanel; ...
// // This unit is part of the GLScene Project, http://glscene.org // {: GLFileGTS<p> GTS (GNU Triangulated Surface) vector file format implementation.<p> <b>History :</b><font size=-1><ul> <li>16/10/08 - UweR - Compatibility fix for Delphi 2009 <li>31/03/07 - DaStr - Added $I GLScene.inc ...
unit uMain; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Gauges, ExtCtrls, uChangeName; type TFrmMain = class(TForm) Panel2: TPanel; Panel1: TPanel; Panel3: TPanel; Panel4: TPanel; EdMaxHpNPCs1: TEdit; LbNPC1...
unit uMainForm; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, System.Threading, System.SyncObjs, System.NetEncoding, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.DialogService, FMX.Dialogs, FMX.Layouts, FMX.TreeView, FMX.Edit, FMX.StdCtrls, FMX.Sc...
unit ORSystem; {$O-} {$WARN SYMBOL_PLATFORM OFF} interface uses Windows; const CPRS_ROOT_KEY = HKEY_LOCAL_MACHINE; CPRS_USER_KEY = HKEY_CURRENT_USER; CPRS_SOFTWARE = 'Software\Vista\CPRS'; CPRS_REG_AUTO = 'AutoUpdate'; CPRS_REG_GOLD = 'GoldCopyPath'; CPRS_REG_ONLY = 'LimitUpdate'; CPRS_REG_ASK =...
unit array_dynamic_3; interface implementation type TIntArray = array of int32; function ConcatArray(const A1, A2: TIntArray): TIntArray; begin SetLength(Result, Length(A1) + Length(A2)); end; var A, B, R: TIntArray; procedure Test; begin SetLength(A, 5); SetLength(B, 10); R := ConcatArray(A, B...
unit stacks; interface const BoardSize = 8; type TCell = (cQueen, cUnderAttack, cFree); TBoard = array[1..BoardSize,1..BoardSize] of TCell; pStack=^TStack; TStack = record x: byte; board: TBoard; next:pStack; end; procedure CreateStack(var top:pStack); procedure PushStack(var top: ...
unit Branch; interface type TBranch = class private FCode: string; FName: string; public property Code: string read FCode write FCode; property Name: string read FName write FName; end; implementation end.
unit MainFormU; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, ExtCtrls, DBCtrls, Grids, DBGrids, StdCtrls, Mask, ActnList, Db, DBTables, StdActns, Menus, ImgList, DBClient; type TViews = (vwCustomersList, vwCustomerForm, vwOrdersList, vwOrderForm, vwItemsL...
program Domik; uses graphABC; const W = 1000; H = 800; winColor = clWhite; RAD = 180 / pi; { function Hypotenuse(leg1, leg2: integer): integer; { @Return hypotenuse length }{ begin Hypotenuse := round(sqrt(sqr(leg1) + sqr(leg2))); // Pythagorean theore...
Unit Utils; Interface Uses Windows; Function SymbolicLinkExists(ALinkName:WideString):Boolean; Procedure WinErrorMessage(AMsg:WideString; AErrorCode:Cardinal); Function GetDiskDriveLetters(ADiskNumber:Cardinal):WideString; Implementation Uses SysUtils; Const SYMBOLIC_LINK_QUERY = $1; OBJ_CASE_INSENSITIVE...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit OS.Partition.Lock; interface uses OSFile.IoControl, OSFile.Handle, OS.Handle; type TPartitionLock = class(TIoControlFile) public constructor Create(const FileToGetAccess: String); override; procedure Lock; procedure Unlock; function GetHandle: THandle; protected function GetMinimumPr...
unit QlpConverters; {$I ..\Include\QRCodeGenLib.inc} interface uses SysUtils, QlpGuard, QlpQRCodeGenLibTypes; resourcestring SEncodingInstanceNil = 'Encoding instance cannot be nil'; type TConverters = class sealed(TObject) strict private {$IF DEFINED(VCL_OR_LCL)} /// <summary> /// Convert a D...
unit eSocial.Models.DAO.Factory; interface uses eSocial.Models.DAO.Interfaces, eSocial.Models.DAO.Competencia, eSocial.Models.DAO.Operacao, eSocial.Models.DAO.Configuracao, eSocial.Models.Entities.Competencia, eSocial.Models.Entities.Operacao, eSocial.Models.Entities.Configuracao; type ...
unit U.Methods; interface uses System.Bindings.EvalProtocol; procedure RegisterCurrencyCleanMethodOnFactory; implementation uses System.Bindings.Methods, System.Bindings.Helper, System.Character, System.SysUtils; procedure RegisterCurrencyCleanMethodOnFactory; var LMethodDescription: TMethodDescripti...
unit constexpr_3; interface implementation function AddMul2Neg(a, b, c: Int32): Int32; pure; begin Result := - (a + b) * c; end; var G: Int32; procedure Test; begin G := AddMul2Neg(2, 3, 3); end; initialization Test(); finalization Assert(G = -15); end.
unit IdVCard; interface uses Classes, IdBaseComponent, IdGlobal; type TIdVCardEmbeddedObject = class(TPersistent) protected FObjectType: string; FObjectURL: string; FBase64Encoded: Boolean; FEmbeddedData: TStrings; procedure SetEmbeddedData(const Value: TStrings); public constructor...
unit fGMV_AddEditQualifier; { ================================================================================ * * Application: Vitals * Revision: $Revision: 1 $ $Modtime: 3/02/09 12:04p $ * Developer: doma.user@domain.ext * Site: Hines OIFO * * Description: Form to add/e...
unit uNPCFrame; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls; type TNPCFrame = class(TFrame) pnlBackground: TPanel; lblName: TLabel; lblFunction: TLabel; ...
unit UNewCorrectPacking; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, UFrameSave, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, dxSkinsCore, ...
unit testhqrndunit; interface uses Math, Sysutils, Ap, hqrnd; procedure CalculateMV(const X : TReal1DArray; N : AlglibInteger; var Mean : Double; var MeanS : Double; var StdDev : Double; var StdDevS : Double); function TestHQRND(Silent : Boolean):Boolean; function testhqrndunit_test...
unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, SvcMgr, Dialogs, uROClient, uROClientIntf, uROServer, uROBinMessage, uROIndyTCPServer; type TICBCService = class(TService) ROMessage: TROBinMessage; ROServer: TROIndyTCPServer; procedure ServiceStart(Se...
unit CpuUnit; interface uses Windows, SysUtils; // Call CollectCPUData to refresh information about CPU usage procedure CollectCPUData; // Call it to obtain the number of CPU's in the system function GetCPUCount: integer; // Call it to obtain the % of usage for given CPU function GetCPUUsage(Index: integer): doubl...
{ *************************************************************************** } { } { Kylix and Delphi Cross-Platform Visual Component Library } { ...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2014-2019 Embarcadero Technologies, Inc. } { All rights reserved } { ...
{ *************************************************************************** Copyright (c) 2016-2020 Kike Pérez Unit : Quick.DAO.Database Description : DAO Database Author : Kike Pérez Version : 1.2 Created : 22/06/2018 Modified : 14/04/2020 This file is part of QuickDAO: http...