text
stringlengths
14
6.51M
unit UnitFunctions; interface uses Windows, SysUtils, StrUtils, ShellAPI; function JustL(S: string; Size: integer) : string; function MyBoolToStr(TmpBool: Boolean): string; function MyStrToBool(TmpStr: string): Boolean; function FileSizeToStr(Bytes: LongInt): string; function FileIconInit(FullInit: BOOL): BOOL; st...
UNIT fileHistories; INTERFACE USES mySys,myGenerics,sysutils,FileUtil,myStringUtil; PROCEDURE removeNonexistent; PROCEDURE addToHistory(CONST utfFile1:ansistring; CONST utfFile2:ansistring=''; CONST utfFile3:ansistring=''; CONST utfFile4:ansistring=''); PROCEDURE limitHistory(CONST sizeLimit:longint); PROCEDURE histor...
unit frmMonitorRestart; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, Spin; type TForm1 = class(TForm) Memo1: TMemo; Label1: TLabel; btnStop: TButton; btnRestart: TButton; ProgressBar1: TProgressBar; lblStatus: TLabel; L...
unit CBROrderDeskPresenter; interface uses CustomPresenter, db, EntityServiceIntf, CoreClasses, CBRConst, sysutils, variants, ShellIntf; const ENT = 'CBR_ORD_DESK'; COMMAND_MENU_OPEN = '{4E9854DA-9576-454F-8880-EAF384FB3DA7}'; COMMAND_ITEM_ADD = '{FBA0B203-BEFE-493A-8A06-22BA9E561BD9}'; COMMAND_ITEM_QTY_INC...
unit Pacman; {$MODE Delphi} interface USES LCLIntf, LCLType, LMessages, Variants, Classes, SysUtils, Graphics, LinkedList, Map, MapObject, Animation; CONST DEFAULT_SPEED = 3; CONST BONUS_SPEED = 5; VAR gfx : ARRAY [0 .. 6 * 10 - 1] OF TBitmap; TYPE TPacman = CLASS(TMobileObject) PUBLIC CONSTRUCTOR create(_x, ...
{******************************************************************************* Developer: josking Date: 2009/11/26 Coding standard version NO. :1.0 Copyright(GBM) EMS , All right reserved *******************************************************************************} unit clsCom...
unit u_xpl_body; {============================================================================== UnitName = uxplmsgbody UnitDesc = xPL Message Body management object and function UnitCopyright = GPL by Clinique / xPL Project =========================================================================...
unit fODText; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, fODBase, StdCtrls, ORCtrls, ComCtrls, ExtCtrls, ORFn, uConst, ORDtTm, VA508AccessibilityManager; type TfrmODText = class(TfrmODBase) memText: TMemo; lblText: TLabel; txtStart: TORDateBox; tx...
program lowerCaseAscii(input, output, stdErr); var alphabet: set of char; begin // as per ISO 7185, 'a'..'z' do not necessarily have to be contiguous alphabet := [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ]; end.
program ArithmeticSequence; {$mode objfpc}{$H+} uses {$IFDEF UNIX} {$IFDEF UseCThreads} cthreads, {$ENDIF} {$ENDIF} Classes, SysUtils, CustApp, arithmeticsequences { you can add units after this }; type { TArithmeticSequence } TArithmeticSequence = class(TCustomApplication) protected procedure ...
unit MD.Controller.Client; interface uses Horse, MD.Model.Classes, MD.DAO.Client, REST.Json, System.JSON, System.SysUtils; procedure Insert(Req: THorseRequest; Res: THorseResponse; Next: TProc); procedure List(Req: THorseRequest; Res: THorseResponse; Next: TProc); procedure Find(Req: THorseRequest; Res: ...
unit UnitDM; interface uses System.SysUtils, System.Classes, 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, FireD...
unit uProcedure; interface uses Graphics, Windows, Controls, Forms; // процедуры для получения пути к папке System32 function GetSystem32Path: string; // процедуры для получения пути к папке Windows function GetWinPath: string; // процедуры для проверки включеный GUI или нет function IsGUI: Boolean...
PROGRAM Verschluesselung; const str1 = 'ABCADEF'; const str2 = 'SJJSKLM'; const str3 = 'DIREKTEZUORDNUNGIKOG'; const str4 = 'EKVCIBCQMLVEHMHTKILT'; FUNCTION IsPossiblePair(s1: string; s2: string): boolean; var i, j: integer; string1Letter, string2Letter: string; BEGIN (* IsPossiblePair *) IsPossible...
{*************************************************************** * * Project : CBClient * Unit Name: MainForm * Purpose : * Version : 1.0 * Date : Wed 25 Apr 2001 - 01:12:33 * Author : * History : * Tested : Wed 25 Apr 2001 // Allen O'Neill <allen_oneill@hotmail.com> * *****************************...
unit Glblvars; interface uses Types, Forms, BtrvDlg, PASTypes, DBTables; var GlblApplicationIsClosing : Boolean; {Set when all of PAS is closing.} GlblClosingAForm : Boolean;{set by childform.onclose, ref by MainPasForm.OnActScreenchg} {the following items are loaded from the system record when user starts...
unit uABOUT; interface uses WinApi.Windows, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Forms, Vcl.Controls, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls, uRoutine; type TAboutBox = class(TForm) Panel1: TPanel; ProgramIcon: TImage; ProductName: TLabel; Version: TLabel; Copyright: TLabel;...
unit Unit1; interface uses // Windows, Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Imaging.Jpeg, Vcl.ComCtrls, Vcl.StdCtrls, Vcl.ExtCtrls, //GLS GLWin32Viewer, GLScene, GLObjects, GLHUDObjects, GLGeomObjects, GLCadencer, G...
unit ufrmSplash; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, dxGDIPlusClasses, cxClasses, cxLabel, dxImageSlider; type ...
unit ApkBuild; { TODO: - implement TApkBuilder.BringToFrontEmulator for linux } {$mode objfpc}{$H+} interface uses {$ifdef Windows}Windows,{$endif} Classes, SysUtils, ProjectIntf, Forms; type { TApkBuilder } TApkBuilder = class private FProj: TLazProject; FSdkPath, FAntP...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC async execution implementation } { } { Copyright(c) 2004-2018 Embar...
unit WkeImpl; interface uses SysUtils, Windows, Classes, Messages, WkeTypes, WkeIntf, WkeApi, TypInfo; type TWkeFileSystem = class(TInterfacedObject, IWkeFileSystem) private fs: TFileStream; public destructor Destroy; override; function Open(const path: PUtf8): Boolean; procedure Close; ...
unit ncPrinters; interface uses classes,SysUtils; type TncPrinter = class(TObject) id : integer; nome : string; impressora : string; precopp : double; Orientation : string; PaperSizeName : string; PaperSizeShortName : string; DefaultSourceDesc : string; PrintQuality : string...
unit TestgCore; { 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, Classes,gCore, System.Rtti, Windo...
{*************************************************************** * * Project : MailDemo * Unit Name: smtpauth * Purpose : Sub form * Version : 1.0 * Date : Wed 25 Apr 2001 - 01:29:06 * Author : Hadi Hari <hadi@pbe.com> * History : * Tested : Wed 25 Apr 2001 // Allen O'Neill <allen_oneill@hotmail.com>...
{***********************************************************} { } { XML Data Binding } { } { Generated on: 24.02.2006 13:28:53 } { G...
Unit PascalCoin.FMX.Frame.Settings.Node; Interface Uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, System.Actions, FMX.ActnList, FMX.Controls.Presentation, FMX.Layouts, FMX.Edit; Type TEditNo...
unit Unit1; interface uses UI.SizeForm, UI.Ani, UI.Frame, System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, UI.Base, UI.Standard, FMX.Effects, FMX.Controls.Presentation, FMX.StdCtrls; type TForm1 = class(TSizeForm)...
unit Ths.Erp.Database.Table.Ambar; interface {$I ThsERP.inc} uses SysUtils, Classes, Dialogs, Forms, Windows, Controls, Types, DateUtils, FireDAC.Stan.Param, System.Variants, Data.DB, Ths.Erp.Database, Ths.Erp.Database.Table; type TAmbar = class(TTable) private FAmbarAdi: TFieldDB; FIsVarsayılan...
// // Created by the DataSnap proxy generator. // 2011-01-29 ¿ÀÈÄ 10:12:30 // unit Uclientclass; interface uses DBXCommon, DBXClient, DBXJSON, DSProxy, Classes, SysUtils, DB, SqlExpr, DBXDBReaders, DBXJSONReflect; type TServerMethodsClient = class(TDSAdminClient) private FEchoStringCommand: TDBXCommand; ...
unit fFurBall; interface uses Winapi.Windows, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls, Vcl.Imaging.Jpeg, //GLS GLWin32Viewer, GLScene, GLObjects, GLCadencer, ODEImport, GLTexture, GLExtrusion, GLVectorGeom...
{ MIT License Copyright (c) 2016-2020 Yevhen Loza 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, merg...
{*********************************************} { TeeBI Software Library } { Workflow Editor Dialog } { Copyright (c) 2015-2016 by Steema Software } { All Rights Reserved } {*********************************************} unit VCLBI.Editor.Workflow; int...
unit VCLBI.Editor.DataRank; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, BI.DataItem, BI.Workflow; type TDataRankEditor = class(TForm) CBAscending: TCheckBox; procedure FormShow(Sender: TObject); ...
unit ANovoLembrete; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, PainelGradiente, ExtCtrls, Componentes1, StdCtrls, Buttons, Localizacao, ComCtrls, UnDados, UnLembrete, Constantes; type TFNovoLembrete = class(TFormularioPermissao) PanelC...
{*******************************************************} { } { DESede 加解密单元 (与 Java 、 C# 同步) } { } { 版权所有 (C) 2016 YangYxd } { ...
unit IDTempTableQuery; 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.DAp...
{ Turbo Pascal 3.0 compatibility unit Copyright (C) 1998-2005 Free Software Foundation, Inc. Author: Frank Heckenbach <frank@pascal.gnu.de> This file is part of GNU Pascal. GNU Pascal is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
{**********************************************************************} {* Иллюстрация к книге "OpenGL в проектах Delphi" *} {* Краснов М.В. softgl@chat.ru *} {**********************************************************************} { osc2.c A damping effect...
unit DropSource; // ----------------------------------------------------------------------------- // Project: Drag and Drop Component Suite // Module: DropSource // Description: Implements Dragging & Dropping of data // FROM your application to another. // Version: ...
{ @html(<b>) Simple Parser @html(</b>) - Copyright (c) Cord Schneider & Danijel Tkalcec @html(<br><br>) This unit defines a simple parser which is designed to be used either stand-alone or hand-in-hand with any of the RTC components. RTC parser uses a source string as Template and replaces tokens insid...
UNIT SingleLinkedIntListUnit; INTERFACE TYPE ListNodePtr = ^ListNode; ListNode = RECORD val: integer; next: ListNodePtr; END; List = ListNodePtr; PROCEDURE Prepand(var l: List; n: ListNodePtr); PROCEDURE Append(var l: List; n: ListNodePtr); PROCEDUR...
unit xExerciseAction; interface uses xDBActionBase, xExerciseInfo, System.Classes, System.SysUtils, FireDAC.Stan.Param, xFunction; type /// <summary> /// 练习题数据库操作 /// </summary> TExerciseAction = class(TDBActionBase) public /// <summary> /// 获取最大编号 /// </summary> functio...
{$I RLReport.inc} unit RLDesign; interface uses Classes, TypInfo, Db, SysUtils, {$ifdef DELPHI5} DsgnIntF, {$else} DesignEditors, DesignIntf, {$endif} {$ifdef VCL} Forms, {$endif} {$ifdef CLX} QForms, {$endif} RLReport, RLConsts, RLUtils, RLTypes, RLAbout; type {$ifdef D...
unit BrickCamp.Resources.TEmployee; interface uses System.Classes, System.SysUtils, Spring.Container.Common, Spring.Container, MARS.Core.Registry, MARS.Core.Attributes, MARS.Core.MediaType, MARS.Core.JSON, MARS.Core.MessageBodyWriters, MARS.Core.MessageBodyReaders, BrickCamp.Repositories.IEmploy...
unit Tests_OriDialogs; {$mode objfpc}{$H+} interface uses FpcUnit, TestRegistry; type TTest_OriDialogs = class(TTestCase) published procedure ErrorDlg; end; implementation uses OriDialogs; procedure TTest_OriDialogs.ErrorDlg; begin OriDialogs.ErrorDlg('Test error message'); ...
unit BCscore.MemberSelection; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, Generics.Collections, Billiards.Member; type TMemberSelectionForm = class(TForm) lblDescription: TLabel; lvMembers: TListView; procedure FormShow(Send...
unit zkReportXmlClassesRevenue; interface uses Classes, NativeXml, zkCommandsRC, zkCommandsRCRevenue, zkReportXmlClasses, zkEntitiesRevenue, dlyConsts; type /// <summary> /// 定义有请求子报文的顶层基类,实现 GetHasSubPackage 赋值 /// </summary> TSendReportXml_HasSubPackage = class(TSendReportXmlComm) protec...
program DjsTemas; uses crt; const MAXDjs=25; MAXTemasPorDj=35; MAXTEM=10; {Ahora tiene 10 para cuando probamos no tener que poner los 200 temas, despues hay que cambiarlo} MAXMIN=10; MAXSEGS=59; type tiDjs=1..MAXDjs; tiTemasPorDj=1..MAXTemasPorDj; tiTemas=1..MAXTEM; tiNomMinSeg=(nombre,minutos,segundos...
unit VA508AccessibilityConst; interface uses Windows, SysUtils; // When a component receives focus, the screen reader needs to request data about the // component. The Call Back proc is called, and the VA app then supplies the info by // returning the requested values const JAWS_REQUIRED_VERSION = '7.10....
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit commandline; {$mode objfpc} (* This unit will process command line flags, (/N -N) a) as present or absent (Is_Param) b) with an integer (eg. /N54 /X-76) (Param_Int) c) with a real number (eg /J-987.65) (Param_Real) d) with strings, including delimited strings with embedded...
{**********************************************} { TOHLCSeries (derived from TCustomSeries) } { Copyright (c) 1995-2004 by David Berneda } {**********************************************} unit OHLChart; {$I TeeDefs.inc} interface Uses {$IFDEF CLR} Borland.VCL.Classes, {$ELSE} Classes, {$IF...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Copyright (c) 2020-2020 Skybuck Flying // Copyright (c) 2020-2020 The Delphicoin Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-...
unit ClassComputer; interface uses ClassPlayer, Types; const MAX_DEPTH = 1; type TTable = array[0..63] of integer; TCompMove = record Value : integer; A, B : integer; end; TMoves = record Items : array[1..200] of record Move, Best : TCompMove; end;...
unit vgr_IniStorage; {$I vtk.inc} interface uses Windows, Classes, SysUtils, IniFiles, Registry; type {low-level wrapper for the system registry and functions that operate on the registry} TRegistryAccess = class(TRegistry) end; ///////////////////////////////////////////////// // // TvgrIniStorage ...
unit uOraTableExt; interface uses uAbstractTableAccess, uSqlFormat_Oracle, DB, DbTables, Classes, SysUtils; type TOraTableExt = class(TOracleTable) private function getPhysAttrClauseString(AInit, ANext, APctIncrease, APctFree, APctUsed: integer): string; function GetExists: Boolean; proc...
program cantidadDeDigitos (input,output); var numero, numDigitos : integer; procedure pedirNumero(var num: integer); begin writeln('Introduzca numero:'); readln(num); end; function cantidadDigitos(num:integer):integer; begin if ((num div 10) = 0) then cantidadDigitos := 1 ...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
{ Delphi Project Descriptor ========================= It allow creating: * Delphi project (*.dpr) * Delphi unit file (*.pas + *.dfm) * etc., more delphi stuff in future; such delphi package (*.dpk) within Lazarus. Author : x2nie Years : 2014-05-20 Download/update : https://github.com/x2nie...
{*******************************************************} { } { Borland Delphi Test Server } { } { Copyright (c) 2001 Borland Software Corporation } { ...
(* WG_Histo: MM 2020 Histo test to evaluate quality of RNG *) PROGRAM WG_Histo; USES {$IFDEF FPC} Windows, {$ELSE} WinTypes, WinProcs, {$ENDIF} Strings, WinCrt, WinGraph, RandUnit; PROCEDURE HistoTest(dc: HDC; wnd: HWnd; r: TRect); FAR; CONST BORDER = 20; (* Padding in pixel...
unit FormConnect; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, Buttons, StdCtrls, connection_transaction; type { TConnectForm } TConnectForm = class(TForm) BrowseDBPath: TButton; OkButton: TButton; CanselButton: TButton; DBUs...
{***************************************************************************** ApacheInit The Module Initialization handler is called during the module initialization phase immediatly after the server is started. This is where your modules will initialize data, consult configuration files, and do other prep work...
unit UDaoContasReceber; interface uses uDao, DB, SysUtils, Messages, UContasReceber, UDaoCliente, UDaoFormaPagamento, UDaoUsuario; type DaoContasReceber = class(Dao) private protected umaContasReceber : ContasReceber; umaDaoCliente : DaoCliente; umaDaoUsuario :...
PROGRAM Roulette; FUNCTION SpinTheWheel: integer; BEGIN (* SpinTheWheel *) SpinTheWheel := Random(37); END; (* SpinTheWheel *) FUNCTION BenefitForLuckyNr(luckyNr, bet: integer): integer; var randNumber: integer; BEGIN (* BenefitForLuckyNr *) randNumber := SpinTheWheel; IF (luckyNr = randNumber) THEN BEGIN ...
unit Initializer.ReplacedSector; interface uses SysUtils, OS.EnvironmentVariable, Global.LanguageString, Device.PhysicalDrive, AverageLogger.Count, AverageLogger, Support; type TMainformReplacedSectorApplier = class private ReplacedSectorLog: TAverageCountLogger; ReplacedSectors: UInt64; proc...
unit Getter.WebPath; interface uses SysUtils, IdHttp; type TDownloadFileType = (dftPlain, dftGetFromWeb); TDownloadFile = record FFileAddress: String; FBaseAddress: String; FPostAddress: String; FType: TDownloadFileType; end; function GetAddressFromWeb(const Address: String): String; functio...
{ unit RegisterComp ES: unidad para registrar los componentes VCL EN: unit to register the VCL components ========================================================================= History: ver 1.0.0 ES: cambio: ya no registra el componente TGMGeoCode. EN: change: TGMGeoCode component no longer regist...
unit str_result_1; interface implementation var S1, S2: string; function GetStr: string; begin Result := S1; end; procedure Test; begin S1 := Copy('string'); S2 := S1 + S1; if GetStr() = S2 then S2 := '' else S2 := GetStr(); end; initialization Test(); finalization Assert(S1 = S2); end.
unit MediaStream.DataSource.Stub; interface uses Windows,Classes,SysUtils, SyncObjs, MediaStream.DataSource.Base, MediaProcessing.Definitions; type TStubChannel = class; TMediaStreamDataSource_Stub = class (TMediaStreamDataSource) private FDataLock: TCriticalSection; FChannel : TStubChannel; FFo...
{*******************************************************} { } { Delphi DataSnap Framework } { Copyright(c) 2012-2018 Embarcadero Technologies, Inc. } { All rights reserved } { ...
unit Processor.ReadmeMarkdown; interface uses System.SysUtils, System.StrUtils; type TReadmeMarkdownProcessor = class private public class function ProcessReadme(const aSource: string; const aNewVersion: string; const aSearchPattern: string): string; static; end; implementation uses Process...
unit UBullsCows; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Menus; type TFCowsAndBulls = class(TForm) Memo1: TMemo; Memo2: TMemo; Label1: TLabel; Edit1: TEdi...
unit XMLutils; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, xmldom, XMLIntf, msxmldom, XMLDoc, ComCtrls, TypInfo, StrUtils, uStrings, uLog; type eNodeType = (ntRoot, ntHeader, ntData, ntPage, ntFolder, ntDefFolder, ntItem, ntDefItem, n...
{ 作为子程序参数的文件 Pascal可以被用来作为标准的和用户定义的子程序的参数在文件中的变量。下面的例子演示了这一概念。该程序创建一个文件名为rainfall.txt, 并存储一些降雨量数据。接下来,打开该文件,读取数据,并计算平均降雨量。 请注意,如果您使用的是文件的子程序的参数,它必须被声明为一个var参数。 下面的代码编译和执行时,它会产生以下结果: Enter the File Name: rainfall.txt Enter rainfall data: 34 Enter rainfall data: 45 Enter rainfall data: 56 Enter rainfall data: 78 Averag...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
///// <summary> ///// Функция ищет файлы и, если необходимо, добавляет информацию о них. ///// </summary> ///// ///// <param name="StartPath">С этого каталога начинается поиск.</param> ///// ///// <param name="Pattern">Шаблон поиска. Для большей информации ///// смотрите "регулярные выражения".</param> ///// /////...
{*******************************************************} { } { Borland Delphi Visual Component Library } { Importer for legacy XML Schema files } { } { Copyright (c) 2000-2001 Bor...
{ ---------------------------------------------------------------------------- } { BulbTracer for MB3D } { Copyright (C) 2016-2017 Andreas Maschke } { ---------------------------------------------------------------------------...
{ Compute the cosine using the expansion: cos(x) = 1 - x**2/(2*1) + x**4/(4*3*2*1) - ... This file verifies a simple unit that exports one function. } unit MyCosineUnit; interface function mycosine(x : real) : real; implementation function mycosine(x : real) : real; const eps = 1e-14; var sx, s, t : rea...
//****************************************************************************** // File : Lua_Object.pas (rev. 1.1) // // Description : Access from Lua scripts to TObject Classes // //****************************************************************************** // Exported functions : // // Crea...
unit SMCnst; interface { Language: Spanish (Mexican) strings Translator: Daniel Ramirez Jaime E-Mail: rdaniel2000@hotmail.com } const strMessage = 'Imprimir...'; strSaveChanges = '¿En readlidad desea guardar los cambios a la Base de Datos?'; strErrSaveChanges = 'No...
unit WisePin; interface uses Windows, cbw, WiseHardware, WiseDaq, WisePort, Contnrs, SysUtils; type TWisePin = class(TWiseObject) private Daq: TWiseDaq; Pin: Integer; public constructor Create(Name: string; did: TDaqId; Pin: Integer); destructor Destroy(); override; proced...
unit TestDelphiNetRecordProcs; interface type TSomeRecord = record i,j,k,l: integer; function Sum: integer; procedure Clear; constructor Create(iValue: integer); end; // a record with operator overloads TOpRecord = record i: integer; s: string; class operator...
unit ClassNewImage; interface uses Controls, Classes, ExtCtrls, Messages, Graphics; type TNewImage = class( TImage ) private FAutoChange : boolean; FAllowPress : boolean; FBitmapOn : TBitmap; FBitmapOff : TBitmap; FPressed : boolean; FOnMouseEnter : TNotifyEvent; ...
unit ImageProcessingMethodsUnit; //////////////////////////////////////////////////////////////////////////////// // // // Description: // // Container for Image Processing Metho...
(* Name: main Copyright: Copyright (C) SIL International. Documentation: Description: Create Date: 20 Jun 2006 Modified Date: 26 Jun 2012 Authors: mcdurdin Related Files: Dependencies: Bugs: Todo: Notes: ...
{----------------------------------------------------------------------------- The contents of this file are subject to the GNU General Public 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.gnu.org/copyleft/gpl...
unit ComponentsExcelDataModule; interface uses System.SysUtils, System.Classes, ExcelDataModule, Excel2010, Vcl.OleServer, System.Generics.Collections, FireDAC.Comp.Client, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, Data....
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+} {$M 1024,0,0} { by Behdad Esfahbod Algorithmic Problems Book April '2000 Problem 78 Simulating; } program LinearPrinter; const MaxL = 255; var L : Integer; T : string; TP : Integer; S : string [MaxL div 2]; SN : Integer; Time : Longint; I, J...
{*******************************************************} { } { Delphi REST Client Framework } { } { Copyright(c) 2014-2018 Embarcadero Technologies, Inc. } { All rights res...
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+} {$M 1024,0,0} { by Behdad Esfahbod Algorithmic Problems Book September '1999 Problem 24 O(N2) The Only Method! } program EdgeDisjointCycles; const MaxN = 100; var N, E, N1, E1 : Integer; G, V : array [1 .. MaxN, 1 .. MaxN] of Integer; D, Pat : array ...
unit SpectrumSettings; interface uses // Windows, Classes, Controls, Graphics, Forms, Dialogs, ActnList, StdCtrls, // Grids, // TB2Toolbar, // OriUtils, // PropSaver, OriCombos, OriUtilsTChart Classes, OriIniFile, SpectrumTypes; type //-----------------------------------------------------...
unit MathRewrite; interface uses Rewrite, MyMath; var VMathMatcher: TMatcher; implementation //=============================================================== initialization //=============================================================== VMathMatcher := TMatcher.Create; with VMathMat...
unit variant_array_1; interface implementation var Arr: array of Variant; procedure Test; begin SetLength(Arr, 3); Arr[0] := 1; Arr[1] := copy('variant'); Arr[2] := 5.7; end; initialization Test(); finalization Assert(Arr[0] = 1); Assert(Arr[1] = 'variant'); Assert(Arr[2] = 5.7); end...
unit UFuncoes; interface // Classes necessárias uses Windows, SysUtils, Forms, Dialogs; // Declaração das funções procedure Log(Mensagem: String); implementation // Implementação das funções // LOG - Baseado de http://imasters.uol.com.br/artigo/2718/delphi/manipulando_arquivos_textos/ procedure Log(Mensagem: St...
unit u_xpl_collection; {$ifdef fpc} { $ mode objfpc}{$H+} {$mode delphi} {$endif} interface uses Classes, SysUtils; type { TxPLCollectionItem } TxPLCollectionItem = class(TCollectionItem) protected fDisplayName : string; fCreateTS : TDateTime; fModifyTS...
unit Support.Sandforce; interface uses SysUtils, Math, Support, Device.SMART.List; type TSandforceNSTSupport = class abstract(TNSTSupport) private InterpretingSMARTValueList: TSMARTValueList; function GetTotalWrite: TTotalWrite; protected function GetSemiSupport: TSupportStatus; public ...
unit FGLAbout; interface uses Winapi.Windows, Winapi.Messages, Winapi.ShellAPI, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Imaging.jpeg, // FGLDialog; type TGLAbout = class(TGLDialog) LabelCopyr...