text
stringlengths
14
6.51M
{*******************************************************} { } { Delphi FireDAC Framework } { } { Copyright(c) 2004-2018 Embarcadero Technologies, Inc. } { All rights rese...
// ************************************************************************************************** // Delphi Aio Library. // Unit AioIndy // https://github.com/Purik/AIO // The contents of this file are subject to the Apache License 2.0 (the "License"); // you may not use this file except in compliance with the Lic...
{ SynEdit plugin that automates the notifications between the LSP Client and the Server. (C) PyScripter 2020 } unit SynEditLsp; interface uses System.SysUtils, System.Classes, System.JSON, System.Generics.Collections, LspUtils, SynEditTypes, SynEdit; type TDiagnostic =...
namespace RemotingSample.Server; interface uses System.Reflection, System.Runtime.Remoting, System.Runtime.Remoting.Channels, System.Runtime.Remoting.Channels.HTTP, RemotingSample.Implementation; type ConsoleApp = class class var fChannel: HttpChannel; public class ...
unit GC.LaserCutBoxes.Test.Box; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FPCUnit, TestUtils, TestRegistry, GC.LaserCutBoxes.Box; type { TBoxTest } TBoxTest= class(TTestCase) private FBox: TLaserCutBox; protected published procedure TestBoxCreate; end; implementation procedure TB...
unit CncShellDlgs; interface uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls, Buttons, ExtCtrls, Grids, ValEdit, ComCtrls, Math; type TLineAlignement = (laUndefined, laOdd, laEven, laNone); type TMetadataDlg = class(TForm) OKBtn: TButton; CancelBtn: TButton; Pane...
unit Security4D.Impl; interface uses System.SysUtils, Security4D; type TSecurity = class(TInterfacedObject, ISecurity) private { private declarations } protected { protected declarations } public { public declarations } end; TSecurityProvider = class abstract(TSecurity) private fS...
unit uContaContabil; interface uses Contnrs, uRegistroEmpresaContabil , uRegistro; type TContaContabil = class(TRegistroEmpresaContabil) private fGrau: Integer; fID: Integer; fTipo: String; fCodigo: String; fDescricao: String; fCodigoReduzido: String; procedure setCodigo(const V...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, Dateutils; type TForm1 = class(TForm) PageControl1: TPageControl; TabSheet1: TTabSheet; Label1: TLabel; Button1: TButton; Label2: TLabel; Label3: TLabel; ...
unit WidgetChats; {$mode objfpc}{$H+} interface uses Classes, SysUtils, CryptChat, MainCrypt, Dialogs, Forms, Unix, ExtCtrls; const // Сообщения всегда имеют эту тему CHAT_MAIN_SUBJECT = '{6D78D26F-347E-4D57-9E9C-03C82139CD38}'; CHAT_MAIN_ADD_CONTACT = '{138C7A7C-8F74-4DAF-838B-21E6842A031D}'; CHAT_IN...
program CoolingDeviceInfo; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes, SysUtils, uSMBIOS { you can add units after this }; function ByteToBinStr(AValue:Byte):string; const Bits: array[1..8] of byte = (128,64,32,16,8,4,2,1); var i: integer...
// // This unit is part of the GLScene Project, http://glscene.org // {: GLAtmosphere <p> This unit contains classes that imitate an atmosphere around a planet.<p> <b>History : </b><font size=-1><ul> <li>10/11/12 - PW - Added CPP compatibility: changed vector arrays to records <li>19/03/11 ...
{ ID: a2peter1 PROG: transform LANG: PASCAL } {$B-,I-,Q-,R-,S-} const problem = 'transform'; MaxN = 10; var N,i,j : longint; start,target, t1,t2 : array[1..MaxN,1..MaxN] of char; procedure rotate; begin for i := 1 to N do for j := 1 to N do ...
unit uMain; 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.Menus, Vcl.Samples.Spin, sfLog, org.utilities, org.tcpip.tcp, org.tcpip.tcp.proxy, dm.tcpip.tcp.proxy; type ...
{******************************************} { TeeChart Pro - URL files retrieval } { Copyright (c) 1995-2004 by David Berneda } { All Rights Reserved } {******************************************} unit TeeURL; {$I TeeDefs.inc} interface Uses {$IFNDEF LINUX} Windows, {$ENDIF} ...
unit Generator; interface uses Points; const LabSize=24; type PassMap = array [0..LabSize-1,0..LabSize-1] of integer; var cp : array [0..31] of PassMap; type DeltaArr = array [0..LabSize*2,0..LabSize*2] of float; procedure InitLab(var cp : PassMap; index : integer); procedure GenDelta...
unit GrievanceDuplicatesDialogUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, wwdblook, Db, DBTables, ExtCtrls; type TGrievanceDuplicatesDialog = class(TForm) YesButton: TBitBtn; NoButton: TBitBtn; GrievanceTable: TTable; Descrip...
unit u_DevAPI; {$MODE objfpc}{$H+} interface uses windows,Classes, SysUtils; type TTagType=(None,ultra_light,Mifare_DESFire,Mifare_One_S50,Mifare_ProX,Mifare_One_S70,Mifare_Pro); const DevAPI_DLL = 'DevAPI.dll'; WIFI_DLL='wifi.dll'; ISO14443A = 0; //获取硬件版本号 function HardwareVersion_...
{*******************************************************} { } { Delphi FireMonkey Platform } { } { Copyright(c) 2011-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit empform; { This program demonstrates using TClientDataSet in a distributed data application. The data comes from a separate OLE Automation server, so before running this project you must compile and run EmpServ.dpr. } interface uses SysUtils, Forms, Dialogs, ExtCtrls, StdCtrls, Mask, Classes, DBCli...
{ TGMInfoWindow demo program ES: programa de demostración de uso del componente TGMInfoWindow EN: demo program use of component TGMInfoWindow ========================================================================= History: ver 0.1: ES- primera versión EN- first version =====================================...
namespace RemObjects.Elements.System; {.$DEFINE DEBUG_UTF8} type { UTF8: 00000000-0000007F 1 7 0xxxxxxx 00000080-000007FF 2 11 110xxxxx 10xxxxxx 00000800-0000FFFF 3 16 1110xxxx 10xxxxxx 10xxxxxx 00010000-001FFFFF 4 21 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx 00200000-03FFF...
unit Main; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, ToolWin, SMSummInfo; type TfrmMain = class(TForm) OpenDialog: TOpenDialog; tbMain: TToolBar; btnOpen: TToolButton; ImageList: TImageList; btnSeparator1: TToo...
unit Test_data_stream; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls; type TfrmTestDataStream = class(TForm) btnStartStop: TBitBtn; btnExit: TBitBtn; edDelimeter: TEdit; Label1: TLabel; edSeriesCount: TEdit; ...
// ------------------------------------------------------------------------------- // Descrição: Escreva um programa pascal que determine a área do circulo dado // pela formula: Area = MeuPi * Raio * Raio onde MeuPi é uma constante // com valor 3.14159 // --------------------------------------------------------------...
unit uGetHandlesThread; interface uses Classes, Windows, SysUtils, PSApi, Math, SyncObjs, ShellApi, Graphics, TLHelp32, Dialogs; function ConvertPhysicalNameToVirtualPathName(const PhysicalName: string): string; function GetHDDDevicesWithDOSPath: TStringList; function GetFileFolderTypeNumber: Byte; ty...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC PostgreSQL API } { } { Copyright(c) 2004-2018 Embar...
eEn un entrenamiento de fútbol hay 20 jugadores que forman 4 equipos (cada jugador conoce el equipo al cual pertenece llamando a la función DarEquipo()). Cuando un equipo está listo (han llegado los 5 jugadores que lo componen), debe enfrentarse a otro equipo que también esté listo (los dos primeros equipos en junta...
unit uPublic; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,System.Generics.Collections, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Layouts,uEngine2DModel,uEngine2DSprite; const SWITCH_INTERVAL = 2000; Type TBaseLogic = class protect...
{$i deltics.interfacedobjects.inc} unit Deltics.InterfacedObjects.Interfaces.IInterfacedObjectList; interface type IInterfacedObjectList = interface ['{C7761F1C-2DFB-4FBA-8EED-46556675E8D1}'] function get_Capacity: Integer; function get_Count: Integer; function get_Item(const aIndex: ...
unit fNewQSO; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls, ComCtrls, fCommonLocal, uRigControl, uCfgStorage, uCWKeying, LCLType; const C_EMPTY_FREQ = '0.00000'; type TRadio = (trRadio1, trRadio2); type { TfrmNewQSO } TfrmNe...
{ Sergey Bodrov, 2012-2016 Data exchange via file. Suitable for device files (/dev/* under Unix or special files in Windows). Conventional data files can be used too. Properties: Filename - Path (optionally) and name of file. FilePos - Current position in file, bytes from beginning (for conventional files...
{***********************************************} { } { XML Data Binding } { } { Generated on: 2011-01-29 ¿ÀÈÄ 2:59:31 } { Generated from: C:\test1.xml } { Settings stor...
{$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 31 O(N3) Floyd Method } program SemiConnectedGraph; const MaxN = 100; var N : Integer; G : array [1 .. MaxN, 1 .. MaxN] of Integer; I, J, K : Integer; F : Text; p...
unit fChat; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, uIRCRichEdit, Contnrs; const WM_ADDTEXT = WM_USER + 100; type TIRCParams = class public TimeStamp: TDateTime; RawCommand: string; Nickname: string; Host: strin...
{*******************************************************} { } { Delphi Runtime Library } { SOAP Support } { } { Copyright(c) 1995-2011 Embar...
{*******************************************************} { } { Delphi FireDAC Framework } { } { Copyright(c) 2004-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit MainDM; interface uses SysUtils, Classes, DB, ADODB,dialogs; type TMainDataModule = class(TDataModule) ADOConnection1: TADOConnection; qryProjects: TADOQuery; qryDrills: TADOQuery; qryDrill_type: TADOQuery; qryEarthType: TADOQuery; qryStratum: TADOQuery; qryDPT: TADOQuery; qr...
{ test var parameters & new/dispose } program test; type ptr = ^integer; var p : ptr; i : integer; procedure init(var pointer : ptr); begin new(pointer); end; procedure setValue(var value : integer; var pointer : ptr); begin i := 12345; pointer^ := value; end; procedure free(var po...
{$INCLUDE ..\cDefines.inc} unit cWindows; { } { Windows functions v3.07 } { } { This unit is c...
unit Macro; interface uses Classes, Types, SysUtils; type TMacro = class private FName: string; FParameters: TStringList; FContent: string; FAddAsExternal: Boolean; public constructor Create(const AName: string); destructor Destroy(); override; property Name: stri...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC VCL About dialog } { } { Copyright(c) 2004-2018 Embar...
unit Entity; interface uses SysUtils; type TEntity = class(TObject) protected FId: string; public property Id: string read FId write FId; procedure Add; virtual; abstract; procedure Save; virtual; abstract; procedure Edit; virtual; abstract; procedure Cancel; virtual; abstract; ...
unit Vigilante.Conexao.JSON.Arquivo.Impl; interface uses System.Classes, System.JSON, Vigilante.Conexao.JSON; type TConexaoArquivoJSON = class(TInterfacedObject, IConexaoJSON) public FArquivo: TStringList; FNomeArquivo: string; public constructor Create(const AURL: string); destructor Destroy...
unit ncMyImage; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, dxCore, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, dxCoreGraphics, Menus, StdCtrls, cxButtons, ImgList, cxLabel, ExtCtrls; type TcxMyAlphaBitmap = class (T...
unit DropTarget; // ----------------------------------------------------------------------------- // Project: Drag and Drop Component Suite // Module: DropTarget // Description: Implements the drop target base classes which allows your // application to accept data dropped o...
unit Ths.Erp.Database.Table.SatisTeklif; interface {$I ThsERP.inc} uses SysUtils, Classes, Dialogs, Forms, Windows, Controls, Types, DateUtils, FireDAC.Stan.Param, System.Variants, Data.DB, System.Rtti, Ths.Erp.Database, Ths.Erp.Database.Table, Ths.Erp.Database.Table.AyarHaneSayisi, Ths.Erp.Database.Tabl...
// Sample WebSnap Adapter that exposes information about // Web App Debugger executables. This information is available from the // registry. unit SvrInfoAdapter; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, WebAdapt, WebComp, HTTPApp, SiteComp, Contnrs, AdaptReq; ty...
unit uDiagnosisService; interface uses Classes, SysUtils, ShlObj, Windows, Device.PhysicalDrive, Device.PhysicalDrive.List, Global.LanguageString, OS.EnvironmentVariable, Getter.PhysicalDrive.ListChange, MeasureUnit.Datasize, AverageLogger.Count, AverageLogger.Write, Support, Getter.PhysicalDrive.PartitionLis...
unit IdSimpleServer; interface uses Classes, IdTCPConnection, IdStackConsts; const ID_SIMPLE_SERVER_BOUND_PORT = 0; type TIdSimpleServer = class(TIdTCPConnection) protected FAbortedRequested: Boolean; FAcceptWait: Integer; FBoundIP: string; FBoundPort: Integer; FListenHandle: TIdStackS...
unit osWizFrm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls, osUtils, ActnList, osActionList, osFrm, System.Actions, System.UITypes; type TosWizForm = class(TosForm) Panel2: TPanel; Panel1: TPanel; btnCancelar: ...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2016-2018 Embarcadero Technologies, Inc. } { All rights reserved } { ...
{*******************************************************} { } { Delphi VCL Extensions (RX) } { } { Copyright (c) 1996 AO ROSNO } { Copyright (c) 1997, ...
unit SettingsTestGroupsUnit; {$mode objfpc}{$H+} interface uses Classes, SysUtils, fpcunit, testutils, testregistry, LKSL_Settings_Groups, LKSL_Settings_Fields; type { TSettingsTestGroups } TSettingsTestGroups= class(TTestCase) private FGroups: TLKSettingsGroups; protected procedure SetUp; ove...
{Ejercicio 7 Dada la definición de tipo para representar cadenas de caracteres de largo M y N : CONST N = . . .; CONST M = . . .; M < N . . . TYPE CadenaM = ARRAY[1..M] Of Char; CadenaN = ARRAY[1..N] Of Char; Implementar un programa que lea dos cadenas de la entrada está...
{$F-,A+,O+,G+,R-,S+,I+,Q-,V-,B-,X+,T-,P-,N-,E+} unit Output; interface uses Global; procedure oBack(N : Byte); procedure oBackspace(C : Char); procedure oBeep; procedure oClrEol; procedure oClrScr; procedure oCWrite(S : String); procedure oCWriteLn(S : String); procedure oDnLn(Ln : Byte); procedure oG...
unit uConstant; interface type TAzRotator = (az450, az360); TElRotator = (el180, el90, elNone); TRotateMode = (gsNormal, gsOverlap, gsFlip, gsCrossing); TControlMode = (ctNone, ctManual, ctTracking); const cnCalsat: string = 'CALSAT32'; cnCalsatText: string = 'CALSAT32(SGP)'; cnNodeMain: string ='/Mai...
Unit morphio; Interface uses SysUtils; const {$IFDEF MSWINDOWS} PathSeparator='\'; {$ELSE} PathSeparator='/'; {$ENDIF} {$IFDEF MSWINDOWS} CrLf=#13#10; {$ELSE} CrLf=#10; {$ENDIF} Const // Stream access/permission flags smRead = 1; smWrite = 2; smDynamic = 4; ...
unit Requester; {$mode objfpc}{$H+} interface uses Classes, SysUtils, HKCompPacksTypes, fpjson, IdHTTP; type TRequestCallback=procedure(Sender:TObject; aRequest:TIdHTTPRequest; aResponse:TIdHTTPResponse; aRespContent:TJSONData)of object; { TJsonRequester } TJsonRequester=class(TIdCustomHTTP) private...
unit dxStandardControlsSkinHelper; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, dxSkinsCore, dxSkinsDefaultPainters, cxLookAndFeels, dxSkinsForm, cxControls, cxContainer, cxEdit, cxGroupBox, cxRadioGroup, Menus, cxScrollBox, cxLookAndFeelPainters, StdCtrls...
unit servmain; { This is "Application Server" for this demo. You must compile and run this program once before running the client application. The remote data module (ServData) implments the actual OLE server that the client communicates with. } interface uses Windows, Messages, SysUtils, Classes, Graphics...
{----------------------------------------------------------------------------- Author: Roman Fadeyev Purpose: Модуль реализации Unit Task для Bollinger Bands для подбора размера канала и периода History: -----------------------------------------------------------------------------} unit FC.StockC...
unit HGM.GraphQL; interface uses System.Classes, REST.Client, REST.Json.Types, System.StrUtils, REST.Types, System.SysUtils, System.JSON, HGM.GraphQL.Query; type TGraphQLClient = class(TComponent) private FClient: TRESTClient; public constructor Create(AOwner: TComponent); override; destructor ...
// // This unit is part of the GLScene Project, http://glscene.org // {: GLODECustomColliders<p> Custom ODE collider implementations.<p> <b>Credits : </b><font size=-1><ul> <li>Heightfield collider code originally adapted from Mattias Fagerlund's DelphiODE terrain collision demo. ...
unit LuaStream; interface Uses ExtCtrls, Controls, Classes, LuaPas, LuaControl; function CreateStream(L: Plua_State): Integer; cdecl; type TLuaStream = class(TMemoryStream) L:Plua_State; published property Position: Int64 read GetPosition write SetPosition; pro...
unit StreamUtils; {$WEAKPACKAGEUNIT ON} { Stream helpers. Cached readers/writers. Some comments are in Russian, deal with it *puts on glasses*. (c) himselfv, me@boku.ru. } interface uses SysUtils, Classes{$IFDEF DCC}, UniStrUtils, Windows{$ENDIF}; type EStreamException = class(Exception); const sC...
unit caTextStream; interface uses Classes, Sysutils; type //--------------------------------------------------------------------------- // TcaBufferStream   //--------------------------------------------------------------------------- TcaBufferSt...
program TEST; {$N+,E+} uses MathLib0; CONST NumBands = 100; {this determines how close an estimator this table is} tolerance = 0.000005; VAR NormTable : ARRAY[0..NumBands] OF myFloat; { NormTable is an array containing fractions of positive Std. Deviations } { from a mean which are evenly spaced in te...
unit fAResize; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, fPage, ExtCtrls, VA508AccessibilityManager; type TfrmAutoResize = class(TfrmPage) procedure FormDestroy(Sender: TObject); procedure FormResize(Sender: TObject); private FSizes: TList;...
unit oPKIEncryptionDataDEAOrder; interface uses System.Classes, oPKIEncryption, oPKIEncryptionData, TRPCB; type TPKIEncryptionDataDEAOrder = class(TPKIEncryptionData, IPKIEncryptionDataDEAOrder) private fIsDEASig: boolean; fIssuanceDate: string; fPatientName: string; fPatientAddress: stri...
{*******************************************************} { } { Delphi DataSnap Framework } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit TestCaseReturns; {(*} (*------------------------------------------------------------------------------ Delphi Code formatter source code The Original Code is TestCaseReturns, released May 2003. The Initial Developer of the Original Code is Anthony Steele. Portions created by Anthony Steele are Copyrig...
{ Subscribing to all topics and printing out incoming messages Simple test code for the mqttclass unit Copyright (c) 2019 Karoly Balogh <charlie@amigaspirit.hu> See the LICENSE file for licensing details. } {$MODE OBJFPC} program testclass; uses {$IFDEF HASUNIX} cthreads, {$ENDIF} ctypes, mosquitto, mq...
unit fxBroker; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DateUtils, ORNet, ORFn, rMisc, ComCtrls, Buttons, ExtCtrls, ORCtrls, ORSystem, fBase508Form, VA508AccessibilityManager, Winapi.RichEdit, Vcl.Menus, fFrame, Vcl.ImgList, Vcl.ToolWin, System.ImageLi...
{*** Program made by Pavel Shlyak. MIEM HSE 2017. All rights reserved. ***} Program Coursera; Var curr: Smallint; a, b, sum, ex, c, diff: Real; Procedure odd(x: Real; n: Integer; Var z: Real); {* Процедура нахождения энного члена ряда *} Begin z := (2*n+1); z := 1/(z*exp(z*ln(x))); End; Procedure exact(x: ...
unit Comum.StreamUtils; interface uses Classes; type IStreamUTils = interface ['{3695444E-C3DC-4785-A027-4DFA750CD017}'] function textFileCountLines(AStream: TStream; const ABreakLine: Char): IStreamUTils; function textFileReadLine(AStream: TStream; const ABreakLine: Char): IStreamUTils; function...
UNIT DoubleLinkedListUnit; INTERFACE type NodePtr = ^Node; Node = Record prev: NodePtr; val: integer; next: NodePtr; end; List = Record first, last: NodePtr; end; PROCEDURE InitList(var l: List); PROCEDURE Prepend...
unit ncaFrmSubject; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Menus, cxControls, cxContainer, cxEdit, cxTextEdit, cxLabel, StdCtrls, cxButtons, LMDControl, LMDCustomControl, LMDCustomPanel, LMDCustomBev...
unit Unit1; interface uses System.SysUtils, System.Classes, System.Math, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, //GLS GLCadencer, GLScene, GLObjects, GLParticles, GLWin32Viewer, GLColor, GLMultiProxy, GLTexture, GLCrossPlatform, GLCoordinates, GLBaseCl...
{*********************************************} { TeeChart Delphi Component Library } { Custom Legend Size and Position Demo } { Copyright (c) 1995-1996 by David Berneda } { All rights reserved } {*********************************************} unit Uylegend; interface { This...
unit Model.Entity.Book; interface uses SysUtils; type TBook = class private FID: Integer; FBookName: String; FBookLink: String; FCategoryID: Integer; public property ID: Integer read FID write FID; property BookName: string read FBookName write FBookName; prop...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2014-2018 Embarcadero Technologies, Inc. } { All rights reserved } { ...
unit apiplatforms; {$mode objfpc}{$M+} {$H+} interface uses Classes, SysUtils, Dialogs, Forms, {$IFDEF Windows} Windows, JwaWinUser, JwaTlHelp32, Registry, sqlite3, sqlite3db, {$endif} {$IFDEF unix} sqlite3, sqlite3db, {$endif} {$IFDEF Darwin} {$ifdef ver2_2_0} FPCMacOSAll, {$else} MacOSAl...
unit UProdutoOS; interface uses UProduto; type ProdutoOS = class(Produto) protected largura : Real; altura : Real; valorUnitario : Real; quantidade : Real; desconto : Real; TotalProdAux : Real; public Constructor CrieObjeto;...
{ Sort edges of a planar graph Quick Sort O(E.LgN) Input: N: Number of vertices G[I]: List of vertices adjacent to I D[I]: Degree of vertex I P[I]: Position of Vertex P Output: G[I]: List of vertices adjacent to I in counter-clockwise order Notes: G should be planar with representation P By Ali ...
unit uSession; interface uses Redis.Client, REST.Json, uRedisConfig; type TSession = class private Fempresa: Integer; public property empresa: Integer read Fempresa write Fempresa; end; TSessionManager = class public class function GetInstance(Auth: string): TSession; end; implementation...
unit uConsultaCNPJ; interface uses uPessoa, U_Principal, Controls; type IConsultaCNPJ = Interface(IInterface) ['{F91C0F7B-47C1-4A48-B7FA-55281E049439}'] function CNPJ(const Value: String): IConsultaCNPJ; overload; function CNPJ: string; overload; function Consulta : TPessoa; End; TConsultaCNPJ...
{ ***************************************************************************** This file is licensed to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. A copy of this licence is found in the root directory of this project in the file L...
{ ******************************************************************************************************************* SpiderTable: Contains TSpiderTable component which can be used to generate HTML tables, manually or from date set Author: Motaz Abdel Azeem email: motaz@code.sd H...
unit ptr_arith_pchar_2; interface implementation var S: string = 'ASDF'; procedure Test; var P: ^Char; begin P := @S[Low(s)]; for var i := Low(S) to High(S) do begin P^ := 'a'; Inc(P); end; end; initialization Test(); finalization Assert(S = 'aaaa'); end.
unit Unit1; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Layouts, FMX.DateTimeCtrls, {$IF DEFINED(ANDROID) AND (RTLVersion >= 33)} Androidapi.Helpers, A...
unit MapProximitySelectUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls; type TMapProximitySelectDialog = class(TForm) ProximityTypeRadioGroup: TRadioGroup; LocateButton: TBitBtn; OKButton: TBitBtn; CancelButton: TBitBtn;...
{ ****************************************************************** Unit TPMATH - Interface for TPMATH.DLL ****************************************************************** } {$DEFINE DELPHI} unit tpmath; interface {$IFDEF DELPHI} uses Graphics; {$ENDIF} { ---------------------------------------------------...
{(*} (*------------------------------------------------------------------------------ Delphi Code formatter source code The Original Code is frObfuscateSettings.pas, released April 2000. The Initial Developer of the Original Code is Anthony Steele. Portions created by Anthony Steele are Copyright (C) 1999-200...
unit USerialize; interface uses Classes, Variants; { 序列化TComponent } procedure SerializeComponent(obj: TComponent; Stream: TStream); { 反序列化TComponent } procedure UnSerializeComponent(obj: TComponent; Stream: TStream); { Component、Stream互转,转换前后均会置Stream.Position := 0 } procedure Component2Stream(obj: T...
unit UI.ConsoleUI; interface uses System.SysUtils, System.Classes, App.Types, App.Abstractions, App.Meta, App.IHandlerCore, UI.Abstractions, UI.ParserCommand, UI.GUI, UI.Types; type TConsoleUI = class(TBaseUI) private {Fields} fversion: string; isTerminate: boolean; {Instances}...
{ Some text file tricks. Copyright (C) 2002-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 by the Free...
unit AAbertura; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, ExtCtrls, StdCtrls, Componentes1, LabelCorMove; type TFAbertura = class(TFormularioPermissao) Image1: TImage; Label3D1: TLabel3D; ESerie: TEditColor; Label3D2: TLab...
{ CTU Open Contest 2002 ===================== Sample solution for the problem: battle Martin Kacer, Oct 2002 } Program Battle; Const MAXSIZE = 10000; chShip = '#'; chWater = '.'; Type TRow = Array [0..MAXSIZE+1] of Char; Var Row1, Row2 : TRow; SizeX, SizeY : Integer; IsValid : Boolean; ShipCnt : Inte...
unit TravelAgents; interface uses Soap.InvokeRegistry, System.Types, Soap.XSBuiltIns, Soap.encddecd, System.IOUtils, FMX.Dialogs, FMX.Forms, Classes, SysUtils, System.UITypes, System.Variants, FMX.Graphics, Data.DB, Data.DbxSqlite, Data.SqlExpr; type TTravelAgents = class public Id: stri...