text
stringlengths
14
6.51M
unit FormulaToString; interface uses SysUtils, Formulae, StatementSystemParser, StatementSystemBuilder, Rationals, Polynoms, sToPolynom, PolynomsBuilderP, Naturals; function FormulaToStr(const formula : TQuanitifedFormula) : string; implementation function InequationToS...
// // Created by the DataSnap proxy generator. // 15/10/2014 00:24:13 // unit ClientClassesUnit2; interface uses System.JSON, Datasnap.DSProxyRest, Datasnap.DSClientRest, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System.Classes, System.SysUtils, Data.DB, Data.SqlExpr,...
{*******************************************************} { } { Delphi FireMonkey Platform } { } { Copyright(c) 2011-2013 Embarcadero Technologies, Inc. } { ...
unit QuickList_Int64; interface uses QuickSortList; type {-----------------------------------} PALInt64ListItem = ^TALInt64ListItem; TALInt64ListItem = record FInt64: Int64; FObject: TObject; end; {----------------------------------------} TALInt64List = class(TALBaseQuickSortList) public ...
unit udmContenedor; interface uses SysUtils, Classes, SvcMgr, DSTCPServerTransport, DSServer, DSCommonServer; type TAppServer = class(TService) dssServidor: TDSServer; dstTransporte: TDSTCPServerTransport; dscClase: TDSServerClass; procedure dscClaseGetClass(DSServerClass:...
(* +------------------------------------------------------------------------------+ | МОДУЛЬ | | для base64 кодирования и декодирования | | ************************************************* ...
program SeminarVerbund (input, output); const MAXTEILNEHMER = 12; TAGE = 31; MONATE = 12; MINJAHR = 1900; MAXJAHR = 2019; type tTag = 1..TAGE; tMonat = 1..MONATE; tJahr = MINJAHR..MAXJAHR; tNatZahl = 0..maxint; tStatus = (aktiv, passiv); tIndex = 1..MAXTEILNEHMER; tStudenten = record name : st...
unit Scale; interface uses SysUtils, Classes, Referenced, Measure; type HPalette = word; EScaleError = class(Exception); EInvalidPalette = class(EScaleError); TPalCaptns = array of string; TPalColors = array of longint; TPalValues = array of TCode; type TScale = class(...
Program SimulationPrairie; {$IFDEF FPC}{$MODE OBJFPC}{H$H+}{$ENDIF} USES Crt, sysutils; Const AGE_MORT_HERBE = 5; ENERGIE_REPRODUCTION_HERBE = 10; ENERGIE_INITIALE_HERBE = 1; ENERGIE_INCREMENT_HERBE = 4; AGE_MORT_MOUTON = 15; ENERGIE_REPRODUCTION_MOUTON = 20; ENERGIE_MANGE_MOUT...
unit JsLexer; interface uses Classes, JsStringUtils, SysUtils; type // TOKENS TJsTokenType = (TJsTokenId, TJsTokenNumber, TJsTokenString, TJsTokenOperator, TJsTokenUnknown ); PJsToken = ^TJsToken; TJsToken = class private mToken : String; mInput : String; mTokenId : ...
unit HelperLib; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Grids; type TListBoxHelper = class helper for TListBox public procedure ShowFirst(); procedure ShowLast(); end; TStringGridHelper...
unit ContactsOverview.ViewModel; interface uses Contact, ContactManager.Interfaces, DSharp.ComponentModel.Composition, DSharp.PresentationModel.ViewModelBase, Spring.Collections; type TContactsOverviewViewModel = class(TViewModelBase, IContactsOverviewViewModel) private [Import('DemoData.Contacts')...
Unit ReadSetup; {DOMINION Setup Program} {this little program is going to get the new player variable values} {from the text configuration file.} Type Global_E = Object {These are the variables that control how} {many turns the player has and what the new} ...
unit ReceiptCostTest; interface uses dbTest, dbObjectTest, TestFramework, ObjectTest; type TReceiptCostTest = class(TdbObjectTestNew) published procedure ProcedureLoad; override; procedure Test; override; end; TReceiptCost = class(TObjectTest) function InsertDefault: integer; override; public ...
unit fmNuevaCartera; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, fmBaseNuevo, StdCtrls, Buttons, JvExStdCtrls, ExtCtrls, Mask, JvExMask, JvSpin, DB, JvCombobox, JvDBSearchComboBox, AppEvnts, dmNuevaCartera, JvGIF; type TfNuevaCartera = class(TfBaseN...
{ @abstract(Exceptions and messages translations from GMLib.) @author(Xavier Martinez (cadetill) <cadetill@gmail.com>) @created(August 2, 2022) @lastmod(August 2, 2022) The GMLib.Translations contains all translations for the exceptions raised by GMLib. @br@br If you want to add a new translation...
unit PesquisarClientes; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DAO.Cliente, DB, StdCtrls, Buttons, DBClient, Grids, DBGrids, ExtCtrls, Model.Cliente; type TFrmPesquisarClientes = class(TForm) Panel1: TPanel; GrdClientes: TDBGrid; CdsClie...
unit uCDataGDriveTypes; interface uses FireDAC.Comp.DataSet; Type TFileId = string; GDPath = record FolderID: TFileId; FolderName: string; ParentID: TFileId; end; TGDFileRec = record Id: String; // RO:True The ID of the file. Name: String; // ...
{$MODESWITCH RESULT+} {$GOTO ON} (************************************************************************* >>> SOURCE LICENSE >>> 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 (www.fsf.org); e...
unit udetailedtrendsform; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, uConfiguratorData; type { TDetailedTrendsForm } TDetailedTrendsForm = class(TDetailedForm) Label1: TLabel; private fModbusData: TModbusData; fDeviceData...
{$mode objfpc} {$modeswitch objectivec2} unit AppDelegate; interface uses Classes, FGL, CocoaUtils, CocoaAll; type TFileItem = class path: ansistring; constructor Create(_path: ansistring); function FileName: string; end; TPathList = specialize TFPGList<ansistring>; type TCustomViewItem = objccl...
unit ProgForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls; type TFormProg = class(TForm) ProgressBar1: TProgressBar; ProgressBar2: TProgressBar; Label1: TLabel; procedure FormCloseQuery(Sender: TObject; var CanClose: Boo...
unit MainScreen; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ToolWin, Vcl.ActnMan, Vcl.ActnCtrls, Vcl.ActnMenus, Vcl.Grids, Vcl.Menus, Vcl.StdCtrls, Math, Vcl.ComCtrls, Vcl.ExtDlgs, System....
unit MrpMPSReader; interface uses Classes, SysUtils, ComObj; type TMrpMPSLine = class sbillno: string; //单据编号 needdate: TDateTime;// 预测开始日期 date: TDateTime;// 日期 qty_net: Double;// 净需求数量 snumber: string; // 产品编码 sname: string; // 产品名称 end; TMrpMPSReader = class private ...
unit gameDisplayInterface; {$mode objfpc}{$H+} interface uses Classes, SysUtils,controls,laz2_DOM; type { ISudokuGame } ISudokuGame = interface ['{5ea8babc-d43d-4c3c-8ddb-5a34f7419e43}'] procedure gameInputKeyPressHandler(Sender: TObject; var Key: Word; Shift: TShiftState); function generateGameDocument...
unit HtmlCPConvert; interface {$IFDEF UNICODE} {$DEFINE SUPPORTS_IMPLICIT_WARNINGS} {$ELSE} type UnicodeString = WideString; RawByteString = AnsiString; {$UNDEF SUPPORTS_IMPLICIT_WARNINGS} {$ENDIF} function CharsetNameToCharset(const ACharsetName: String): Cardinal; function RawHTMLToHTML...
unit UCustomerServices; interface uses Controls, SysUtils, InvokeRegistry, ClfCustServices2014; type ServiceIDs = 1..64; ClfServiceIDs = set of serviceIDs; const //service IDs the same as in UServiceManager stMaintanence = 1; stLiveSupport = 2; stAppraisalPort = 3; stLighthouse = 4;...
unit Aurelius.Drivers.ZeosDbc; {$I Aurelius.inc} interface uses Classes, Generics.Collections, Db, ZConnection, ZDbcIntfs, Aurelius.Drivers.Interfaces, Aurelius.Drivers.Base; type TZeosDbcConnectionAdapter = class( TDriverConnectionAdapter<TZConnection>, IDBConnection) public procedure Con...
{----------------------------------------------------------------------------- Unit Name: DUFrames Author: Sebastian Hütter Date: 2006-08-01 Purpose: TFrame replacement, AutoScroll and Display(Parent); History: 2006-08-01 initial release 2007-01-23 added OnActivate Event 2010-1...
unit DateTimeUtilitario; interface uses Controls; type TDateTimeUtilitario = class private class function SegundosToTime(Segundos: Cardinal): String; class function TimeToSegundos(hora: TTime): Cardinal; public class function DataSEFAZToDateTime(const Data :String) :TDateTime; class function p...
{************************************************************** Smooth Imaging Components - TIFF Components for Delphi Copyright (C) 2002 - Poseidonware.com Author: Steven Boren - sboren@poseidonware.com Jan Oosting - j.oosting@lumc.nl This program is free software; you can redistrib...
1 1 IDENTIFIER s 1 2 OPERATION := 1 4 STRING 'abc' 1 9 SEPARATOR ; 2 1 IDENTIFIER str 2 4 OPERATION := 2 6 IDENTIFIER s 2 7 OPERATION + 2 8 STRING ', Hello!' 2 18 SEPARATOR ;
unit VestaWSIntf; interface uses InvokeRegistry, Types, XSBuiltIns; type IVestaWS = interface(IInvokable) ['{511CF5FF-C254-40B8-98FA-D788BA208998}'] function Get_Version: WideString; safecall; function Get_SystemDateTime: TDateTime; safecall; function Get_SystemTimeZone: Double; safecall; ...
uses paletta, Classes, sysutils; const MAXBUF = 4096 * 4; var total_bytes_read, bytes_read : int64; input_buffer, output_buffer : array[0..MAXBUF-1] of char; idx_input_buffer, idx_output_buffer : longint; input_stream, output_stream : TFileStream; function fast_read_next_char(): Char; begin (* Tak...
unit Frm_CNAE_Browse; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm, Frm_Browse, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.Phys.Intf, FireDAC.DApt.In...
unit UnitCommandRunner; interface uses UnitMigration4D.Interfaces; type TCommandRunner = class(TInterfacedObject, iCommandRunner) private public constructor Create; destructor Destroy; override; class function New: iCommandRunner; function CreateMigration(Name: string): iCommandRunner; fu...
unit RTDisplay32; interface uses SysUtils, Classes, Controls, StdCtrls, Types, Graphics, Dialogs, Messages, Themes, Scale, GR32; const RadarSize = 5; DefaultBoardRange = 500; ScrollBarsSize = 15; Sample_Excluded = $FFFF; Data_Excluded = $FF; DefaultTransparentColor = clBtnFace; Defaul...
unit dll_kernel32_procthread; interface uses atmcmbaseconst, winconst, wintype; type PProcessInfo = ^TProcessInfo; TProcessInfo = record hProcess : THandle; hThread : THandle; dwProcessId : DWORD; dwThreadId : DWORD; end; c...
unit XMLDocHelper; (* (CreateCollection\(.+?,.+?, ')(.+?)\) \1tns:\2\) RegisterChildNode(' RegisterChildNode('tns: ChildNodes[' ChildNodes['tns: ItemTag := ' ItemTag := 'tns: *) interface uses DDetours, System.Variants, System.Generics.Collections, System.SysUtils, Xml.XM...
unit uiwindow_wndproc_paint; interface uses Windows, Messages, uiwin.memdc, uiwindow_memdc; function UIWndProcA_Paint(AUIWindow: PUIWindow; AMsg: UINT; wParam: WPARAM; lParam: LPARAM; var AWndProcResult: LRESULT): Boolean; procedure UIWindowPaint(AUIWindow: PUIWindow; AMemDC:...
(******************************************************************************* In the constant evolution of software development, we often find ourselves seeking ways to reduce boilerplate code and enhance the maintainability of our projects. One such instance where boilerplate can become cumbersome is in the ini...
unit TSTOBsvImpl; interface Uses Windows, HsInterfaceEx, TSTOBsvIntf; Type TBsvAnimation = Class(TInterfacedObjectEx, IBsvAnimation) Private FAnimationName : AnsiString; FStartFrame : Word; FEndFrame : Word; Protected Function GetAnimationName() : AnsiString; Procedure SetAnimatio...
unit commodities; {$MODE OBJFPC}{$H+} {$UNITPATH ../Trinity/} {$IF DEFINED(AMIGA) or DEFINED(MORPHOS)} {$PACKRECORDS 2} {$ENDIF} interface uses Exec, InputEvent, Keymap, TriniTypes; const COMMODITIESNAME : PChar = 'commodities.library'; CXBase : PLibrary = nil; // ###### librarie...
{**************************************************** * Author : Dumitru Uzun * Web : http://duzun.me * Repo : https://github.com/duzun/DelphiUnits * Created : 25.12.2009 * * TDigiStack este un container pentru componente de tip TDigiBox. * Se foloseste pentru reprezentarea vizuala a unei liste de num...
unit uPickListEditor; {$mode objfpc}{$H+} interface uses Classes, SysUtils, VirtualTrees, Menus, Dialogs, Windows, Forms, Controls, u2ColumnEditor, uLibrary; type { TPickListData } TPickListData = class(T2ColumnData) private fPickList: IPickList; protected function GetShortDescription: str...
//*************************************************************************** // // 名称:RTXC.IMEventSink.pas // 工具:RAD Studio XE6 // 日期:2014/11/8 15:11:36 // 作者:ying32 // QQ :396506155 // MSN :ying_32@live.cn // E-mail:yuanfen3287@vip.qq.com // Website:http://www.ying32.c...
/// entities, values, aggregates for the Conference domain unit DomConferenceTypes; interface uses SysUtils, Classes, SynCommons, mORMot; { Conference Domain Objects } type TAttendeeName = type RawUTF8; TAttendeeFirstName = type RawUTF8; TAttendeeRegistrationNumber = type cardinal; TSessionDate = ...
{ Double buffering example } program dBL_Buffer; {$G+}{$M 4000,0,65000} {$I c:\tp\dev1\mooz6.dat} { Music data } {$I c:\tp\cachunka.dat} {$I c:\tp\dev1\tlogo.dat} {$L XMSOBJ.OBJ} {$F+} PROCEDURE _XMSFMPlayer; near; EXTERNAL; PROCEDURE _StopXMSFM; near; EXTERNAL; PROCEDURE _InitXMSFM; near; EXTERN...
unit wifimanager; {$mode delphi} interface uses Classes, SysUtils, And_jni, {And_jni_Bridge,} AndroidWidget; type {Draft Component code by "LAMW: Lazarus Android Module Wizard" [7/26/2019 1:30:53]} {https://github.com/jmpessoa/lazandroidmodulewizard} {jControl template} jWifiManager = class(jControl) private ...
{----------------------------------------------------------------------------- Unit Name: DUDbgCon Author: Sebastian Hütter Date: 2006-09-02 Purpose: Creates a console window for debug output History: 2006-09-02 initial release ------------------------------------------------------------------------...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
unit Sample3.Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Memo1: TMemo; Button2: TButton; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); pr...
unit UnitCompressorArquivos.Model; interface uses System.ZIP, Vcl.Taskbar, Vcl.Forms; type iCompressorArquivos = interface ['{F863A10B-E4CC-4FBC-A0FB-F89299987EBC}'] function ComprimeArquivo(ArquivoCompacto: string; ArquivosCompactar: array of string; Sobrescrever: Boolean = True): iCompressorArquivos; ...
program lines; {$IFNDEF HASAMIGA} {$FATAL This source is compatible with Amiga, AROS and MorphOS only !} {$ENDIF} { Project : lines Topic : implements a superbitmap with scroll gadgets Source : RKRM } { ** This example shows how to implement a superbitmap, and uses a host of ** Intuition facilities....
unit ChoicePeriod; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, Vcl.ComCtrls, dxCore, cxDateUtils, cxGroupBox, cxRadioGro...
unit Prvider; interface uses Classes, SysUtils, TypInfo; type TProvider = class(TObject) public constructor Create; destructor Destroy; override; // Mapping Pascal types to SQL types function GetSQLType(PropertyKind: TTypeKind; PropertyClass: string): string; end; var Provider: TProvider; ...
unit Console; interface uses OpenGL, classes, Textures, Winapi.Windows; const FONT_HEIGHT = 12; FONT_WIDTH = 9; type FontRect = Record T1,U1,T2,U2, W, H: single; end; FontObj = Object F: array of FontRect; StartChar, FontLe...
unit main; {$I ..\..\..\..\..\..\WCL7\VCL\Source\wcl.inc} interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, wclBluetooth, wclWeDoWatcher, wclWeDoHub; type TfmMain = class(TForm) laStatus: TL...
unit rIPEdit; interface uses SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Menus, Forms, Dialogs, StdCtrls, RIpTools; type TrIPAddrEdit = class(TCustomMemo) private fValue: RIpAddr; fBeepOnError: Boolean; procedure SetValue(const aValue: RIpAddr); fu...
unit UTimer; interface uses Windows; type cTimer = class private QPF, pause, realTime, QPC: Int64; public constructor cTimer.Create(fps: integer); procedure cTimer.SetPause(fps: integer); function cTimer.Run: Boolean; end; implementation constructor cTimer.Create(fps: integer);...
// // Created by the DataSnap proxy generator. // 20/10/2015 13:40:01 // unit U_Proxy; interface uses System.JSON, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System.Classes, System.SysUtils, Data.DB, Data.SqlExpr, Data.DBXDBReaders, Data.DBXCDSReaders, Data.DBXJSONRefl...
unit IdStreamNET; interface uses IdObjs, IdGlobal; type TIdStreamHelperNET = class public class function ReadBytes(AStream: TIdStream2; var VBytes: TIdBytes; ACount: Integer = -1; AOffset: Integer = 1): Integer;...
program ExceptionHandling; {$mode objfpc}{$H+} uses {$IFDEF UNIX} {$IFDEF UseCThreads} cthreads, {$ENDIF} {$ENDIF} Classes, SysUtils { you can add units after this }; {var x, y: integer; Res: double; begin try Write('Input x: '); Readln(x); Write('Input y: '); Readln(y); ...
unit rFrmStore; interface uses Forms, Graphics, ExtCtrls, Grids, ComCtrls; { == Сохранение позиции формы ================================================== } procedure ini_SaveFormPosition(Form: TForm); procedure reg_SaveFormPosition(Form: TForm); procedure ini_LoadFormPosition(Form: TForm; const LoadState, LoadPo...
unit UCellMetaData; { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted 2008 by Bradford Technologies, Inc. } { This unit handles meta data associated with a graphics cell.} { Graphic cell can have data associat...
unit Customers; interface uses System.SysUtils, System.StrUtils; type TCustomerRecord = packed record Name: string; Balance: Currency; Credit: Currency; MSISDN: string; PIN: string; IsImport: Boolean; SourceCustomerID: string; SourceParentID: string; CustomerID: LongInt; U...
{***************************************************************************} { } { DelphiUIAutomation } { } { ...
unit uVersion; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TVersionInfo = record Major, Minor, Release, Build: integer; FileVersion, FileDescription, CompanyName, LegalCopyright: string; Fil...
unit uCadAtendimento; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, System.Actions, Vcl.ActnList, Vcl.StdCtrls, Vcl.Grids, Vcl.DBGrids, Data.Win.ADODB, uAtendimentoController; type TfrmCadAtendime...
unit uHintWin; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,CommCtrl; type THintWin = class(THintWindow) private FLastActive: THandle; public procedure ActivateHint(hWnd:DWORD;Const AHint:string); end; implementation { THintWin } procedure AddTip...
{*! * Fano Web Framework (https://fanoframework.github.io) * * @link https://github.com/fanoframework/fano * @copyright Copyright (c) 2018 Zamrony P. Juhara * @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT) *} unit JsonSessionImpl; interface {$MODE OBJFPC} {$H+} uses fpjso...
unit QuickList_Int; interface uses QuickSortList; type {---------------------------------------} PALIntegerListItem = ^TALIntegerListItem; TALIntegerListItem = record FInteger: integer; FObject: TObject; end; {------------------------------------------} TALIntegerList = class(TALBaseQuickSortL...
{***************************************************************} { Copyright (c) 2013 год . } { Тетенев Леонид Петрович, ltetenev@yandex.ru } { } {*******************************************************...
unit ulocoreinterfaces; {$mode objfpc}{$H+} interface uses Classes, SysUtils, SyncObjs, XMLConf, SQLDB, uloCoreConstants; type { IloLogger } IloLogger = interface(IInterface) ['{354AB046-EA70-448C-9582-18F7C2E462E7}'] procedure Fatal(aMsg: String); procedure Error(aMsg: String); p...
unit KM_GUIMapEdMarkerReveal; {$I KaM_Remake.inc} interface uses Classes, Controls, Math, StrUtils, SysUtils, KM_Controls, KM_Defaults, KM_Pics; type TKMMapEdMarkerReveal = class private fOwner: THandIndex; fIndex: Integer; fOnDone: TNotifyEvent; procedure Marker_Change(Sender: TObject); p...
unit FactoryMethod.Creators.ConcreteCreator2; interface uses FactoryMethod.Creators.Creator, FactoryMethod.Interfaces.IProduct, FactoryMethod.Interfaces.IConcreteCreator; // Concrete Creators override the factory method in order to change the // resulting product's type. // Creators concretos subescrevem o fact...
unit AbstractSectionStackedFormController; interface uses AbstractFormController, Forms, unSectionStackedForm, SectionRecordViewModel, SectionStackedFormViewModel, SectionSetHolder, FormEvents, Controls, EventHandler, Event, EventBus, SysUtils, Classes; type TAbstractSectionStackedFormC...
unit ResConv; interface uses Sysutils,Classes,controls,StDataStruct; { Theses Codes are adapted from Classes.ObjectBinaryToText} type TResourceToken = (rtNone,rtIndent,rtLineEnd,rtSymbol,rtKeyword, rtInt,rtExtended,rtSingle,rtCurrency,rtDate,rtString,rtWString, rtIdent,rtBinary,rtList,rtSet,rtCollection);...
unit Certificate; { ------------------------------------------------------------------------------ } interface { ------------------------------------------------------------------------------ } uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ImgList, StdCtrls, ExtCtrls, ...
unit Placement; interface uses Project, Classes; type TvePlacement = class protected FProject : TveProject; Items : TList; procedure FillItemList; public property Project : TveProject read FProject write FProject; procedure PlaceUp; procedure PlaceDown; constructo...
(* Generic CRC8, CRC16, CRC32 calculation Usage example: var DataStr: AnsiString = '123456789'; DataBuf: array[0..255] of Byte; begin Result := GetCRC32(DataStr[1], Length(DataStr)); Result := GetCRC32(DataBuf, SizeOf(DataBuf)); end; Sergey Bodrov (serbod@gmail.com) MIT License *) unit CRCU...
unit LocationServiceU; interface uses System.SysUtils, System.Classes, System.Android.Service, AndroidApi.JNI.GraphicsContentViewText, AndroidApi.JNI.Os, System.Android.SensorsDD, System.SensorsDD; type TAndroidServiceDM = class(TAndroidService) function AndroidServiceStartCommand(const Sender: TObje...
unit Model.Group; interface uses Model.Interfaces, Model.IMyConnection, System.Generics.Collections, Spring.Collections, Spring.Data.ObjectDataset, MainDM; function CreateGroupModelClass: IGroupModelInterface; implementation uses System.SysUtils, Model.Declarations, Model.FormDeclarations, Spring.Per...
unit ChainOfResponsibility.Util.StringClass; interface type IString = interface ['{722F287E-FB5C-4BC3-A4C3-4CC4D237FB23}'] end; TString = class(TInterfacedObject, IString) private FStr: String; public constructor Create(const AStr: String); property Str: String read FStr write FStr; cla...
unit QEngine.Device; interface uses Generics.Collections, Windows, QuadEngine, QCore.Types, QEngine.Types, Strope.Math; type TQuadDevice = class sealed (TBaseObject, IQuadDevice) strict private FEngine: IQuadEngine; FDevice: IQuadDevice; function GetIsResolutionSupported(AWidth, ...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
{$G+} program Drip; uses Crt; {This sets the display to VGA 320x200 in 256 colours} procedure VGAScreen; assembler; asm mov ax, $13 int $10 end; {This resets the display to text mode} procedure TextScreen; assembler; asm mov ax, $3 int $10 end; {This sets a DAC register to a specific Red ...
unit TSTOPatches; interface Uses Classes, HsInterfaceEx, HsXmlDocEx, TSTOProject.Xml, TSTOStoreMenuMaster, TSTOStoreMenu, TSTOSbtp.IO, TSTOCustomPatches.IO, TSTOProjectWorkSpace.IO, TSTORgbProgress; Type TPatchType = ( tptCost, tptDynamicBuyInfo, tptDynamicSellInfo, tptNonUnique, tptInstantBui...
program WelkeWagen; var prijsDiesel, prijsBenzine: real; var prijsDieselWagen, prijsBenzineWagen: real; var taksDieselWagen, taksBenzineWagen: real; var verbruikDieselWagen, verbruikBenzineWagen: real; var jarenInGebruik: integer; var kilometerGrens: real; function InvoerInteger(boodschap: string; min, max: integer):...
unit MainModule; interface uses uniGUIMainModule, SysUtils, Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.StorageBin, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client; type TUniMainModule = class(T...
{Hint: save all files to location: C:\android-neon\eclipse\workspace\AppDBGridViewDemo1\jni } unit unitMain; {$mode delphi} interface uses Classes, AndroidWidget, Laz_And_Controls, actionbartab, fileprovider; type { TAndroidModuleMain } TAndroidModuleMain = class(jForm) ActionBarTab: jActionBarTab;...
(***********************************************************) (* Notify My Android Unit *) (* https://www.notifymyandroid.com *) (* *) (* part of the Digital Home Server project *) (* ht...
unit GcodeFm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Project; type TgcReport = (rptTrackCuts, rptTopOutlines); type TGcodeForm = class(TForm) Memo1: TMemo; Button1: TButton; Panel1: TPanel; File...
unit Unit_GUI; {$mode objfpc}{$H+} interface (*Las Varias principales son tres polinomios: Pol_N_Main_Menu: Polinomio Normal: 0<= Grado N <=10 Pol_Div1: Polinomio Especial, Monico Divisor Grado 1: X+a, Pol_Div2: Polinomio Especial Monico Divisor Grado 2: X^2+rX+s internamente el vector de coeficientes se carga de la ...
unit UtilConvert; interface uses System.SysUtils, Winapi.Windows, DB; {функции конвертации числа в строку} function gfIntToStr(const inInt: integer): string; //tested {функции конвертации строки в число} function gfStrToInt(const inStr: string): integer; //tested {функции конвертации числа в строку не...
unit EmailCleanerTestCase; interface uses TestFramework, ContentProvider; type // Test methods for class TCalc TEmailCleanerTestCase = class(TTestCase) strict private FContentProvider: TContentProvider; public procedure SetUp; override; procedure TearDown; override; published procedure ...
(*--------------------------------------------------------*) (* Exercise 7 (BSP. 2 TempCheck) *) (* Developer: Neuhold Michael *) (* Date: 25.11.2018 *) (* Verson: 2.0 *) (* checking val...
(* Output: Line 1 - a is not equal to b Line 2 - a is not less than b Line 3 - a is greater than b > Change values of a and b Line 4 - a is either less than or equal to b > Doing b:=a Line 5 - b is either greater than or equal to b *) program Test10; var a, b: real; begin a := 21; b := 10; if a = b then ...
(*++ Copyright (C) 2018 Automatic Component Toolkit Developers All rights reserved. This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.1. Abstract: This is an autogenerated Pascal exception class definition file in order to allow easy development of Prime Numbers Interface. The functi...
unit usimulasi; interface uses utipebentukan; {######################################################} {***********KELOMPOK SUBPROGRAM FITUR TIDUR************} {######################################################} procedure checkEnergi(E : integer; var sleep : boolean); {Mengecek apakah energi sudah habis} ...