text
stringlengths
14
6.51M
unit IdTestSimpleServer; interface uses IdTest, IdObjs, IdSys, IdGlobal, IdSimpleServer; type TIdTestSimpleServer = class(TIdTest) published procedure TestListen; end; implementation uses SysUtils; procedure TIdTestSimpleServer.TestListen; var aServer:TIdSimpleServer;...
{$ifdef license} (* Copyright 2020 ChapmanWorld LLC ( https://chapmanworld.com ) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this li...
{==============================================================================} { } { OpenGL Video Renderer OpenGL Shading Language Class } { Version 1.0 ...
unit configsupport; interface uses classes, SysUtils, Dialogs, dbtables, inifiles; type { TPCfgList } TPCfgList = class(Tobject) private procedure ensurenameexist(var Name: string); function getboolvalue(Name: string): boolean; function getfloatvalue(Name: string): double; function getintvalue(Na...
unit BCStartingPos; interface uses Contnrs, iNESImage; type TBCStartPosition = class(TiNESImageAccessor) public ID : Byte; RealX : Byte; RealY : Byte; XLoc : Integer; YLoc : Integer; StartPositionType : Byte; X : Byte; Y : Byte; end; { This is a class that will be used to store...
// see ISC_license.txt {$I genLL.inc} unit CMinusLexer; interface uses Sysutils, Runtime; const // LEX_CALL = 4; // 'call' LEX_CLOSE_BRACE = 5; LEX_COMMA = 6; LEX_COMMENT = 7; LEX_DECLS = 8; LEX_DEF = 9; LEX_DEFUN = 10; LEX_DIGIT = 11; LEX_ENDL = 12; LEX_FUNCS = 13; LEX_ID = 14; LEX_INT = 1...
unit ShowIPS; { SimThyr Project } { (c) J. W. Dietrich, 1994 - 2011 } { (c) Ludwig Maximilian University of Munich 1995 - 2002 } { (c) Ruhr University of Bochum 2005 - 2011 } { This unit draws the information processing structure } { Source code released under the BSD License } {$mode objfpc}{$R+} interface uses ...
(*NIM/Nama : 16515034/Mikhael Artur Darmakesuma *) (*Nama file : lingkaran.pas *) (*Topik : Modular Programming *) (*Tanggal : 6 April 2016 *) (*Deskripsi : Program menrima input 2 buah lingkaran kemudian menghasilkan output luas dan keliling kedua lingkaran serta hubungan kedua lingkaran ...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
{******************************************************************************} { } { Icon Fonts ImageList: An extended ImageList for Delphi/VCL } { to simplify use of Icons (resize, colors and more...) ...
program SetA33; var x,y:integer; begin writeln('Please enter a number for coordinates on the X-axis') ; readln(x); writeln('Please enter a number for coordinates on the Y-axis'); readln(y); if (x=0) AND (y=0) then writeln ('That is the center of Descartes coordinates system') else if (x=0) or (y=0) then writel...
{ @abstract(Transform a data from Delphi to JS ans JS to Delphi.) @author(Xavier Martinez (cadetill) <cadetill@gmail.com>) @created(August 26, 2022) @lastmod(August 26, 2022) The GMLib.Transform unit contains all functions needed to transform a JavaScript value to Delphi value and viceversa. } unit G...
unit UPortAreaSketch; { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted © 1998-2012 by Bradford Technologies, Inc. } interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, ...
// Fit4Delphi Copyright (C) 2008. Sabre Inc. // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software Foundation; // either version 2 of the License, or (at your option) any later version. // // This program is...
unit UPortMSStreets; {$WARN UNIT_PLATFORM OFF} { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted © 1998-2005 by Bradford Technologies, Inc. } interface uses Windows, Messages, UContainer, UCell, UPortBase...
unit SMS; interface uses SysUtils, FMX.Helpers.Android, Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.Net, Androidapi.JNI.JavaTypes, Androidapi.JNI.Telephony, Androidapi.Helpers; function FetchSms: string; implementation function FetchSms: string; var cursor: JCursor; uri: Jnet_Uri; address, p...
{$ifdef license} (* Copyright 2020 ChapmanWorld LLC ( https://chapmanworld.com ) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this li...
unit uFileCountThread; // Поток, подсчитывающий файлы, которые предполагается просканировать interface uses SysUtils, Classes, ComCtrls, zTreeViews, zAVZKernel; type // Обработчик события "найдена новая порция файлов" TFileCountThreadProgress = procedure (Sender: TObject; ScanFilesCount, FullFilesCount...
unit Project87.Fluid; interface uses Strope.Math, Project87.Types.GameObject; const FRICTION = 2.5; FLUID_TYPE_COUNT = 4; FLUID_GET_RANGE = 180 * 180; FLUID_AUTO_GET_SPEED = 35; type TFluidType = ( fYellow = 0, fGreen = 1, fBlue = 2, fRed = 3 ); TFluid = class (TGameObject) pr...
unit Consulta; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Grid, Utilitario, FireDAC.Comp.Client, unit_BancoDados, FMX.Dialogs, FMX.ListBox; type TConsulta = class private titulo:string; //caption da tela textosql:string; //com...
UNIT ExeEnclosure; { UNITE PERMETTANT LA SAUVEGARDE ET LA LECTURE DE DONNEES BINAIRES DANS UN .EXE EN RUNTIME Fait sous D7 par Caribensila ...
unit ActivexContainer; { Visual ActiveX container. Copyright (C) 2011 Ludo Brands 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, or (at y...
unit UAMC_WorkFlowBaseFrame; { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. } { This is the base frame for all the Workflow TFrames that show up in } { workflow seque...
unit PostgresTypeNameConstants; interface const INTEGER_TYPE_NAME = 'integer'; BIG_INTEGER_TYPE_NAME = 'bigint'; VARCHAR_TYPE_NAME = 'varchar'; TEXT_TYPE_NAME = 'text'; DATE_TYPE_NAME = 'date'; TIMESTAMP_WITHOUT_TIME_ZONE_TYPE_NAME = 'timestamp without time zone'; BOOLEAN_TYPE_NAME = 'boolean'; impl...
unit MSDataTypes; (***** Code Written By Huang YanLai *****) {$ALIGN OFF} // turn off alignment of fields in record types. interface // Include DBLIB definitions (it checks to see if they have already // been defined) // {import from <srvdbtyp.h>} type //#if !defined( DBTYPEDEFS ) // So we don't conflict...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
{ ------------------------------------------------------------------------------ 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 the License. You may obtain a copy of the License at http://www.mozilla.org/MP...
unit TaskbarList; interface uses System.SysUtils, System.Classes, Winapi.Messages, Winapi.Windows, Winapi.ShlObj, System.Win.ComObj; type TTaskbarList = class(TComponent) private { Private declarations } FTaskBarList: ITaskbarList3; FHandle : HWND; protected { Prot...
unit UfP; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs, IdBaseComponent, IdComponent, IdCustomTCPServer, IdTCPServer, IdCmdTCPServer, IdExplicitTLSClientServerBase, IdSMTPServer, IdTCPConnection, IdTCPClient, IdMes...
unit NetWorkController; interface uses SysUtils, FMX.Dialogs, IdCompressorZLib, IdHTTP, REST.Json, System.JSON, System.Messaging, DBXJSON, REST.Utils, System.Classes, IdTCPClient, FireDAC.Comp.Client, System.Threading, System.IniFiles, System.IOUtils, IdException, FireDAC.Stan.StorageBin, Data.DB, IdGlobal, ...
{----------------------------------------------------------------------------- Unit Name: DUDirsApps Author: Sebastian Hütter Date: 2006-08-01 Purpose: Get location of System paths, start applications, create Links History: 2006-08-01 initial release ---------------------------------------------------...
unit uVarsEditor; {$mode objfpc}{$H+} interface uses Classes, SysUtils, VirtualTrees, Dialogs, Windows, Forms, uLibrary, u2ColumnEditor, uVtBaseEditor; type { TVarData } TVarData = class(T2ColumnData) private fVar: IVarDefine; protected function GetName: string; override; function GetS...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
unit Frm_Provincias_Editor; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm, Frm_Dialogo, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.Phys.Intf, FireDAC....
{$MODESWITCH RESULT+} {$GOTO ON} (************************************************************************* Copyright (c) 2007, Sergey Bochkanov (ALGLIB project). 1988, Pierre L'Ecuyer >>> SOURCE LICENSE >>> This program is free software; you can redistribute it and/or modify it under the terms of the...
unit AqDrop.Core.Observable; {$I 'AqDrop.Core.FullRTTIForMethods.inc'} interface uses System.Rtti, System.Classes, System.SysUtils, AqDrop.Core.Attributes, AQDrop.Core.Observer.Intf, AqDrop.Core.Observer, AqDrop.Core.Collections; type AqNotifyObserversTag = class(TAqAttribute); ...
unit fTranslate; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.OleCtrls, SHDocVw, Web.HTTPApp, Web.HTTPProd, Vcl.ExtCtrls, Vcl.StdCtrls, Winapi.ActiveX, MSHTML, uGoogleTranslateClass, System.Net...
program ejercicio_16; function cumpleA(caracter:char):boolean; begin if(caracter<>'$')then cumpleA:=true else cumpleA:=false; end; function noCumpleCorteA(caracter:char):boolean; begin if(caracter<>'%')then noCumpleCorteA:=true else noCumpleCorteA:=false; end; procedure secuencia_A(var cant_A:...
unit md5; interface uses Windows, SysUtils; // #define MD5_LONG unsigned int // // #define MD5_CBLOCK 64 // #define MD5_LBLOCK (MD5_CBLOCK/4) // #define MD5_DIGEST_LENGTH 16 const MD5_CBLOCK = 64; MD5_LBLOCK = (MD5_CBLOCK div 4); MD5_DIGEST_LENGTH = 16; // typedef struct MD5state_st // { // MD5_LONG A,B,C...
{------------------------------------------------------------------------------- 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 the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ So...
unit aIni; interface uses System.IOUtils, System.Classes, System.SysUtils, System.IniFiles; const INI_NAME = 'PushDemo.ini'; STR_SECTION_CONFIG = 'CONFIG'; STR_NAMES : array[1..4] of string = ('UserName', 'UserEmail', 'DeviceToken', 'RegUrl'); STR_DEFAULTS : array[1..4] of string = ('', ''...
unit MyServerUnit; interface uses System.SysUtils, Sparkle.HttpSys.Server; procedure StartMyServer; procedure StopMyServer; implementation uses Aurelius.Sql.Interbase, RemoteDB.Drivers.Base, RemoteDB.Drivers.Interfaces, RemoteDB.Drivers.FireDac, RemoteDB.Server.Module, XData.Aure...
unit uF7_jualOlahan;{Note : perlu dibuat agar bahan olahan yang habis dihapus nama nya} interface uses uP1_tipeBentukan, uP3_Umum, uF6_OlahBahan; procedure mainJualOlahan(ID : integer; var dataBahanOlahan : tabelBahanOlahan; var dataSimulasi : tabelSimulasi); { I.S : Bagaimana keadaan awal dar...
unit uGCAxLeadSDK; {$I twcomp.pas} interface uses VCLTee.TeEngine, VCLTee.Chart, VCLTee.TeeProcs, VCLTee.Series, Windows, Variants, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, pGCAxLead_TLB, uGCAxLead, uTWCAxForm, twTools, axctrls, comServ, ActiveX, CAS_CONTROLS, CAS_TABLE_CONTROLS, CAS_...
// Image Processing Primitives Library // (See ImageProcessingLibrary for High-Level Library) // // Earl F. Glynn, April 1998. Updated September 1998. UNIT ImageProcessingPrimitives; INTERFACE USES Windows, // TRGBTriple Graphics; // TPixelFormat, TCanvas CONST MaxPixelCount = 6...
unit BuilderPizzaExample.Director.IMenuServices; interface uses BuilderPizzaExample.Builder.Base.IPizzaBuilder, BuilderPizzaExample.Domain.ValueObject.PizzaSize, BuilderPizzaExample.Domain.Edge; type IMenuServices = interface ['{69C2E8BA-A8AA-48FB-8D5A-DB20C84ED9CB}'] function PreparePizzaWihoutEdge(...
unit qMelhoresAlunos; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, q_RelPadrao, uFrameCurso, StdCtrls, CheckLst, DBCtrls, ExtCtrls, DB, ZAbstractRODataset, ZAbstractDataset, ZDataset, QRPDFFilt, JvExControls, JvXPCore, JvXPButtons, QRCtrls, QuickRpt, uClasse...
unit EC2015_JSON.InstagramApiREST; interface uses System.SysUtils, System.Classes, IPPeerClient, REST.Client, Data.Bind.Components, Data.Bind.ObjectScope, REST.Authenticator.OAuth, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, IdCustomTCPServer, IdCu...
unit ConfigHandlerINIFile; interface uses ConfigManager, ConfigState, Forms, Classes, IniFiles, SysUtils; const R3T3_INI_FILE_NAME = 'R3T3.ini'; type TConfigHandlerINIFile = class(TInterfacedObject, IConfigObserver) private FConfigManager: TConfigManag...
unit Delphi.Mocks.Examples.Objects; interface uses SysUtils, DUnitX.TestFramework, Delphi.Mocks; type ESimpleException = exception; {$M+} TSimpleMockedObject = class(TObject) public procedure SimpleMethod;virtual; end; {$M-} TSystemUnderTest = class(TObject) private FMocked : TSimpleMo...
unit UClassesComplex; { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. } interface uses UClasses, UMessages, UPgView; type // TAppraisalCell TAppraisalCe...
(* Copyright (c) 2011, Stefan Glienke All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and t...
unit DataReader; interface uses IGetSelfUnit, SysUtils, Classes; type IDataReader = interface (IGetSelf) ['{74A93A57-CC9A-401D-988D-5098834713E0}'] procedure Restart; function Next: Boolean; function GetRecordCount: Integer; function GetValue(const FieldName: String): Variant; ...
unit URepositorioCliente; interface uses UCliente , UMunicipio , UEntidade , URepositorioDB , SqlExpr , URepositorioMunicipio ; type TRepositorioCliente = class(TRepositorioDB<TCLIENTE>) private FRepositorioMunicipio: TRepositorioMunicipio; protected procedure AtribuiDBParaEntidade(con...
program BilanganMenanjak; //Program untuk menentukan apakah x bilangan menanjak (* DICTIONARY *) var N : Int64; (* FUNCTIONS *) function IsMenanjak (X:Int64) : boolean; //Fungsi penentu apakah X bilangan menanjak begin if (X >= 10) AND (X mod 10 < ((X div 10) mod 10)) then IsMenanjak (X div 10) else if X < 10 ...
unit Services.Checkins; interface uses System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client, FireDAC.Stan.StorageBin, DataSet.S...
{*******************************************************} { PHP4Applications } { } { Delphi interface for PHP4Applications } { } { Author: ...
unit UntCompararListaController; interface uses System.Classes, Vcl.ComCtrls, UntCompararListaResult, Vcl.Controls, UntBarraProgresso, UntOpStrings, UntOpListas, UntCompararDuasListaResult; type TCompararListaController = class private FBarraProgresso: TBarraProgresso; FStrings: TOpStrings; ...
unit DragonCargo; {$mode objfpc}{$H+} interface uses Classes, SysUtils, BaseModel; type IBaseDragonCargo = interface(IBaseModel) ['{A54500B4-BAF2-4EA2-97C8-BFD6159C039A}'] function GetSolarArray: LongWord; function GetUnpressurizedCargo: Boolean; procedure SetSolarArray(AValue: LongWord); proc...
program ShellSort; {$mode objfpc}{$H+} uses {$IFDEF UNIX} {$IFDEF UseCThreads} cthreads, {$ENDIF} {$ENDIF} Classes { you can add units after this }; procedure ShellS(var X: array of integer); var Done: boolean; Jump, j, i: integer; Temp: integer; begin Jump := High(X); wh...
(* Copyright (c) 2011, Stefan Glienke All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and t...
unit frEditorCodigo; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ScriptEngine, Buttons, StdCtrls, ExtCtrls, ComCtrls, SynEdit, ImgList, SynEditHighlighter, SynHighlighterPas, SynCompletionProposal, Script, ActnList, SpTBXItem, TB2Item, TB2Dock, TB2Toolbar...
unit dbProcedureTest; interface uses TestFramework, dbTest; type TdbProcedureTest = class (TdbTest) private procedure CreateHistoryProcedure; published procedure CreateMovementProcedure; procedure CreateMovementItemProcedure; procedure CreateObjectProcedure; procedure CreatePeriodCloseProced...
unit sampleauthIntf; interface uses Soap.InvokeRegistry, System.Types, Soap.XSBuiltIns; type TUserCredentials = class(TRemotable) private Fpassw: string; Fusername: string; published property username: string read Fusername write Fusername; property passw: string read Fpassw write Fpassw; en...
{ **************************************************************************** } { } { Sample for the MMDB Reader project } { ...
unit UntCompararListaResult; interface uses System.Classes, UntCompararDuasListaResult; type TCompararListaResult = class(TCompararDuasListaResult) private FListaNomesNaoContemListaParcial: TStringList; public constructor Create(); reintroduce; destructor Destroy(); override; pro...
unit ItemEditor.RAM; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ItemEditor.Base, StdCtrls, ComCtrls, ExtCtrls, pngimage, Buttons, PngBitBtn; type TItemEditorFrame_RAM = class(TItemEditorBaseFrame) CustomTabSheet: TTabSheet; BankTypeCombo: TComboBo...
unit FMain; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, tiPerAwareCtrls, ExtCtrls, tiListView, tiListViewPlus, tiFileSync_Mgr, tiFileName_BOM, tiFileSyncSetup_BOM, ComCtrls, Buttons, tiFocusPanel {$IFDEF INTERNAL_HTTP_SERVER} ,tiFileSyncReader_Remote_...
unit DIOTA.Dto.Request.WereAddressesSpentFromRequest; interface uses System.Classes, REST.Client, System.JSON.Builders, DIOTA.IotaAPIClasses; type TWereAddressesSpentFromRequest = class(TIotaAPIRequest) private FAddresses: TStrings; protected function GetCommand: String; override; function ...
unit ZeosPostgresSequenceNumberGeneratorUnit; interface uses INumberGeneratorUnit, DBSequenceNumberGeneratorUnit, SysUtils, Classes, ZConnection; type TZeosPostgresSequenceNumberGenerator = class (TDBSequenceNumberGenerator) private FConnection: TZConnection; protected function ...
unit FTerrain; interface uses FOpenGl; type TTile = Record path : string; is_square : boolean; end; TSquares = record vertex : array of GLFloat; texture : array of GLFloat; color : array of GLFloat; end; var DispTerrain : TSquares; TerrainGLID : GLuint; const T...
unit LDT1097; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Radar_TLB; type TLDT1097 = class(TComponent, IGeneral, ISynchronizer, IVideo, IAntenna, ITxRx, IRadar) published // IGeneral function Get_Version: Integer; safecall; procedure Enable_IO...
// ****************************************************************** // // Program Name : AT Library // Program Version: // Platform(s) : Win32, Win64, OSX, Android, IOS // Framework : None // // Filename : AT.EncDec.Hash.SHA.pas // File Version : 2.00 // Date Created : 26-APR-2016 // Author ...
unit RepositorioProduto_kit; interface uses DB, Auditoria, Repositorio; type TRepositorioProduto_kit = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; function GetIdent...
unit Area; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TAreaStyle = (asRectangle, asLine, asPoint); TArea = class(TCustomControl) public constructor Create( anOwner : TComponent ); override; protected ...
unit TestGroupCollection; interface uses TestFramework, RegularExpressions; type TTestGroupCollection = class(TTestCase) private FColl: IGroupCollection; protected procedure SetUp; override; published procedure TestGroupCollection; end; implementation { TTestGroupCollection } procedure T...
unit usettings; {$mode objfpc}{$H+} interface uses SysUtils, IniFiles, Graphics; type { TSettings } TSettings = class private FIniFile: TIniFile; procedure FTranspModeWrite(Value: Integer); function FTranspModeRead(): Integer; procedure FStretchModeWrite(Value:...
unit Fgroup; interface uses Classes, FUnit, windows; type TUnitGroup = class(Tlist) public constructor Create(); procedure addOrder(o : Porder); procedure addUnit(i : integer); procedure Clear(); override; procedure issueOrder(o : Porder); procedure re...
unit Prototype.View.Main; 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 TfrmMain = class(TForm) pnlTop: TPanel; btnGetResult: TButton; mmResult: TMemo; proc...
(* Output: 100 Perfect Your grade is 100.0 *) program Test17; var grade: real; begin writeln('Enter a multiple of 10 from 0 - 100'); readln(grade); case grade of 100 : writeln('Perfect'); 90 : writeln('A'); 80 : writeln('B'); 70 : writeln('C'); 60 : writeln('D'); 50 : w...
unit DW.PermissionsTypes; {*******************************************************} { } { Kastri Free } { } { DelphiWorlds Cross-Platform Library } { ...
unit RadialOutlineEditor; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, RadialOutlines; const WM_CHANGE = WM_USER + $400; type TveRadialOutlineEditor = class(TForm) Label1: TLabel; Label2: TLabel; LeadSpacingTEdit: TEdit;...
program autoevaluacion; type alumno = record apellido : String; dni : Integer; cursadasAprobadas : Integer; finalesAprobados : Integer; promedio : Real; end; maximos = record DNI1 : Integer ; DNI2 : Integer; max1 : Real; max2 : Real; end; procedure leerDatos(var a:alumno); begin with a do be...
unit TechnologieRCS; { Technologie RCS: rozhrani pro pouzivani Railroad Control System. RCS je obecny nazev pro sbernici resici rizeni prislusenstvi, napriklad MTB, touto sbernici ale muze byt klidne i XpressNET. Vsechny ostatni casti programu by mely volat metody tridy TRCS, ktera interaguje s RCS. Trida TRCS ...
unit UHTMLFilterTests; interface uses Classes, SysUtils, dwsXPlatformTests, dwsComp, dwsCompiler, dwsExprs, dwsHtmlFilter, dwsXPlatform, dwsUtils; type THTMLFilterTests = class(TTestCase) private FTests: TStringList; FCompiler: TDelphiWebScript; FFilter: TdwsHTMLFilter; ...
{***************************************************************************} { } { DelphiUIAutomation } { } { ...
unit USBIO; interface uses Windows, usbio_i, usbspec, usbio_i_delphi; {************************************************************************ * * Module: UsbIo.h and UsbIo.cpp * Long name: CUsbIo class * Description: CUsbIo base device class definition * * Runtime Env.: Win32, Part of UsbioLib ...
{*------------------------------------------------------------------------------ Finderクラス <p> パネルクラスと、イメージリストコントロールを使って、ファインダー機能と描画を担当<br /> NOTE: マウスカーソルとか依存性が微妙な作りなので修正する必要あり<br /> TODO: キャプチャーイベントもこっち側でフォーム側に通知する TODO: 子ウィンドウ検索機能もFinderクラスが担当させる </p> @Author $Author$ @Version $Id$ ---...
unit ParseNumberTest; {$I Synopse.inc} {$I HPPas.inc} interface uses SysUtils, Classes, Math, {$ifdef MSWINDOWS} Windows, {$endif} SynCommons, HPPas, HppTypeCast, HppSysUtils; procedure FunctionTest_HppTypeCast_ParseNumber; procedure FunctionTest_HppTypeCast_ParseBool; procedure NumberParsingBenchma...
Unit TimerPaintBox; Interface Uses System.SysUtils, System.Classes, Winapi.Windows, Vcl.Controls, Vcl.ExtCtrls; Type TTimerPaintBox = Class(TPaintBox) Private { Private declarations } Protected { Protected declarations } Public { Public declarations } Constructor Create(AOwner: TComponent); Override; P...
{ ClickFORMS (C) Copyright 1998 - 2010, Bradford Technologies, Inc. All Rights Reserved. Purpose: Manages portals to geographical mapping applications. } unit UMapPortalManager; interface uses Classes, UCell, UClasses, UStatus,UCustomerServices; // *** Type Definitions and Classes *****************...
unit RepositorioLoteNFe; interface uses DB, Repositorio; type TRepositorioLoteNFe = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; function GetIdentificador(Objeto...
(********************************************************************** Copyright 1998-2003, Microchip Data Systems / Carl Bunton Under license agreement, this source module may be used only on a single computer. No portion of this module may be reproduced, copied, revised, edited, distributed or transmit...
unit SystemAuthentificationFormController; interface uses unSystemAuthentificationForm, AbstractFormController, SystemAuthentificationFormViewModel, SystemAuthentificationService, SystemAuthentificationFormControllerEvents, ServiceInfo, AuthentificationData, ClientAccount, ClientLogOnInfo, EventB...
unit dmLector; interface uses SysUtils, Classes, OleServer, SpeechLib_TLB, Controls, tipos; type TLector = class; TThreadLector = class(TThread) private InPause: boolean; Stopped: boolean; Paused: boolean; Resumed: boolean; FVoice: TSpVoice; FLector: TLector; FTexto: string; pu...
unit USettings; interface uses System.Classes , System.IniFiles; type TSettings = class strict private class var FIni: TIniFile; FIniFolder: string; strict private class function GetBoolValue(const ASection, AParam: string; const ADefVal: Boolean): Boolean; class function GetIntVal...
unit DIOTA.Utils.Pair; interface type TPair<S, T> = class private FHi: T; FLow: S; public constructor Create(k: S; v: T); virtual; property Low: S read FLow write FLow; property Hi: T read FHi write FHi; end; implementation { TPair<S, T> } constructor TPair<S, T>.Create(k: S; v: T); beg...
unit DW.NativeImage.Android; {*******************************************************} { } { Kastri } { } { Delphi Worlds Cross-Platform Library ...
unit Singleton.Connection; interface uses FireDAC.UI.Intf, FireDAC.VCLUI.Wait, FireDAC.Phys.PGDef, FireDAC.Phys, FireDAC.Phys.PG, FireDAC.Stan.Intf, FireDAC.Comp.UI, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, Data.DB, FireDAC.Comp.Clien...
unit uTransaction; {$mode objfpc}{$H+} //{$DEFINE DEBUG}// Альтернатива -dDEBUG {$C+}// Альтернатива Включить Assert interface uses Classes, SysUtils, Windows, uBase, uModbus, uLogger; type { TTransaction } { Абстрактный класс } TTransaction = class(TBase, ITransaction) type // Основ...