text
stringlengths
14
6.51M
program tp3_3; uses Crt, sysutils; type str20 = string[20]; str8 = string[8]; pelicula = record nombre: str20; genero: str20; duracion: integer; director: str20; precio: real; cod: integer; end; archivo = file of pelicula; function menu():integer; ...
unit DbgMemoryProfiler; interface uses System.Classes, WinApi.Windows, Collections.Queues, DbgHookTypes, System.SysUtils, System.SyncObjs, DebugerTypes; type TProcessMemoryQueue = TQueue<PDbgMemInfoListBuf>; TDbgMemoryProfiler = class private FProcessMemoryQueue: TProcessMemoryQueue; ...
unit UMyCloudRemoveNotifyXml; interface uses UChangeInfo, xmldom, XMLIntf, msxmldom, XMLDoc, UXmlUtil; type {$Region ' 修改 ' } // 修改 TRemoveCloudNotifyChangeXml = class( TChangeInfo ) public PcID : string; public constructor Create( _PcID : string ); end; // 修改 指定路径 TRemoveCloudNotifyWrit...
unit LicenseZonePoster; interface uses PersistentObjects, DBGate, BaseObjects, DB, LicenseZone, SysUtils, Organization, MeasureUnits, NGDR; type TLicenseConditionValuePoster = class(TImplementedDataPoster) private FAllLicenseConditions: TLicenseConditions; public property AllLicenseConditions: TLi...
unit WebSourceProvider; { Copyright (c) 2017+, Health Intersections Pty Ltd (http://www.healthintersections.com.au) 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 mus...
unit ConnectClient; interface uses System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Forms, Vcl.Controls, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls, Vcl.Dialogs, Vcl.ActnList, BCControls.Edit, BCControls.ComboBox, BCDialogs.Dlg, System.Actions; type TConnectClientDialog = class(TDialog) ActionList...
unit dao.Configuracao; interface uses UConstantes, classes.ScriptDDL, System.StrUtils, System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FireDAC.Comp.Client, FireDAC.Comp.DataSet; type TConfiguracaoDao = class(TObject) strict private class var aIn...
{******************************************************************************} { } { EasyIp communication Library } { Shared constants unit ...
unit UBusinessRuleThread; interface uses System.Classes, SysUtils, Windows, IdBaseComponent, IdCoder, IdCoder3to4, IdCoderMIME; type TBusinessRuleThread = class(TThread) protected procedure Execute; override; private FGUID : String; FInstructions : String; FConnections : String; ...
unit PasUpdateProcessor; interface uses PasRequestProcessor, IdCustomHTTPServer, System.SysUtils, System.Classes; type TUpdateProcessor = class(TRequestProcessor) protected function innerRequested(requestUri: string; requestAction: string): Boolean; override; function onPost(requestInfo: TIdHTTPRequest...
unit HVVMT; // Written by Hallvard Vassbotn, 2006 - http://hallvards.blogspot.com/ // Currently assumes D7-D2006 (*probably* works in D5 and D6) interface type PObject = ^TObject; PClass = ^TClass; // TObject virtual methods' signatures PSafeCallException = function(Self: TObject; ExceptObject: TObject; Exce...
(************************************* Ext2D Engine *************************************) (* Модуль : E2DStream.pas *) (* Автор : Есин Владимир *) (* Создан : 30.04.06 ...
unit UDMCadLote; interface uses SysUtils, Classes, FMTBcd, DB, DBClient, Provider, SqlExpr, Variants, LogTypes, frxClass, frxDBSet, frxRich, frxExportMail, frxExportPDF, frxBarcode; type TDMCadLote = class(TDataModule) sdsLote: TSQLDataSet; dspLote: TDataSetProvider; cdsLo...
unit eAudioArtist; interface uses API_ORM, eAudioAlbum, eCommon; type TArtist = class(TEntity) private FAlbums: TAlbums; FName: string; function GetAlbums: TAlbums; public class function GetStructure: TSructure; override; property Albums: TAlbums read GetAlbums; published proper...
{******************************************************************************* * * * PentireFMX * * ...
unit SISVISA.Model.Denuncias; interface uses FireDAC.Comp.Client, FMX.ListView.Appearances, System.Classes, FMX.Edit, FMX.DateTimeCtrls; type iModelDenuncias = interface ['{EF50123E-EF1A-434B-993B-9377BA38289F}'] function ReceberDenuncia: iModelDenuncias; function PreencherDenuncia(vlr_...
unit TestGnStack; interface uses SysUtils, TestFramework, uGnStack; type TTest_GnStack = class(TTestCase) strict private FStack: TGnStack_Integer.IGnStackSpec; procedure Top3_Except; procedure Pop1_Except; public procedure SetUp; override; published procedure Top1; procedure Top2;...
unit Actinide; interface uses Basic, StdCtrls, SysUtils; type TActinoids=class(TChemicalElements) //Радиоактивные элементы private typeDecay:string; //Основной тип распада halfLife:real; //Период полураспада public constructor Init(aName: string; aNumber: integer; aMass: real; atyp...
unit RangeEdit; { ---------------------------------------------------------- Range Edit box component (c) J. Dempster 1999 ---------------------------------------------------------- Numeric parameter edit box for entering a low - high limit range (e.g. 1-10) User-entered data kept within specified limits 28/1...
unit VK.LongPoll; interface uses System.Threading, System.Classes, System.JSON,IdHTTP,IdBaseComponent, IdComponent,IdTCPConnection,IdTCPClient,IdServerIOHandler, IdSSL, IdSSLOpenSSL,VK.Types; const VK_EVENT_ADD_MESSAGE = 4; VK_EVENT_FRIEND_ONLINE = 8; VK_EVENT_FRIEND_OFFLINE = 9; type TOnFriendOnline ...
(* $Id: udf_ibase.pas 4 2008-03-25 18:24:03Z runningmaster $ * * MDS User Define Functions * * Copyright (c) 2006 Dmitriy Kovalenko (runningmaster@gmail.com) * and all contributors signed below. * * All Rights Reserved. * Contributor(s): ______________________________________. * *) unit udf_ibase; interface uses ...
unit Aurelius.Schema.Exceptions; {$I Aurelius.Inc} interface uses Aurelius.Global.Exceptions, Aurelius.Sql.Metadata; type ESchemaImporterNotFound = class(EOPFBaseException) public constructor Create(const SqlDialect: string); end; ETableMetadataNotFound = class(EOPFInternalError) ...
unit NewSubItem; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, Buttons, DB, DBCtrls, Grids, DBGrids, DBLookupEh, Mask, DBCtrlsEh, DBGridEh, sLabel, sEdit, sCheckBox, sMaskEdit, sComboBox, sMemo, sDialogs, sSpeedButton, sBitBtn, DBAccess...
unit UTS3000; interface uses Contnrs, System.Classes, StrUtils, SysUtils; type TS3000 = class(TObjectList) private function GetItem(Index: Integer): TS3000; function Add: TS3000; public tpAmb_4: String; procEmi_5: String; verProc_6: String; tpInsc_8: String; nrIns...
unit VectorNumericsTimingTest; {$mode objfpc}{$H+} {$CODEALIGN LOCALMIN=16} interface uses Classes, SysUtils, fpcunit, testregistry, BaseTimingTest, BaseTestCase, native, BZVectorMath, BZProfiler; type { VectorNumericsTimingTest } { TVectorNumericsTimingTest } TVectorNumericsTimingTest = class(TVectorBa...
unit uFrmPrincipal; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.ComCtrls, Vcl.StdCtrls, System.ImageList, Vcl.ImgList, uFrmDataHora; type TFrmPrincipal = class(TForm) PnlTitulo:...
{$include kode.inc} unit kode_osc_druttis; { http://musicdsp.org/showArchiveComment.php?ArchiveID=123 by joakim[DOT]dahlstrom[AT]ongame[DOT]com How ever, the other day when finally understanding what bandlimited wave creation is (i am a noobie, been doing DSP stuf on and off for a half/year) it hit me i ca...
// the body of Execute routine contains the old BP7 graph code; // a separate thread is creating for doing graphics with WinGraph unit maincode; interface uses Classes, wingraph, wincrt; type TGraphThread = class(TThread) public SignalMain: procedure(mess: string); constructor Create(item1...
{******************************************************************************* Title: T2Ti ERP Fenix Description: Service relacionado ao ACBrMonitor The MIT License Copyright: Copyright (C) 2022 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
Unit AdvMethods; { Copyright (c) 2001-2013, Kestral Computing Pty Ltd (http://www.kestral.com.au) 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 abov...
unit MyDateUtils; interface uses SysUtils, DateUtils, Variants, Classes; const EmptyStrDate = ' / / '; function MaskDate(date: TDateTime): string; function AsStrDate(date: string): string; overload; function AsStrDate(date: TDateTime): string; overload; function PrimeiroDiaMes(data: TDateTime)...
unit _fopen; ///////////////////////////////////////////////////////////////////// // // Hi-Files Version 2 // Copyright (c) 1997-2004 Dmitry Liman [2:461/79] // // http://hi-files.narod.ru // ///////////////////////////////////////////////////////////////////// interface function ExecFileOpenDlg( const...
unit CommonBasketFrame; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, BaseObjects, ComCtrls, ToolWin, Contnrs; type TOnAcceptObjectEvent = procedure (ANewObject: TIDObject; var Accept: boolean); TOnPlaceObjectEvent = procedure (APlacingObject: TIDObject); ...
unit ChangePasswordForm; interface uses Classes, Forms, Controls, StdCtrls, Windows {$IFDEF VER150} , Variants {$ENDIF} ; type TfrmChangePassword = class(TForm) lblOldUserName: TLabel; edtOldUserName: TEdit; lblOldPassword: TLabel; edtOldPassword: TEdit; lblNewPassword: TLabel; e...
unit uCAP_Group; {##################################################################################} (*!*EXTENDED COMMENT SYNTAX !*) (** This unit uses extended syntax for comments **) (** You don't need to support this, but it's more likely to be readable **) (** if you ...
unit TemporaryCursor; interface uses Vcl.Controls; // .NET/C# Equivalent: http://wiert.me/2012/01/26/netc-using-idisposable-to-restore-temporary-settrings-example-temporarycursor-class/ type ITemporaryCursor = interface(IInterface) ['{495ADE0F-EFBE-4A0E-BF37-F1ACCACCE03D}'] end; TTemporar...
(* * Copyright (c) 2009-2010, Ciobanu Alexandru * 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 l...
unit uCommandSampleConfig; interface procedure ConfigureOptions; implementation uses CmdlineParser, uCommandSampleOptions; procedure ConfigureOptions; var LHelpCommand, LInstallCommand: TCommandDefinitionHelper; LOption: IOptionDefinition; begin LOption := TOptionsRegistry.RegisterOption<Boolean>('verbose'...
(* * Copyright (c) 2008-2009, Ciobanu Alexandru * 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 l...
unit VisibleColumnsFormU; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, CheckLst, Db, dxDbGrid, Buttons, ExtCtrls; type TVisibleColumnsForm = class(TForm) VisibleColumnsList: TCheckListBox; Panel1: TPanel; BitBtn1: TBitBtn; procedure FormShow...
Unit UcumExpressions; { Copyright (c) 2001-2013, Health Intersections Pty Ltd (http://www.healthintersections.com.au) 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 ...
unit Settings; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Registry, Buttons; type TfmSettings = class(TForm) bnSave: TButton; bnCancel: TButton; gbPasswords: TGroupBox; cbSaveServerPasswords: TCheckBox; cbSaveRconPasswords: T...
unit MasterMix; interface uses Forms, Windows, Messages, SysUtils, Classes, Controls, Graphics; type {>>TITLE} TMasterTitle = class(TCustomControl) private fColorTitle:TColor; fColorSubTitle:TColor; fColorRectTitle:TColor; fTitle:String; fSubTitle:String; Procedure s...
unit sotrudinfo; interface uses classes, rtcTypes, rtcInfo; const FLD_KODKLI = 'kodkli'; FLD_NAME = 'name'; FLD_GRTIMEOUT = 'grTimeOut'; FLD_ISVALIDGROUP = 'isValidGroup'; FLD_DATEFIRE = 'dateFire'; FLD_ISBARCODEACCESS = 'isBarCodeAccess'; FLD_INN = 'INN'; type TSotrudInfo = record kodkli: I...
unit Data.Repositories.IOrdersRepository; interface uses Generics.Collections , Data.Repositories.IRepository , Data.Entities.Order , Data.Entities.OrderDetails ; type IOrdersRepository = interface (IRepository<TOrder, Integer>) ['{EB60FA36-064E-4D90-875C-199885185D70}'] function Ge...
unit u_FileWriter; interface uses Classes, SysUtils, t_DroneMission; type TFileWriter = class private FFileStream: TFileStream; protected procedure WriteText(const AText: string); public procedure DoWrite(const AMission: TMission); virtual; abstract; public construct...
unit AsyncIOTestCase; interface uses System.SysUtils, TestFramework, AsyncIO.OpResults; type TAsyncIOTestCase = class(TTestCase) public procedure CheckEquals(expected, actual: OpResult; msg: string = ''); overload; virtual; end; implementation { TAsyncIOTestCase } procedure TAsyncIOTestCase.CheckEqua...
{******************************************************************************* 作者: dmzn 2009-2-2 描述: 带边框的自绘控件 *******************************************************************************} unit UBoderControl; interface uses Windows, Classes, Controls, ExtCtrls, Graphics, SysUtils; type TZnBor...
program ejer8; const valorAlto = 9999; dimF = 15; type empleado = record departamento: integer; division: integer; numero: integer; categoria: integer; horas: integer; end; maestro = file of empleado; vector = array[1..dimF] of real; {----------------- LEER PRODUCTO MAESTRO ---------------} pr...
unit Server.Models.Cadastros.Cargos; interface uses System.Classes, DB, System.SysUtils, Generics.Collections, /// orm dbcbr.mapping.attributes, dbcbr.types.mapping, ormbr.types.lazy, ormbr.types.nullable, dbcbr.mapping.register, Server.Models.Base.TabelaBase; type [Entity] [Table('CARGOS',''...
PROGRAM Last(INPUT, OUTPUT); VAR Ch: CHAR; BEGIN {Last} ASSIGN(INPUT, 'INPUT.TXT'); RESET(INPUT); IF (NOT(EOF)) AND (NOT(EOLN)) THEN WHILE (NOT(EOF)) AND (NOT(EOLN)) DO BEGIN WHILE NOT(EOLN) DO READ(Ch); IF EOLN THEN READLN; IF EOF ...
unit MPISearch; { Copyright (c) 2011+, HL7 and Health Intersections Pty Ltd (http://www.healthintersections.com.au) 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 mus...
unit Aurelius.Sql.Metadata; {$I Aurelius.Inc} interface uses DB, Generics.Collections; type TTableMetadata = class; TDatabaseMetadata = class; TMetadataInfo = class abstract end; TColumnMetadata = class(TMetadataInfo) strict private FName: string; FNotNull: Boolean; F...
{ ****************************************************************************** * * * DesignBox - Basic canvas/drawing component for Delphi * * ...
unit ServerProperties; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Menus; type TfmServerProperties = class(TForm) lbAddressLab: TLabel; lbPlayersLab: TLabel; lbPingLab: TLabel; lbModeLab: TLabel; lbMapLab: TLabel; lbMap: T...
PROGRAM Codigo; USES crt; CONST escolhe_numero:ARRAY[0..9] of STRING[1] =('0', '1', '2', '3', ...
unit ce_dubproject; {$I ce_defines.inc} interface uses Classes, SysUtils, xfpjson, xjsonparser, xjsonscanner, process, strutils, LazFileUtils, RegExpr, ce_common, ce_interfaces, ce_observer, ce_dialogs, ce_processes; type TCEDubProject = class(TComponent, ICECommonProject) private fDubProc: TCEProces...
{******************************************************************************* 作者: dmzn@ylsoft.com 2008-01-02 描述: 管理用户信息 *******************************************************************************} unit UFormUser; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, ...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls, {$IFDEF UNIX} // cthreads, {$ENDIF} JsonTools, CastleParameters, CastleClassUtils, CastleControl, CastleTimeUtils, CastleURIUtils, MiscSupportFunctions; type ...
unit Compute; interface uses Compute.Common, Compute.ExprTrees; type Expr = Compute.ExprTrees.Expr; function Constant(const Value: double): Expr.Constant; function Variable(const Name: string): Expr.Variable; function ArrayVariable(const Name: string; const Count: integer): Expr.ArrayVariable; function Func1(...
unit TestGnCsv; interface uses TestFramework, SysUtils, uGnCsv, uGnTestUtils, uGnGeneral; type Test_GnCsvFile = class(TTestCase) strict private FCsvFile: IGnCsvFile; FBaseFilePath: string; procedure Assert_Last; public procedure SetUp; override; procedure AfterConstruction; override; ...
unit uISearch; interface type ISearch = interface /// <summary> /// Выполненить поиск (источник - определяется вами) /// </summary> procedure Search; /// <summary> /// Заполнить объект представления резльтатами поиска /// </summary> procedure FillResult; /// <summary> ///...
//--------------------------------------------------------------------------- // This software is Copyright (c) 2015 Embarcadero Technologies, Inc. // You may only use this software if you are an authorized licensee // of an Embarcadero developer tools product. // This software is considered a Redistributable ...
unit Atom; interface type HCkAtom = Pointer; HCkTask = Pointer; HCkDateTime = Pointer; HCkString = Pointer; function CkAtom_Create: HCkAtom; stdcall; procedure CkAtom_Dispose(handle: HCkAtom); stdcall; function CkAtom_getAbortCurrent(objHandle: HCkAtom): wordbool; stdcall; procedure CkAtom_getDebugLogFilePath(obj...
unit uImportExcel; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Dialogs, Excel2000, Vcl.OleServer, cxDropDownEdit, cxGridDBTableView, Datasnap.DBClient, uSysDataBase, uCadreFun; type TImportExcel = class(TComponent) pr...
{----------------------------------------------------------------------------- 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/MPL-1.1....
unit AnnotationsModelIntf; interface uses InfraValueTypeIntf; type IAddress = interface; // Interface para uma classe pessoa IPerson = interface ['{52768039-C8B4-4E31-BA9B-E765951454A8}'] procedure SetAddress(const Value: IAddress); procedure SetBirthday(const Value: IInfraDate); ...
unit Dane; interface type Nazwa = string[25]; const losowosc = 19; imiona: array [0..losowosc] of Nazwa = ('Maria', 'Krystyna', 'Anna', 'Barbara', 'Teresa', 'Elzbieta', 'Janina', 'Zofia', 'Jadwiga', 'Danuta', 'Halina', 'Irena', 'Ewa', 'Malgorzata', 'Helena', 'Grazyna', 'Bozena', 'Stanislawa', 'Jol...
unit DataProxy.OrderDetails; interface uses Data.DB, Data.DataProxy; type TOrderDetailsProxy = class(TDatasetProxy) protected procedure ConnectFields; override; public OrderID: TIntegerField; ProductID: TIntegerField; UnitPrice: TBCDField; Quantity: TSmallintField; Discount: TSingle...
unit _Working; ///////////////////////////////////////////////////////////////////// // // Hi-Files Version 2 // Copyright (c) 1997-2004 Dmitry Liman [2:461/79] // // http://hi-files.narod.ru // ///////////////////////////////////////////////////////////////////// interface uses Objects, Views; type ...
unit Unit2; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Messaging.EventBus, Vcl.StdCtrls, Vcl.ExtCtrls; type TForm2 = class(TForm) tmrAnimate: TTimer; Label1: TLabel; procedure FormCreate(Sen...
unit RTF_SelectMonth; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; type TFrmSelectMonth = class(TForm) CbxYear: TComboBox; CbxMonth: TComboBox; LblYear: TLabel; LblMonth: TLabel; BtnOK: TButton; Btn...
unit Structuresfrm; { O OB OBS OBSO OBSOL OBSOLE OBSOLET OBSOLETE BSOLETE SOLETE OLETE LETE ETE TE E } {$MODE Delphi} interface uses LCLIntf, LMessages, Messages, Classes; resourcestring rsThisIsQuiteABigStructureHowManyBytesDoYouWantToSav = 'This is q...
unit encoder; interface function DoEncode(s:string):string; function DoDecode(s:string):string; function DoEncodeEx(s:string;code:integer):string; function DoDecodeEx(s:string;code:integer):string; var DecodeErrorCode:integer; implementation const numbers:array[0..15] of char = ('A','B','C','D','E','F','G...
unit CurveDictForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Facade, LasFile, ActnList, StdCtrls, Menus, Grids; type TfrmCurveDict = class(TForm) MainMenu: TMainMenu; file1: TMenuItem; edtInput: TEdit; lblInput: TLabel; actlst: TActi...
unit dmuFinanceiro; interface uses System.SysUtils, System.Classes, dmuBasico, dmuPrincipal, Data.DB, Datasnap.DBClient, uClientDataSet; type TdmFinanceiro = class(TdmBasico) cdsBanco: TRFClientDataSet; cdsBancoID: TIntegerField; cdsBancoNOME: TStringField; cdsBanco_Conta_Corrente: TRFClientDat...
unit UIntelHex; interface uses SysUtils, Variants, Classes; type TDynBytearray =array of byte; PHexByte =^THexByte; THexByte = array [0..1] of char; THexWord = packed record case integer of 0:(Chars:array [0..3] of char); 1:(mHi,mLo: THexByte ); end; TIntelHexData =packed record mLin...
{ ******************************************************************************* Title: T2Ti ERP Description: Janela de Movimento Caixa/Banco The MIT License Copyright: Copyright (C) 2016 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentat...
unit UnitTranslator; { Unit to handle translations of resource strings found in a console application. It is similar to LCLTranslator (2004-2015 by V.I. Volchenko and Lazarus Developers Team) with the following changes - all reference to forms and the LCL are eliminated - function FindLocaleFileName has be...
unit UnitStrings; interface uses Classes, Windows, SysUtils; {$DEFINE NOFORMS} function TrimSlashes(s: string; all: Boolean = False): string; function DeleteUntilLast(const Text, UntilLastStr: string): string; implementation function TrimSlashes(s: string; all: Boolean = False): string; begin while (s <> '') an...
unit UCalculoResultado; interface uses UDados, System.Classes, UCalculoAdicao, UCalculoSubtracao, UCalculoDivisao, UCalculoMultiplicacao, Vcl.StdCtrls; type TCalculoResultado = class private FCalculoAdicao : TCalculoAdicao; FCalculoSubtracao : TCalculoSubtracao; FCalculoMultiplicacao ...
unit Main.GenericCollection; interface procedure Execute_GenericCollectionDemo; implementation uses System.Variants, System.SysUtils, System.Generics.Collections, System.Generics.Defaults, DataModule.CenericCollection, Helper.TDataSet; type TShipmentWarning = (swGreen, swYellow, swRed); TOrder = c...
unit uServerThread; interface uses SysUtils, Classes; type TServerThread = class(TThread) private FPort: Integer; FRetrunValue: Integer; FMsg: WideString; protected procedure DoSynchronizeS; procedure DoSynchronizeI; procedure DoSynchronizeR; procedure DoSynchronizeE; proced...
unit uCefUtilCallbackList; interface uses SysUtils, Classes, System.Generics.Collections, ioutils, System.SyncObjs, // uCEFTypes, uCEFInterfaces, uCEFv8Value, uCEFProcessMessage, uCEFv8Handler, uCEFMiscFunctions, uCEFv8Context; type TCefCallbackItem = record Id: Integer; Func: ICefv8Valu...
(* @file UGeneralTypes.pas * @author Willi Schinmeyer * @date 2010-10-26 * * UGeneralTypes Unit * * Contains a some general Types: TLevel, TScore, TGameState, * TTetrominoShape, TRowIndices *) unit UGeneralTypes; interface uses UGameplayConstants; type (* The score reached, e.g. the current score inga...
{ GeoJSON/Geometry Object Test Copyright (c) 2018 Gustavo Carreno <guscarreno@gmail.com> 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 limitatio...
unit LuaFoundlist; {$mode delphi} interface uses Classes, SysUtils,lua, lualib, lauxlib, symbolhandler, LuaHandler, cefuncproc, memscan, foundlisthelper, betterControls; procedure initializeFoundlist; implementation uses luaclass, luaobject; resourcestring rsCreatefoundlistNeedsAMemsca...
unit GraphicUtils; {$IFDEF FPC} {$MODE DELPHI} {$ENDIF} interface uses Types; function GetStretchRect(const SrcWidth : Integer; const SrcHeight : Integer; const DestWidth : Integer; const DestHeight : Integer) : TRect; implementation uses Math; function GetStretchRect(const SrcWidth : Integer; const Sr...
{ Example on how to access the current list of loaded plugins. Lists plugins and their masters. } unit UserScript; function Initialize: integer; var i, j: integer; plugin, master: IInterface; begin for i := 0 to FileCount - 1 do begin plugin := FileByIndex(i); AddMessage(Name(plugin)); // or GetFileN...
namespace Sugar.TestFramework; interface type AssertAction = public block; Assert = public static class private method Combine(params Values: array of Object): String; method Fail(Expected, Actual: Object); method FailIf(Condition: Boolean; Message: String); method FailIf(Condi...
unit DefaultLogTextFormat; {$mode objfpc}{$H+} interface uses Classes, SysUtils, LogTextFormat, LogItem; type { This class formats the log message in a simple and straightforward way and does not allows any format customization. It represents default immutable format for log messages. } TDefaultLogTe...
{ Subroutine STRING_PROMPT (S) * * Write the string S to standard output without a newline following. This * may be useful when prompting the user for interactive input. } module string_prompt; define string_prompt; %include 'string2.ins.pas'; %include 'string_sys.ins.pas'; procedure string_prompt ( ...
unit TectonicStructure; interface uses Registrator, Classes, BaseObjects, ParentedObjects; type // тектоническая структура TTectonicStructure = class (TRegisteredIDObject) private FTectonicStructureID: integer; function GetTectonicStructure: TTectonicStructure; protected procedure AssignTo(Dest: ...
{******************************************************************************* 作者: dmzn 2009-2-11 描述: 时间编辑器 *******************************************************************************} unit UFrameTime; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, UM...
unit RRManagerObjectVersionFrame; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, RRManagerLoaderCommands, RRmanagerObjects, RRManagerBaseObjects, RRManagerBaseGUI, Version; type TfrmObjectVersion = class(TFrame) gbxVersion: TGroupBo...
{********************************************************} { } { Zeos Database Objects } { Blob streams classes } { } { Copyright (c...
unit View.DigitacaoEncalheExpedicao; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinBlueprint, dxSkinC...
unit Crypto; {$MODE Delphi} interface uses Classes, Sysutils, CryptoUtils; type {$IFNDEF FPC} Pbyte= ^byte; Pword= ^word; Pdword= ^dword; Pint64= ^int64; dword= LongWord; Pwordarray= ^Twordarray; Twordarray= array[0..19383] of word; {$ENDIF} Pdwordarray= ^Tdwordarray; Tdwordarray= array[0..8...
Unit Log; interface procedure criaLog (texto: String); implementation uses SysUtils; procedure criaLog (texto: String); var YY,MM,DD : Word; c_fname : string; arquivo: TextFile; begin DeCodeDate (Date,YY,MM,DD); c_fname := 'log_'...
unit VSECollisionCheck; interface uses Windows, AvL, avlUtils, avlMath, avlVectors; type TCollisionInfo=record Collided: Boolean; end; TCollisionObject=class protected function DoCollisionCheck(Obj: TCollisionObject; var CollInfo: TCollisionInfo): Boolean; virtual; abstract; //Implemen...