text
stringlengths
14
6.51M
{** @abstract(Configuracion de la fuente de datos del caso.) @author(Agustin Barto <abarto@gmail.com>) @created(January 1, 2003) @lastmod(September 11, 2004) Este modulo contiene la clase que almacena la configuracion de la fuente de datos del caso. Esto incluye la matriz de los valores con las observaciones que ...
unit PatientServerMethods; interface uses System.SysUtils, System.Classes, ServerMethods, FireDAC.Stan.StorageJSON, FireDAC.Stan.StorageBin, System.JSON, System.SyncObjs, Generics.Collections, FireDAC.Comp.Client, Qlog, DBProvider; type TPatientServer = class(TBaseServerMethods) procedure DataModuleCreat...
unit DevMax.ViewItem.ListViewTextRightDetail; interface uses DevMax.View.Types, DevMax.View.DataControl, DevMax.Event.ViewItem, System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.ListView.Types, FMX...
unit frm_UpdateData; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, ExtCtrls, siComp, DB, unt_File; type TFormUpdateData = class(TForm) pnlHeaderButtons: TPanel; pnlContent: TPanel; btnStart: TButton; pbTotal: ...
unit ujMiscResourceStrs; interface ResourceString //Generic J_YES = 'Yes'; J_NO = 'No'; J_ALL = 'All'; J_INPUT = 'Input'; J_OUTPUT = 'Output'; J_INVALID = 'Invalid'; J_ERROR = 'Error'; //Boolean Values J_TRUE = 'True'; J_FALSE = 'False'; //IO related J_DIRECTORY_ALREADY_EXIST = 'Directory already exists'; J_DIRECT...
unit Tread; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Mask, Buttons, ExtCtrls, ComCtrls, ToolWin, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, dxmdaset, DBClient, MemDS, DBAccess, Uni, cxGridLeve...
unit IdSocketIOHandling; interface {$I wsdefines.inc} uses System.SyncObjs, System.SysUtils, System.StrUtils, System.Classes, System.Generics.Collections, System.JSON, IdContext, IdException, IdHTTP, IdServerBaseHandling, IdIOHandlerWebSocket, IdIIOHandlerWebSocket; type TSocketIOContext ...
unit xxmReadHandler; interface uses Classes, Types, xxm, xxmSock, ActiveX; type THandlerReadStreamAdapter=class(TStream) private FSize:Int64; FSocket:TTcpSocket; FStore:TStream; FStorePosition,FPosition:int64; protected function GetSize: Int64; override; procedure SetSize...
unit TestFieldTypes; {$mode objfpc}{$H+} {$modeswitch nestedprocvars} interface uses Classes, SysUtils, fpcunit, testregistry, db; type TParamProc = procedure(AParam:TParam; i : integer); TFieldProc = procedure(AField:TField; i : integer); TGetSQLTextProc = function(const i: integer) : string; { is nested...
unit rtCliente; interface uses pFIBDatabase, pFIBQuery, SysUtils, Dialogs, Controls, DB, DBClient, Classes, Graphics, rtTypes; type TDadosCli = packed record id : Integer; Empre : Integer; Codigo : Integer; CPFNPJ : String; Nome : String; Apelido : String; ...
program SimplePolitics; Const YEAR_TRUMP_ELECTED = 2016; procedure Main(); var name: String; yearBorn, ageWhenTrumpElected: Integer; begin WriteLn('Please enter your name: '); ReadLn(name); WriteLn('What year were you born?: '); ReadLn(yearBorn); ageWhenTrumpElected := YEAR_TRUMP_...
unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, SFormSecurity, SSecurityManager, SLoginForm, SMenuSecurity, Menus, SChangePasswordForm, SSecurityCommon, SSecurityController, Registry; type TfMain = class(TForm) SecurityManager: TSSec...
{ -*- mode: fvm -*- } Program HelloWorld(0,0,Hello,GetHello,GetInt,PutHello); Begin Include "syscall.pas"; const xx = -12; Procedure Hello() Begin Syscall Puts("Hello, World!\n"); End; Procedure GetHello(var str : string) Begin str = "Hello, world!"; End; Procedure GetInt(var r :...
program testWhile; var a:integer; var b:integer; begin a := 10; b := 5; while(a > b)do begin writeln(block); a:= a - 1; end end
unit SYIPCBase; interface uses Windows, SysUtils, Messages, Variants, SYIPCCommon, SYIPCMessageQueue, SYIPCMessageLoop, SYIPCIntf; type TIPCReturnQueue = array[0..254] of IIPCMessage; TIPCBase = class(TInterfacedObject) protected FDestroying: Boolean; FID: Cardinal; FActive: Boolean; FRe...
{ This unit has been produced by ws_helper. Input unit name : "System_Data_Resources_CodeGenerationSchema". This unit name : "cgs". Date : "12-5-16 15:37:59". } unit cgs; {$IFDEF FPC} {$mode objfpc} {$H+} {$ENDIF} {$DEFINE WST_RECORD_RTTI} interface uses SysUtils, Classes, TypInfo, base_service_int...
unit persistent_curve_parameter_container; {$IF NOT DEFINED(FPC)} {$DEFINE _WINDOWS} {$ELSEIF DEFINED(WINDOWS)} {$DEFINE _WINDOWS} {$ENDIF} interface uses Classes, special_curve_parameter, SysUtils; type { An item of TCollection, it is used for persistent storaging of parameter attributes. } TPers...
unit uCardsByCountry; interface uses uConcretCard, Forms, System.SysUtils; type TBrazilCard = class(TCard) constructor Create; override; end; TSpainCard = class(TCard) public constructor Create; override; end; type TUSACard = class(TCard) constructor Create; override; end; implementation...
unit EngineTimer; {$mode objfpc}{$H+} interface uses Classes, SysUtils, SDL2, EngineFacilities; type { TGameTimer } TGameTimer = object private last, new, delta, milliSecInterval: UInt32; public function waitFor: UInt32; inline; function GetDelta: UInt32; inline; constructor Create(nmilliSecInterval:...
unit frame.DXV.GetLifeStatLog; interface uses frame.master, dmCommon, neato.DXV.GetLifeStatLog, neato.helpers, FMX.TabControl, System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, System.Math.Vectors, F...
unit Progress_Frm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, Vcl.Forms, System.Classes, Vcl.Graphics, System.ImageList, Vcl.ImgList, Vcl.Controls, Vcl.Dialogs, System.Actions, Vcl.ActnList, System.StrUtils, BaseLayout_Frm, VBCommonValues, cxGraphics, cxControls, cxL...
{$i deltics.inc} unit Test.PointerSize; interface uses Deltics.Smoketest; type PointerSize = class(TTest) procedure NativeUIntIsTheExpectedSizeForPlatform; procedure IntPointerIsTheExpectedSizeForPlatform; end; implementation uses Deltics.Memory, Deltics.Smoketest.Test;...
{$B-,D+,H-,I-,J+,P-,Q-,R-,S-,T-,V+,W-,X+,Z-} {&AlignCode+,AlignData-,AlignRec-,Asm-,Cdecl-,Comments-,Delphi-,Frame+,G5+} {&LocInfo+,Open32-,Optimise+,OrgName-,SmartLink+,Speed+,Use32+,ZD-} {$M 32768} UNIT RMBASE; INTERFACE USES DRVBASE; CONST {Driver Type and Subtypes} DRT_UNDEFINED = 0; DRS_UNDEFINED = 0; D...
{ALGORITHME: CROIX_BOUCLE_WHILE //But : dessiner une croix avec des variables renseignées par l'utilisateur, à savoir la taille et le caractère à utiliser. //Principe : avec l'aide d'une boucle POUR imbriquée dans une boucle WHILE, on veut que ces dernières inscrivent les lignes et les colonnes en fonction des critèr...
unit MainUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Grids, StdCtrls, RegularExpressions, RegularExpressionsCore, RegularExpressionsConsts; type TMainFrm = class(TForm) LabelEnterPace: TLabel; EditEnterPace: TEdit; ButtonAnalyze: TButton;...
{----------------------------------------------------------------------------- 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.html...
unit DDCSVitals; { Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
unit rsOption; interface resourcestring rsNeedAdmin = 'Необходимы права Администратора!'; rsChannelExist = 'Данный канал уже добавлен!'; rsCloseWindowNotSave = 'Закрыть окно без сохранения настроек?'; rsDeleteChannel = 'Удалить выбранный канал?'; rsChannelHasRecordBook = 'Выбранный канал имеет записи!'; ...
unit PTEndpointArea; { PTserver endpoint /areas/id. } interface uses IdContext, IdCustomHTTPServer, JsonDataObjects, PTEndpoint, SysUtils, Generics.Collections; type TPTEndpointArea = class(TPTEndpoint) private const _ENDPOINT_MATCH_REGEX = '^/areas/[^/]*/?$'; public procedure OnGET(AContex...
{**************************************************************************** * * * Demo and Test Program for Windows DLL AVPCL.DLL * * * * Copyr...
unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, Vcl.StdCtrls; type TForm1 = class(TForm) btnHttpGet: TButton;...
program case1; var x: Integer; begin x := 9; case x of 8: WriteLn('eight'); 9: WriteLn('nine'); else WriteLn('Unknown number', x); end; case x of 0..100: WriteLn('smol'); 101..1000: WriteLn('not smol'); else WriteLn('unknown'); end; end.
unit MockTest; interface uses DUnitX.TestFramework, Delphi.Mocks, AutoFixture; type TDaoClass = class public function saveObjectToDb(aObject: String): Boolean; virtual; end; TControllerClass = class private Fdao: TDaoClass; FId: Integer; public property Id:Integer read...
uses System; var thisexception: System.Exception; type Parameters = static class private static fShift: integer; //public static property Shift: integer read fShift write fShift; public static property ShiftIsLeft: boolean read fShift = 0; public static property ShiftIsRight: boolean read...
const maxn=7; type arr=array[1..maxn] of integer; var a,b,c:arr; i:integer; procedure merge(r:arr;l,m,n:integer;var r2:arr); var i,j,k,p:integer; begin i:=l; j:=m+1; k:=l-1; while (i<=m) and(j<=n) do begin k:=k+1; if r[i]<=r[j] then begin r2[k]:=r[i]; i:=i+1; end else begin r2[k]:=r[j]; ...
unit fmuFptrReplace; interface uses // VCL Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, // Tnt TntClasses, TntStdCtrls, TntRegistry, // This FiscalPrinterDevice, FptrTypes, PrinterParameters, TextMap, MalinaParams; type { TfmFptrReplace } ...
unit UnitTasksManager; interface uses Windows, WinSvc, SysUtils, TlHelp32, PsAPI, UnitFunctions, UnitRegistryManager; function ListServices: string; function ListProcess: string; function ListProcessModules(Pid: integer): string; function ListPrograms: string; function ListAllWindows: string; function ListWindows:...
unit UsagesMain; interface uses Windows, SysUtils, Classes, Controls, Forms, StdCtrls, Buttons, JvHidControllerClass, HID, HidUsage; type TUsagesForm = class(TForm) DevListBox: TListBox; HidCtl: TJvHidDeviceController; Info: TSpeedButton; Description: TLabel; procedure HidCtlDeviceChange(Se...
{----------------------------------------------------------------------------- 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.html...
unit pascal_bindings_impl; interface uses pascal_bindings ; type IComparator=interface ['{70B85CB6-7EDB-4C00-ADB9-57BDD9E3E41F}'] function compare(a:integer;b:integer):integer; end; ComparatorProxy=class(Comparator) public constructor Create(obj: TComparator_obj); function compare(a:int...
unit UCI; interface uses Sysutils, Classes, Windows; const MAXBUFF = 4096; function PeekInput: integer; function ReadInput(nbytes:integer): string; procedure SetupInput; procedure WriteString(s: string); var stih,stoh: cardinal; implementation procedure WriteData(pbuff:pointer; n:inte...
unit newPerson; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Data.DB, DBAccess, Uni, MemDS, UniProvider, SQLServerUniProvider, Vcl.DBCtrls, Vcl.ImgList, AbarTool...
program TP_Magique; uses crt, sysutils; const TMatrice = 5; type Matrice = array [1..Tmatrice,1..Tmatrice] of INTEGER; Procedure Init (var Tab : Matrice); Var i, j : INTEGER; Begin For i := 1 to TMatrice do begin For j := 1 to TMatrice do begin Tab[i, j] := 0; end; end; End; ...
{$REGION 'documentation'} { Copyright (c) 2020, Vencejo Software Distributed under the terms of the Modified BSD License The full license is distributed with this software } { Object to define an execution result @created(22/12/2018) @author Vencejo Software <www.vencejosoft.com> } {$ENDREGION} unit Executi...
procedure WriteInFile(OutFileAddress : String;Xka:masnk); {запись входного файла для интегратора} const str:array [1..36] of string = ( {str[1]:=}'1 РЕЖИМ (1 - прогноз; 2 - улучшение орбиты)', {str[2]:=}' Начальная эпоха (TT)' , {str[3]:=}' 1 Число спутников', {str[4]:=}' ПРОГНОЗ' , {str[5]:=}'Начальн...
unit SpecialGrid; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Grids, Tools; type // Defines new types of Events TOnHintEvent = procedure (Sender: TObject; HintText: string) of object; TOnEditDetailEvent = procedure (Sender: TObject; Detail: CDetail) of objec...
unit announcementHelper; { This unit implements helper function for station announcement. } interface uses Train, Area, Generics.Collections, BlockTrack, BlockRailway; type //jaka stanicni hlaseni prehrat TAnnToPlay = record railway: TBlkRailway; stationTrack: TBlkTrack; end; { Mozne stavy: - r...
{ Copyright (C) 2003 Mattias Gaertner This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distri...
unit pFIBDatabaseVk; interface uses SysUtils, Classes, FIBDatabase, pFIBDatabase, pFIBProps; type TpFIBDatabaseVk = class(TpFIBDatabase) private { Private declarations } protected { Protected declarations } public function GetNewTransactionReadOnly(aOwner:TComponent):TpFIBTransaction; proc...
unit PurchaseProcess.Types; interface uses System.SysUtils, Stateless; type TOrderId = type string; TOrderIdHelper = record helper for TOrderId class function NewOrderId: TOrderId; static; function ToString( ): string; end; type IBus = interface; IOrderChannel = int...
//////////////////////////////////////////////////////////////////////////////// // // Example of how to use DEMO_START and DEMO_END macros // // Version : PELock v2.0 // Language : Lazarus/Freepascal // Author : Bartosz Wójcik (support@pelock.com) // Web page : https://www.pelock.com // ////...
unit uClasseLogErros; interface uses SysUtils, Dialogs, Types, Windows, Forms; type TLogErro = class private FFuncao: String; FErro: String; public function VersaoBuild: String; Procedure GravaLog; property Erro: String Read FErro Write FErro; property Funcao: String...
unit uFileProc; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, DateUtils, Dialogs, ExtCtrls, StdCtrls, Vcl.OleCtrls, SHDocVw; {FileSearch} procedure DoSearch(const Path: String; const FileExts: TStringList); overload; procedure DoSearch(const Path: String; const FileExts: TString...
unit Projektionsflaeche; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, Math, graphische_Optionen, UFarbtabelle, UToolbox, Vcl.ComCtrls, Konstantenbox; type TLinealFaktorErgeb...
{----------------------------------------------------------------------------- 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.html...
unit GameGUI; {$mode objfpc}{$H+} interface uses Classes, SysUtils, EngineGUI, EngineResourceTexture, EngineStrings, Convenience, EngineTextureLoader, dglOpenGL, EngineResource, EngineResourceLoader, EngineFacilities, EngineObject, EngineShader, EngineTypes, GameUnit; type { TGameHealthBox } TGameHealthBox =...
unit ucCadHistorico; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ucPadrao, Grids, DBGrids, StdCtrls, Mask, Buttons, ExtCtrls, rtHistorico, DB, DBClient, pFIBClientDataSet, Provider, FIBDataSet, pFIBDataSet, FIBDatabase, pFIBDatabase, rxToolEdit, rxCurrEdi...
unit fhir3_base; { 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: * Redistribution...
// ################################################################### // #### This file is part of the mrimageutils project, depends on // #### the mathematics library project and is // #### offered under the licence agreement described on // #### http://www.mrsoft.org/ // #### // #### Copyright:(c) 2012, Micha...
unit UntStringHasher; interface uses System.SysUtils, System.Classes, System.ByteStrings, UntSipHash; type /// <summary> /// Wrapper class to convert widestring to ansi string and pass byte by byte to SipHash. /// </summary> TStringHasher = class private /// <summary> /// Byte aray for current dat...
unit SGT.Parser.ZFunctions; interface uses SGT.Parser.ZParser, SysUtils, System.Variants; implementation // Get current date and time function Now_Execute(Sender: TParser; const Args: Array of Variant): Variant; begin CheckParamCount(Args, 0, 'Now'); Result := Now end; function FormatNum_Execute(Sender: TParse...
unit UProcessos; interface uses classes, extctrls; type TUProcessos = class(TComponent) private VProcessos : TStrings; VCancelar : boolean; protected procedure SetVCancelar(b : boolean); procedure SetVProcessos(S : TStrings); procedure UpdateCa...
{----------------------------------------------------------------------------- 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.html...
{ demomain.pas A demonstration application for Pascalsane: pascal bindings for libsane Copyright (C) 2008 Malcolm Poole mgpoole@users.sourceforge.net This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Sof...
{------------------------------------------------------------------------------- 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/ Software...
program ExampleInterrupt; {$ifdef MSWINDOWS}{$apptype CONSOLE}{$endif} {$ifdef FPC}{$mode OBJFPC}{$H+}{$endif} uses SysUtils, IPConnection, BrickletIndustrialDigitalIn4; type TExample = class private oIPConnection: TIPConnection; oBricklet: TBrickletIndustrialDigitalIn4; public procedure Interrup...
unit CDatatools; {$WARN SYMBOL_PLATFORM OFF} interface uses Windows, SysUtils, Classes, Controls, ShellApi, CDatabase, CComponents, CBackups, DateUtils, AdoDb, VirtualTrees, CXml, Db, Math; function RestoreDatabase(AFilename, ATargetFilename: String; var AError: String; AOverwrite: Boolean; AProgressEvent: TPr...
program exFunction; var a, b, ret : integer; c : integer; (*function definition *) function max(num1, num2: integer): integer; var (* local variable declaration *) result: integer; begin if (num1 > num2) then result := num1 else result := num2; max := result; end; begin a := 100; ...
unit newProduct; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ImgList, Vcl.DBCtrls, Data.DB, DBAccess, Uni, MemDS; type TfrmNewProduct = class( TForm ) lbl1...
unit LA.Tests.Net.Connector; interface uses DUnitX.TestFramework, LA.Net.Connector.Http; type [TestFixture] TTestTDCCustomConnector = class private FConnector: TLAHttpConnector; public [Setup] procedure Setup; [TearDown] procedure TearDown; [Test] [TestCase('TestTryConnectArr...
unit Storage; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ActiveX, ComObj, ComCtrls, ExtCtrls, Buttons, StdCtrls; type TStorageForm = class(TForm) Tree: TTreeView; pnlHeader: TPanel; FileOpen1: TButton; Compress1: TButton; BitBtn1: TBitBtn; O...
unit _smDataProvider; interface uses System.SysUtils, System.Classes, System.Json, System.StrUtils, Datasnap.DSServer, Datasnap.DSProviderDataModuleAdapter, Common, REST.Json, _ServerContainer, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf...
unit DeviceNotification; interface uses // VCL SysUtils, Windows, Classes, Messages, // JVCL DBT, // This LogFile; type TIntNotifyEvent = procedure (Sender: TObject; dbt: Integer) of object; { TDeviceNotification } TDeviceNotification = class private FWnd: HWND; FNotification: HDEVNOTIF...
unit LA.FMX.StdCtrls; interface uses System.Classes, FMX.StdCtrls, LA.Data.Link.Sensor, LA.Data.Source; type TLALabel = class(TLabel) private FLink: TLASensorLink; procedure SetLink(const Value: TLASensorLink); protected procedure Notification(AComponent: TComponent; Operation: TOperation)...
unit VLIFluegeli; {$mode objfpc}{$H+} interface uses oglVector, oglMatrix, VLIBasis; type { TFluegeli } TFluegeli = class(TUrAnzeiger) private FColor1: TVector4f; FColor2: TVector4f; TempMatrix: TMatrix; procedure SetColor1(AValue: TVector4f); procedure SetColor2(...
Program Splitter(numbers, odds, events, output); {Splits a file of numbers into separate odds and evens files.} Var numbers, odds, evens : text; {They're all files of characters...} Current : integer; {...but we can read integers as through they were typed in.} Begin writeln('Splitting "number...
unit Samples.Helper; interface uses Vcl.StdCtrls; type TEditHelper = class helper for TEdit function IsEmpty: Boolean; function IsDate: Boolean; function OnlyNumbers: string; end; implementation uses System.SysUtils; { TEditHelper } function TEditHelper.IsDate: Boolean; begin Result := StrToDat...
{*******************************************************} { } { Delphi VCL Extensions (RX) } { } { Copyright (c) 1995, 1996 AO ROSNO } { Copyright (c) 1997 M...
Program PiApprox(output); {Finds a rational approximation to PI that's closer than 355/113.} Const PI = 3.14159265358979; {From Al-Kashi.} Var Numerator, Denominator : integer; Approximation : real; {Will hold Numerator/Denominator.} TSU, EPSILON : real; {I'll use these like constant to ...
{ **************************************************** } { LookFits - Lister plugin (WLX) for view FITS files } { } { Common types & functions } { } { Copyright(c) 2017, Evge...
unit Entity; interface uses uJSON; type TEntity = record path:String[255]; oldname:String[255]; modified:String[255]; size:LongInt; removed:Boolean; hash:String[255]; folder:Boolean; public function toJson():UTF8String; function getJsonObj():TJSONObject;...
unit EngineGUI; {$mode objfpc}{$H+} interface uses Classes, SysUtils, EngineTypes, EngineResource, dglOpenGL; type // Every element draws itself from 0,0 (Left, Top) to 1,1 (Right, Bottom) // The shader will do the scaling and stuff { TEngineUIElement } TEngineUIElement = class(TEngineResourceUser) protect...
unit uRegistro54; interface uses Classes, Contnrs, SysUtils, StrUtils, Dialogs, Variants, uInterfaceBase; type TRegistro54 = class(TInterfaceBase) private public constructor Create(); reintroduce; end; const CAMPOS : array[0..14] of String = ('CNPJ', 'MODELO', 'SERIE', 'NUMERO', ...
unit DWRegister; interface uses Classes, Winapi.Windows, SysUtils, Dialogs, DesignEditors, DesignIntf, ToolsAPI, DMForm; type TDWFormModule = class(TCustomModule) public procedure ExecuteVerb(Index: Integer); override; function GetVerb(Index: Integer): string; override; function Ge...
unit f_timetable; {$mode objfpc}{$H+} interface uses Classes, SysUtils, sqldb, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Grids, ExtCtrls, u_metadata, dm_dbconnection, u_sqlquery, f_tableform; type THeader = record id: Integer; Value: String; end; THeaders = array of THeader; {...
unit CmdLineUtils; interface uses Windows, SysUtils, Contnrs, Utils; type TCmdOptions = class(TObject) private FIgnoreIDE: Boolean; FJclPath: string; FKeepFiles: Boolean; FIgnoreBCB: Boolean; FIgnoreDelphi: Boolean; FHelp: Boolean; FLang: string; FAutoUpdate: Boolean; FRegis...
{ ** DelphiPI (Delphi Package Installer) Author : ibrahim dursun (ibrahimdursun gmail) License : GNU General Public License 2.0 ** } unit PackageLoadThread; interface uses Classes, SysUtils, Generics.Collections, PackageInfo, TreeNodes, PackageInfoFactory; type TPackageLoadThread = class(TThread) ...
unit HeaderCustomDrawDemo; // Virtual Treeview sample form demonstrating following features: // - Advanced header custom draw. // Written by Mike Lischke. interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ImgList, VirtualTrees, StdCtrls, ExtCtrls; type THeade...
program PrintFunctionTable; const LEFT_BORDER : integer = -7; RIGHT_BORDER : integer = 3; var intervalBeginning, y , intervalEnding, step : real; width : integer; procedure writeHeader(width : integer); var interval : integer; begin write('╔'); for i : integer := 1 to width + 5 do write(...
unit WIZShipTo; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, BackEnd, StdCtrls, ExtCtrls, Mask, RzLabel, ComCtrls, DB, DBCtrls, DBTables; type TShipToAction = (saNew, saEdit); TfrmWIZShipTo = class(TForm) pgWIZShipTo: TPageControl; pgSheet1: TTabSheet; ...
unit uLibUSBDevice; {$mode objfpc}{$H+} interface uses Classes, SysUtils, libusb, uUsb; type { TLibUSBDevice } TLibUSBDevice = class(TUSBDevice) private FOpen : Boolean; DevHandle: PUSBDevHandle; procedure GetDeviceHandle; public function OpenDevice : Boolean;override;...
Program ReadFile(Results, output); {Echoes the content of an existing file.} Var Results : text; Current : char; {Text files are files of characters.} Begin writeln('About to echo the contents of a file named "Results".'); reset(Results); {Prepare to read the file.} While Not eof(Results) Do Begin {eo...
unit uHistoricoDAO; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,uContaContabilModel,uContaCon...
{******************************************************************************* Title: T2Ti ERP Description: Janela Cadastro de Empresa Cnae The MIT License Copyright: Copyright (C) 2010 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentati...
{----------------------------------------------------------------------------- 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.html...
unit Unmapped; interface uses iodev,config; const BX_BIOS_MESSAGE_SIZE = 80; type bx_unmapped_c = class public constructor Create; destructor Destroy; override; procedure init(d:pbx_devices_c); private s:record port80:Bit8u; port8e:Bit8u; bios_message:...
unit Nathan.GB.Core; interface uses System.Classes, System.SysUtils, System.Rtti, System.TypInfo, System.Generics.Collections; {$M+} {$METHODINFO ON} type /// <summary> /// This are a class that creates a gernieric builder for all properties from <T>. /// Sample: /// var ...
unit uActualiza; interface uses Windows,Forms,ShellApi,SysUtils,DlgMensajes,Classes,DB; Function Ejecuta_Dos(Filename, Parametros, ExecDir : String) : Integer; function GetAppInfo(fName: string):string; Function CheckVerEXE(NombreEXE,VerOK,servidor,Usuario,Password:string):Boolean; Function VerificaVersionExec(App,s...
unit SocketUnit; interface uses Windows, Winsock, CompressionStreamUnit; type TClientSocket = class(TObject) private FAddress: pchar; FData: pointer; FTag: integer; FConnected: boolean; function GetLocalAddress: string; function GetLocalPort: integer; function GetRemoteAddress: string...
unit fBlkCrossingState; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls, BlockCrossing, BlockCrossingLogic; type TF_BlkCrossingState = class(TForm) Label1: TLabel; M_Note: ...