text
stringlengths
14
6.51M
//Exercicio 45: Receber um número ímpar maior que 15 (com consistência de dados!). //Exibir quantas vezes esse número recebido é múltiplo de 3 ou se não ele não é múltiplo de 3. { Solução em Portugol Algoritmo Exercicio 45; Var numero, multiplo: inteiro; Inicio exiba("Programa que determina se um número ímp...
unit NewTeamDialog; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, MarqueeCtrl, FramedButton, VoyagerInterfaces, VoyagerServerInterfaces, InternationalizerComponent; type TNewTeamDlg = class(TForm) CloseBtn: TFramedButton; HintText: TMarqu...
unit RDOInterfaces; interface uses RDOProtocol, SocketComp; const MSG_GETTHREADDATA = $1001; MSG_SETTHREADDATA = $1002; {$IFNDEF AutoServer} type IRDOConnectionInit = interface [ '{410CAF20-64BA-11d1-AF26-008029E5CA8C}' ] function Get_Server : WideString; safecall; pro...
unit Cloud.Consts; interface const CLOUD_HOST_DEVNET = '185.27.192.156'; CLOUD_HOST_TESTNET = '190.2.130.231'; CLOUD_HOST_MAINNET = '190.2.137.77'; CLOUD_PORT_DEFAULT = 8765; PORT_BITCOIN = '18332'; PORT_LIGHTCOIN = '19332'; PORT_ETHEREUM = '5555'; DIRECTION_BUY = 1; DIRECTION_SEL...
{ TForge Library Copyright (c) Sergey Kasandrov 1997, 2018 ------------------------------------------------------- # generic stream cipher # inheritance: TForgeInstance <-- TCipherInstance <-- TStreamCipherInstance } unit tfStreamCiphers; {$I TFL.inc} interface...
unit uMD5; interface uses IdHashMessageDigest, IdHash, System.Classes, System.SysUtils; function getMD5Arquivo(const FileName: string): string; implementation function getMD5Arquivo(const FileName: string): string; var IdMD5: TIdHashMessageDigest5; FS: TFileStream; begin IdMD5 := nil; FS := nil; try ...
unit ADLSConnector.Interfaces; interface type IADLSConnectorView = interface ['{9BB081F9-887B-44B5-A352-49BE0261FB0A}'] // Input function GetBaseURL: string; function GetClientID: string; function GetClientSecret: string; function GetAccessTokenEndpoint: string; function GetAuthorizationEn...
unit Service; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs, Bird.Socket; type TBirdSocketService = class(TService) procedure ServiceCreate(Sender: TObject); procedure ServiceDestroy(Sender: TObject); procedure S...
unit MFichas.Model.Caixa; interface uses System.SysUtils, System.Generics.Collections, System.TypInfo, MFichas.Model.Entidade.CAIXA, MFichas.Model.Caixa.Interfaces, MFichas.Model.Caixa.Metodos.Factory, MFichas.Model.Caixa.State.Factory, MFichas.Model.Conexao.Interfaces, MFichas.Model.Conexao.Factor...
{ Steam Utilities Copyright (C) 2016, Simon J Stuart, All Rights Reserved Original Source Location: https://github.com/LaKraven/SteamUtils License: - You may use this library as you see fit, including use within commercial applications. - You may modify this library to suit your needs, without the requ...
unit OptimizationParametersUnit; interface uses REST.Json.Types, System.Generics.Collections, SysUtils, JSONNullableAttributeUnit, HttpQueryMemberAttributeUnit, GenericParametersUnit, RouteParametersUnit, AddressUnit, NullableBasicTypesUnit, EnumsUnit; type TOptimizationParameters = class(TGenericParameter...
unit StepParamsIntf; interface uses Classes, StepParamIntf; type IStepParams = interface(IInterface) ['{74097CFC-21AA-402D-BECA-2AD9F1B7810B}'] function GetParam(AParam: variant): IStepParam; procedure SetParam(AParam: variant; const Value: IStepParam); procedure Clear; function ByName(const A...
unit uTableName; interface type TableName = class(TCustomAttribute) private FName: String; public property Name: String read FName write FName; constructor Create(aName: String); end; implementation { TableName } constructor TableName.Create(aName: String); begin FName := aName; end; end.
unit TestVehicleSamplesUnit; interface uses TestFramework, Classes, SysUtils, BaseTestOnlineExamplesUnit; type TTestVehicleSamples = class(TTestOnlineExamples) private procedure GetVehicle; // working, but slowly and incorrectly procedure GetVehicles; // working, but slowly published end; imple...
unit Parsers.Excel.StroyInformResource; interface uses Parsers.Abstract, Parsers.Excel, GsDocument, SysUtils, Classes, StrUtils, Parsers.Excel.Tools; type TStroyInformResourceFileSuffix = (fsTER, fsFER); { Общий прототип для всех видов файлов СтройИнформРесурс } TStroyInformResourceParser = class(TExcelPars...
{ Version 1.0 - Author jasc2v8 at yahoo dot com This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by an...
{This program is a demonstration of the SORT interface. It creates a file with random numbers in it, calls SORT to sort the file, and prints the first 20 lines in the sorted file. To run this program, load it with PASSRT.MAC. exec srttst.pas,passrt.mac This program does things in a more complex way than it need...
unit FileUploadErrorsResponseUnit; interface uses REST.Json.Types, GenericParametersUnit, NullableBasicTypesUnit, CommonTypesUnit, JSONNullableAttributeUnit; type TFileUploadErrorsResponse = class(TGenericParameters) private [JSONName('errors')] FErrors: TStringArray; [JSONName('timestamp')] ...
unit LisAge; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, NxScrollControl, NxCustomGridControl, NxCustomGrid, NxGrid, NxColumns, NxColumnClasses, DB, DBTables, FMTBcd, SqlExpr, QuickRpt, QRCtrls, Menus, DBGrids, Vcl.OleServer...
unit Principal; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs; type TdmPrincipal = class(TService) procedure ServiceAfterInstall(Sender: TService); procedure ServiceAfterUninstall(Sender: TService); procedure Servi...
unit l3ComponentNameHelper; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Библиотека "VCM$Visual" // Автор: Костицын // Модуль: "w:/common/components/gui/Garant/VCM/l3ComponentNameHelper.pas" // Начат: 28.03.2012 // Родные Delphi интерфей...
{ MIT License Copyright (c) 2017 Marcos Douglas B. Santos 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, mo...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserv...
unit VoyagerTrains; interface uses ActorTypes, Automaton, StateEngine; procedure RegisterMetaData; function MetaPoolLocator( MetaPoolId : TMetaPoolId ) : TMetaStatePool; function ClientAutomatableFactory( Kind : TActorKind; const Context ) : IClientAutomatable; implementation uses SysUtils, Clas...
unit TestManager; interface uses // VCL Windows, Classes; type TChangeType = (ctUpdate, ctGetPassword); TChangeEvent = procedure(Sender: TObject; ChangeType: TChangeType) of object; { TTestManager } TTestManager = class private FTickCount: DWORD; FPassword: Integer; FOnChange: TChangeEven...
{@html(<hr>) @abstract(Types, constants, routines, etc. used troughout the Telemetry library.) @author(František Milt <fmilt@seznam.cz>) @created(2013-10-04) @lastmod(2014-05-05) @bold(@NoAutoLink(TelemetryCommon)) ©František Milt, all rights reserved. This file is intended to provide types, constants, routine...
Program Ejercicio8; Var Arch: text; A, Sum, Cont : integer; Begin Assign( Arch, 'Lote de prueba.TXT' ); {enlaza la variable Arch con el archivo 'Lote de prueba' necesario para la lectura} Reset ( Arch ); {Prepara el archivo para la lectura} Sum:=0; Cont := 0; While NOT eof ( Arch ) do {Hasta que llega al fin de...
unit TxtRes; interface type TTxtResType = (txtPlain, txtHTML); // TTxtRes describes a textual resource. Location is the URL (relative) // to the resource. TxtType specifies the type of the text. TTxtRes = class public constructor Create( aLocation : string; aTxtType : TTxtR...
{ ************************************************************** Package: XWB - Kernel RPCBroker Date Created: Sept 18, 1997 (Version 1.1) Site Name: Oakland, OI Field Office, Dept of Veteran Affairs Developers: Joel Ivey Description: Unit tests for RPCBroker functionality - requires dUnit to run uni...
unit settings; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, IdMessageParts, IdExplicitTLSClientServerBase, Dialogs, StdCtrls, JvComponentBase, JvFormPlacement, IdAttachmentFile, IdText, Vcl.ComCtrls; type TFormSettings = class(TForm) GroupBox2: TGroupBox; ...
{ Clever Internet Suite Copyright (C) 2014 Clever Components All Rights Reserved www.CleverComponents.com } unit clDkimUtils; interface {$I clVer.inc} uses {$IFNDEF DELPHIXE2} Classes, SysUtils, {$ELSE} System.Classes, System.SysUtils, {$ENDIF} clHeaderFieldList, clWUtils; type EclDkimError = class...
{*****************************************************************************\ * * Module Name: PMSHL.H * * OS/2 Presentation Manager Shell constants, types, messages and * function declarations * * Copyright (c) International Business Machines Corporation 1981, 1988-1990 * \*******************************************...
{ Clever Internet Suite Copyright (C) 2013 Clever Components All Rights Reserved www.CleverComponents.com } unit clThreadPool; interface {$I clVer.inc} uses {$IFNDEF DELPHIXE2} Windows, Classes, Contnrs, SyncObjs, ActiveX; {$ELSE} Winapi.Windows, System.Classes, System.Contnrs, System.SyncObjs, Winapi.A...
unit ssExcelConst; interface uses SysUtils, Graphics; const OleClassName = 'Excel.Application'; //UnderLine Styles for Font property xlUnderlineStyleDouble = $FFFFEFE9; xlUnderlineStyleDoubleAccounting = $00000005; xlUnderlineStyleNone = $FFFFEFD2; xlUnderlineStyleSingle = $00000002; xlUnderlin...
{ *************************************************************************** Copyright (c) 2016-2019 Kike Pérez Unit : Quick.Arrays Description : Multifuntional Arrays Author : Kike Pérez Version : 1.2 Created : 24/03/2019 Modified : 16/10/2019 This file is part of QuickLib: h...
unit evCellsOffsets; {* работа со смещениями ячеек } // Модуль: "w:\common\components\gui\Garant\Everest\evCellsOffsets.pas" // Стереотип: "SimpleClass" // Элемент модели: "TevCellsOffsets" MUID: (49CB6E880188) {$Include w:\common\components\gui\Garant\Everest\evDefine.inc} interface uses l3IntfUses , l3ProtoObj...
unit PNGImageList; interface uses classes,controls; type TPngImageList=class(TImageList) protected procedure ReadData(Stream: TStream); override; procedure WriteData(Stream: TStream); override; end; procedure Register; implementation uses PNGImage,graphics; procedure Register; begin RegisterCompon...
unit GameForm; interface uses SysUtils, Types, UITypes, Classes, Variants, FMX_Types, FMX_Controls, FMX_Forms, FMX_Dialogs, FMX_Grid, FMX_Layouts, FMX_Ani, GameXOImpl, XOPoint; type TfrmGame = class(TForm) pnlNotification: TPanel; pnlGamePane: TPanel; glButtons: TGridLayout; f11: T...
unit DAO.Lancamentos; interface uses FireDAC.Comp.Client, System.SysUtils, DAO.Conexao, Model.Lancamentos; type TLancamentosDAO = class private FConexao : TConexao; public constructor Create; function GetID(): Integer; function Inserir(ALancamento: TLancamentos): Boolean; function Alterar(A...
unit cAtualizacaoCampoMySQL; interface uses System.Classes, Vcl.Controls, Vcl.ExtCtrls, Vcl.Dialogs, FireDAC.Comp.Client, System.SysUtils, cFuncao, cAtualizacaoBancoDeDados; type TAtualizacaoCampoMySQL = class(TAtualizaBancoDados) private function CampoExisteNaTabela(aNomeTabela, aCampo:string):Boolean; ...
unit FFSMaskEdit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, lmdCustomEdit, lmdcaret, lmdclass, LMDCustomControl, LMDCustomPanel, LMDCustomBevelPanel, LMDBaseEdit, lmdGraph; const MapMax = 25; type TFFSCustomMaskEdit = class(TLMDCustomEdit) privat...
unit TTreeNodeForTestsWordsPack; // Модуль: "w:\common\components\rtl\Garant\DUnit_Script_Support\TTreeNodeForTestsWordsPack.pas" // Стереотип: "ScriptKeywordsPack" // Элемент модели: "TTreeNodeForTestsWordsPack" MUID: (55C9F3800372) {$Include w:\common\components\rtl\Garant\DUnit_Script_Support\dsDefine.inc} interf...
unit cb_Main; {$I ProjectDefine.inc} interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, l3Types, Mask, ToolEdit; type TMainForm = class(TForm) btnStart: TButton; ProgressBar: TProgressBar; lblDisplay: TLabel; rbUpdate: TRadioB...
{=============================================================================== SimpleLog ©František Milt 2014-05-07 Version 1.2.3 ===============================================================================} unit SimpleLog; interface uses SysUtils, Classes, Contnrs, SyncObjs; type TLogEvent = procedure(...
unit uRelPedidoVendaSimp; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uModeloRel, StdCtrls, Buttons, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, Mask, JvExControls, JvSpeedButton, cxTextEdit, cxMaskEdit, cxDropDownE...
PROGRAM Fibonacci; VAR calls, depth, maxDepth: INTEGER; FUNCTION FibonacciRec(n: INTEGER): INTEGER; BEGIN calls := calls + 1; depth := depth + 1; IF depth > maxDepth THEN maxDepth := depth; IF n <= 2 THEN FibonacciRec := 1 ELSE FibonacciRec := FibonacciRec(n-2) + F...
unit StringGroup; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs; type TStringGroup = class(TComponent) private FList : TList; ActiveList : TStringList; FGroupList:TStringList; FActiveGroupIndex: integer; function GetGroupName(i: intege...
unit NtUtils.WinUser; interface uses Winapi.WinNt, Winapi.WinUser, NtUtils.Exceptions, NtUtils.Security.Sid; type TNtxStatus = NtUtils.Exceptions.TNtxStatus; { Open } // Open desktop function UsrxOpenDesktop(out hDesktop: THandle; Name: String; DesiredAccess: TAccessMask; InheritHandle: Boolean = False): TNt...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All r...
unit npControls; {* указывает от какого навигатора на форме был отстыкован компонент } // Модуль: "w:\common\components\gui\Garant\VT\npControls.pas" // Стереотип: "SimpleClass" // Элемент модели: "TnpControls" MUID: (4F61DED90246) {$Include w:\common\components\gui\Garant\VT\vtDefine.inc} interface {$If NOT Defin...
unit PI.Resources; interface uses // RTL System.SysUtils, System.Classes, System.ImageList, // FMX FMX.Types, FMX.Controls, FMX.ImgList; type TResources = class(TDataModule) StyleBook: TStyleBook; ImageList: TImageList; private procedure LoadStyle; public constructor Cr...
{ *********************************************************************************** } { * CryptoLib Library * } { * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * } { * Github Repository <https://github.co...
unit osActionList; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ActnList; type TosActionList = class(TActionList) private { Private declarations } protected { Protected declarations } public function GetActionByName(const PName: strin...
{ Subroutine SST_R_PAS_VAR_INIT (DTYPE, EXP_P) * * Process the VAR_INITIALIZER syntax. The tag for this syntax has just been * read. DTYPE is the data type descriptor for the variable being initialized. * EXP_P will be returned pointing to the initial value expression. } module sst_r_pas_VAR_INIT; define sst_...
unit udmAcessoDados; 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.Stan.ExprFuncs, FireDAC.Phys.SQLiteDef, FireDAC.Stan.Param...
unit TTSNOTICETAGTable; interface uses Classes, DB, DBISAMTb, SysUtils, DBISAMTableAU, DataBuf; type TTTSNOTICETAGRecord = record PCifFlag: String[1]; PLoanNum: String[20]; PCollNum: Integer; PTrackCode: String[8]; PCategorySub: Integer; PSendToType: String[1]; PSepar...
unit xNumInWords_ENG; interface function NumInWords_ENG(number: Int64): String; implementation uses {xLngDefs, xLngManager,} SysUtils; const smalls: array [0..19] of String = ( 'zero ', 'one ', 'two ', 'three ', 'four ', 'five ', 'six ', 'seven ', 'eight ',...
unit GX_ReselectDesktop; interface uses SysUtils, Classes, Forms, GX_Experts; type TReselectDesktopExpert = class(TGX_Expert) public function GetActionCaption: string; override; class function GetName: string; override; procedure Execute(Sender: TObject); override; functio...
{ Mark Sattolo 428500 CSI-1100A DGD-1 TA: Chris Lankester Assignment 9, Question 1 } program MagicSquare (input,output); const MaxSize = 20; type ArrayType = array[1..MaxSize, 1..MaxSize] of integer; { *************************************************************************** } procedure SumRow (Mat...
unit mungo.components.bgrabitmap.Canvas2D; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Graphics, BGRACanvas2D, BGRABitmapTypes, BGRAGraphics, bgrabitmap, mungo.components.types, mungo.components.renderer, mungo.components.geometry, mungo.components.styles, p3d.math; type IDrawToCanvas = ...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; type { TForm1 } TForm1 = class(TForm) procedure FormPaint(Sender: TObject); private public end; var Form1: TForm1; implementation {$R *.lfm} { TForm1 } procedure DrawR...
unit ConsoleTools; interface uses {$IFDEF MSWINDOWS} windows, {$ENDIF} commandprocessor, stringx, typex, systemx, sysutils, betterobject; const CC_RED = 12; CC_YELLOW = 14; CC_WHITE = 15; CC_SILVER = 7; CC_GREY = 8; CC_BLUE = 9; CC_GREEN = 10; NLR = '`cF`'+CRLF; type TConsole = class(TBetterOb...
unit uScene; interface uses Types, Graphics, // Own units UCommon, uResFont, uGraph, uHint; type TSceneEnum = (scNone, scMenu, scAbout, scSellect, scName, scRace, scLoad, scGame, scDialog, scTrade, scInv, scStat, scHero, scQuest, scSkill, scHelp, scFrame, scCraft, scGold); TMouseBtn = ...
unit upmgThreadEmailSender; interface uses Classes, Windows, umailSendMail; type TpmgThreadEmailSender = class(TThread) private FMailSender : TmailSendEmail; FsMailAviso : string; FnIntervalo : integer; FnIntervaloContador : integer; FsListaEmails : TStringList; function ServicoAtivo : ...
unit uClienteCRUD; interface uses uCliente, FireDAC.Comp.Client; type TClienteCRUD = class(TCliente) private FConexao : TFDConnection; FCliente : TFDQuery; FpsCidadeDescricao: String; procedure pcdInsertCliente; procedure pcdUpdateCliente; procedure pcdParametrosCliente; funct...
unit kyugo_hw; interface uses {$IFDEF WINDOWS}windows,{$ENDIF} nz80,main_engine,controls_engine,gfx_engine,ay_8910,rom_engine, pal_engine,sound_engine,timer_engine; function iniciar_kyugo_hw:boolean; implementation const repulse_rom:array[0..2] of tipo_roms=( (n:'repulse.b5';l:$2000;p:0;crc:$f...
unit MainFrm; 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) Button1: TButton; Button2: TButton; Button3: TButton; Button4: TButton; Memo1: TMemo; ...
unit MapIsoHandler; interface uses Windows, VoyagerInterfaces, VoyagerServerInterfaces, Classes, Controls, FiveTypes, MapIsoView, Config, ExtCtrls; type TMetaMapIsoHandler = class( TInterfacedObject, IMetaURLHandler ) private function getName : string; ...
unit ToolsAPITools; interface uses ToolsAPI; function GetActiveFormEditor: IOTAFormEditor; implementation function GetActiveFormEditor; var otaModule: IOTAModule; otaEditor: IOTAEditor; iModule: Integer; begin Result := nil; otaModule := (BorlandIDEServices as ...
{DEPENDENCY: indylaz_runtime, see readme.txt} unit httpswebserver; {$mode objfpc}{$H+} interface uses SysUtils, Classes, EventLog, LCLIntf, //Indy10.6.2.5494 IdBaseComponent, IdComponent, IdContext,IdSocketHandle, IdGlobal, IdGlobalProtocols, IdCustomHTTPServer, IdHTTPServer, //OpenSSL-1.0.2l-i386-win32 ...
unit main; interface uses Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DBCtrls, Menus, ExtCtrls, StdCtrls, Buttons; type { TMainForm } TMainForm = class(TForm) Label1: TLabel; Label10: TLabel; Label11: TLabel; Label12: TLabel; Label2: TLabe...
inherited dmProtDoc: TdmProtDoc OldCreateOrder = True inherited qryManutencao: TIBCQuery KeyFields = 'ID_DOC' KeyGenerator = 'GEN_PROTDOC' GeneratorMode = gmInsert SQLInsert.Strings = ( 'INSERT INTO STWPROTDOC' ' (ID_DOC, ID_PROT, CGC, SERIE, NOTA)' 'VALUES' ' (:ID_DOC, :ID...
//////////////////////////////////////////////////////////////////////////////// // Errors.pas // MTB communication library // Error codes definiton // (c) Jan Horacek (jan.horacek@kmz-brno.cz), //////////////////////////////////////////////////////////////////////////////// { LICENSE: Copyright 2016 Jan Ho...
{******************************************************************************} { } { Delphi FB4D Library } { Copyright (c) 2018-2022 Christoph Schneider ...
unit m_listbox; {$mode objfpc}{$H+} interface uses Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls; type { TMariaeListBox } TMariaeListBox = class(TListBox) private FChanged: Boolean; procedure SetChanged(AValue: Boolean); protected public constructor Crea...
unit FFSSplitter; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, FFSTypes; type TFFSSplitter = class(TSplitter) private FFieldsColorScheme: TFieldsColorScheme; procedure SetFieldsColorScheme(const Value: TFieldsColorScheme); procedu...
Unit udmBloqueioLote; interface uses SysUtils, Classes, InvokeRegistry, Midas, SOAPMidas, SOAPDm, 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.MSSQL, FireDAC.Phys.MSSQLDef, Fire...
unit ufrmKartuAP; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, ufrmDefaultLaporan, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxBarBuiltInMenu, Vcl.Menus, cxContainer, cxEdit, cxStyles,...
unit IdHeaderCoderBase; interface {$i IdCompilerDefines.inc} uses Classes, IdGlobal, IdException; type TIdHeaderDecodingNeededEvent = procedure(const ACharSet: String; const AData: TIdBytes; var VResult: String; var VHandled: Boolean) of object; TIdHeaderEncodingNeededEvent = procedure(const ACharS...
{**************************************************************************\ * * Module Name: PMHELP.H * * OS/2 Information Presentation Facility (IPF) for providing Help * * Copyright (c) International Business Machines Corporation 1989, 1990 * **************************************************************************...
unit DzListHeaderCustom; interface uses Vcl.Forms, Vcl.StdCtrls, Vcl.Controls, Vcl.ExtCtrls, Vcl.CheckLst, System.Classes, Vcl.Buttons, // DzListHeader, System.Types; type TFrmListHeaderCustom = class(TForm) BtnAll: TSpeedButton; BtnNone: TSpeedButton; BtnSwap: TSpeedButton; BtnDefOrder: TSpe...
unit alcuAutoAnnoExportTaskPrim; // Модуль: "w:\archi\source\projects\PipeInAuto\Tasks\alcuAutoAnnoExportTaskPrim.pas" // Стереотип: "SimpleClass" // Элемент модели: "TalcuAutoAnnoExportTaskPrim" MUID: (53F59F27018A) {$Include w:\archi\source\projects\PipeInAuto\alcuDefine.inc} interface {$If Defined(ServerTasks)} ...
unit command_tree_lib; interface type TCommandTree=class(TAbstractCommandContainer) //дерево для undo/redo с многими ветвями private fRoot,fCurrent,fIterator: TAbstractTreeCommand; procedure RecursiveCompare(t1,t2: TabstractTreeCommand;var same,plus,minus: Integer); procedure RecursiveMerge(t...
unit ObjCToPas; { * This file is part of ObjCParser tool * Copyright (C) 2008-2009 by Dmitry Boyarintsev under the GNU LGPL * license version 2.0 or 2.1. You should have received a copy of the * LGPL license along with at http://www.gnu.org/ } // the unit contains (should contain) ObjC to Pascal convertion utili...
{ TRedisWire: Redis.pas Copyright 2014 Stijn Sanders Made available under terms described in file "LICENSE" https://github.com/stijnsanders/TRedisWire } unit Redis; interface uses SysUtils, Sockets; type TRedisWire=class(TObject) private FSocket:TTcpClient; FTimeoutMS:cardinal; ...
{ *********************************************************************************** } { * CryptoLib Library * } { * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * } { * Github Repository <https://github.co...
const arraySize = 10; const minRandomNumber = -9; const maxRandomNumber = 9; type integerArrayType = array [1..arraySize] of integer; procedure viewArray(arr: integerArrayType; size: integer); begin write('['); for var index := 1 to size - 1 do begin write(arr[index] + ', '); end; writeln(...
unit OrderUnit; interface uses REST.Json.Types, Classes, SysUtils, System.Generics.Collections, JSONNullableAttributeUnit, GenericParametersUnit, NullableBasicTypesUnit, JSONDictionaryIntermediateObjectUnit; type /// <summary> /// Json schema for an Order class, which is used for keeping clie...
unit TTSTITMFLAGSTABLE; interface uses Classes, DB, DBISAMTb, SysUtils, DBISAMTableAU, DataBuf; type TTTSTITMFLAGSRecord = record PLenderNum: String[4]; PCifFlag: String[1]; PLoanCif: String[20]; PCollNum: Integer; PTrackCode: String[8]; PSubNum: Integer; POrigSpFlags...
unit UPickerDemo; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.TMSBitmapSelector, FMX.TMSCustomSelector, FMX.TMSColorSelector, FMX.TMSBitmapPicker, FMX.TMSBaseControl, FMX.TMSCust...
{ 一个简单的BitSet,类似于C++ 使用动态实现,请及时Destroy 支持操作:单位设置,and、or、xor、not FPC5719 2018.11 } {$MODE OBJFPC} unit bitset; interface type TBitSet=class private data:^byte; len:longint; public constructor Create; constructor Create(l:longint); destructor Destroy;override; procedure SetBit(pos:lon...
unit ce_tools; {$I ce_defines.inc} interface uses Classes, SysUtils, FileUtil, process, menus, ce_common, ce_writableComponent, ce_interfaces, ce_observer, ce_inspectors; type TCEToolItem = class(TCollectionItem) private fProcess: TCheckedAsyncProcess; fExecutable: TCEFilename; fWorkingDir: TCE...
unit VTEditors; {$mode delphi} {$H+} // Utility unit for the advanced Virtual Treeview demo application which contains the implementation of edit link // interfaces used in other samples of the demo. interface uses LCLIntf,LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdC...
{!DOCTOPIC}{ Type » TPointArray } {!DOCREF} { @method: function TPointArray.Len(): Int32; @desc: Returns the length of the TPA. Same as `Length(TPA)` } function TPointArray.Len(): Int32; begin Result := Length(Self); end; {!DOCREF} { @method: function TPointArray.IsEmpty(): Boolean; @desc: Returns True...
unit AddressBookContactActionsUnit; interface uses System.Generics.Collections, SysUtils, AddressBookContactUnit, AddressBookParametersUnit, IConnectionUnit, BaseActionUnit, SettingsUnit, CommonTypesUnit, EnumsUnit; type TAddressBookContactActions = class(TBaseAction) private public /// <summary> ...
unit GetRequest; interface uses IdHTTP , DownloadObj , classes , sysUtils ; type TGetRequest=class private FHttp: TIdHTTP; FDownload: TDownload; FResponseCode: integer; FErrorMessage: string; procedure iniResponse; published property http: TIdHTTP read FHttp write FHttp; p...
unit uWebSocket; {$mode objfpc}{$H+} { Copyright (c) 2018, pjde JQuery, JQuery Mobile (c) 2010-2012 The JQuery Foundation All rights reserved. } interface uses Classes, Winsock2, uLog; const // web socket decoding stages rsNone = 0; rsHeader = 1; rsExtraLeng...
function isPrime(n: LongInt): Boolean; var i: LongInt; begin isPrime := (n = 2) or (n = 3) or not ((n mod 2 = 0) or (n mod 3 = 0)); i := 5; while i <= (n div 2 + 1) do begin if n mod i = 0 then isPrime := false; if n mod (i + 2) = 0 then isPrime := false; ...
unit Model.Departamentos; interface type TDepartamentos = class private FCodigo: System.Integer; FDEscricao: System.string; FLog: System.string; public property Codigo: System.Integer read FCodigo write FCodigo; property Descricao: System.string read FDescricao write FDescri...
{ *********************************************************************************** } { * CryptoLib Library * } { * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * } { * Github Repository <https://github.co...