text stringlengths 14 6.51M |
|---|
program test16;
(* Test static scoping *)
var
a, b, c: real;
procedure display(a, b, c: real);
begin
a := a / 10;
b := b / 10;
c := c / 10;
writeln(a, b, c);
end;
function displayFunc(a, b, c: real): real;
begin
a := a / 100;
b := b / 100;
c := c / 100;
writeln(a, b, c);
displayFunc := c;
e... |
{ *************************************************************************** }
{ }
{ Audio Tools Library (Freeware) }
{ Class TID3v1 - for manipulating with ID3v1 tags ... |
unit ClassCities;
interface
uses ExtCtrls, ClassPlayer;
type TCities = class
private
NaTahu : integer;
Koniec : boolean;
Human, Computer : TPlayer;
Table : TTable;
Image : TImage;
FFinish : boolean;
procedure ClearTable;
procedure PaintTable;
pr... |
PROGRAM segiempat;
(* File : segiempat.pas *)
(* membentuk segiempat dengan besar n, rusuk c1, dan isi c2 *)
// KAMUS
VAR
n, i, j : INTEGER;
c1, c2 : CHAR;
outputLine : STRING;
// ALGORITMA
BEGIN
ReadLn (n, c1, c1, c2, c2);
IF ((n <= 0) OR (c1 = c2)) THEN BEGIN
WriteLn('Masukan tidak valid');
END ELSE {-(N >... |
unit ScratchPad;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Grids, StdCtrls,
Math,
SudokuType, DigitSetEditor;
type
{ TScratchForm }
TCopyValuesEvent = procedure(Sender: TObject; Values: TValues) of Object;
TCopyRawDataEvent = procedure(Sender: TObject; R... |
program EnclosureInfo;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, SysUtils, uSMBIOS
{ you can add units after this };
procedure GetEnclosureInfo;
Var
SMBios: TSMBios;
LEnclosure: TEnclosureInformation;
begin
SMBios:=TSMBios.Create;
... |
unit Unit1;
interface
uses
{do exemplo}
REST.JSON, System.IOUtils, System.SysUtils, uValidation,
{do form}
System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Ani,
FMX.Controls.Presentation, FMX.ScrollBox, FMX.Memo, FMX.StdCtrls... |
unit uGitCalls;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, process, StrUtils;
function GitRootPath: string;
function GitBranch: string;
function GitHash: string;
function GitIsModified: boolean;
function GitSvnLatest: string;
implementation
var
fGitRootPath: String;
fGitBranch: string;
fGitHash... |
{ **************************************************************
Package: XWB - Kernel RPCBroker
Date Created: Sept 18, 1997 (Version 1.1)
Site Name: Oakland, OI Field Office, Dept of Veteran Affairs
Developers: Joel Ivey, Brian Juergensmeyer
Description: Contains TRPCBroker and related components.
Unit: fRPCBEr... |
unit vr_xml_utils;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, math, vr_utils, vr_classes, vr_intfs,
RegExpr, laz2_XMLRead, Laz2_DOM, LConvEncoding;
type
TDomElementArray = array of TDOMElement;
function TryReadXMLFile(out ADoc: TXMLDocument; const AFilename: String;
AFlags: TXMLR... |
{*******************************************************}
{ }
{ DelphiWebMVC }
{ }
{ °æÈ¨ËùÓÐ (C) 2019 ËÕÐËÓ(PRSoft) }
{ ... |
unit pviewfrm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
QRPrntr, Quickrpt, ToolWin, ComCtrls, StdCtrls;
type
TPreviewForm = class(TForm)
QRPreview: TQRPreview;
barTool: TToolBar;
btnPrint: TToolButton;
btnPrinter: TToolButton;
edtZoom: TComboB... |
unit Form.MainView;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Form.BaseForm, dxSkinsCore,
dxSkinMetropolis, System.ImageList, Vcl.ImgList, cxGraphics, cxClasses,
cxLookAndFeels, dxSkinsForm, cxControls,... |
inherited dataTeste: TdataTeste
inherited qrySel: TUniQuery
SQLInsert.Strings = (
'INSERT INTO CLIENTES'
' (CODIGO, NOME, FONE)'
'VALUES'
' (:CODIGO, :NOME, :FONE)')
SQLDelete.Strings = (
'DELETE FROM CLIENTES'
'WHERE'
' CODIGO = :Old_CODIGO')
SQLUpd... |
unit ExtensionTypeManager;
interface
uses sysUtils,
Extensions,
ExtensionTypes,
RegExpressions;
type TExtensionTypeManager = class
private
fExtensions : TExtensions;
fExtensionTypes : TExtensionTypes;
fRegExpressions : TRegExpression;
fExceptAndIncludeExpr : TRegExpression;
public
constructor Create... |
unit uServer;
interface
uses System.Classes, uSharedMemoryPoint;
type
TSharedMemoryServer = class(TSharedMemoryPoint)
private
type
TServerThread = class(TThread)
private
type
TServerThreadEvent = procedure of object;
var
OnReceive_,
... |
unit ufTarefa1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, uGeraSql_Controller;
type
TfTarefa1 = class(TForm)
memColunas: TMemo;
memTabelas: TMemo;
memCondicoes: TMe... |
PROGRAM Stat(INPUT, OUTPUT);
VAR
Number, Average, Min, Max, NumbersAmount, Sum: INTEGER;
OverFlow: BOOLEAN;
PROCEDURE ReadDigit(VAR InFile: TEXT; VAR Digit: INTEGER);
VAR
Ch: CHAR;
BEGIN{ReadDigit}
Digit := -1;
IF NOT EOLN(InFile)
THEN
BEGIN
READ(InFile ,Ch);
IF Ch = '0' THEN Di... |
unit LoginatorUnit;
interface
uses SysUtils;
type
TLoginator = class(TObject)
private
target_file : string;
handle : TextFile;
protected
public
constructor Create(file_name:string);
destructor Destroy; override;
procedure Log(logline:string);
published
property Fil... |
unit TypePrice;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Grids, DBGridEh,
DB, ComCtrls, ToolWin;
type
TTypePriceForm = class(TForm)
Panel1: TPanel;
CancelButton: TButton;
OKButton: TButton;
DBGridEh1: ... |
{********************************************}
{ TeeChart Pro Charting Library }
{ Copyright (c) 1995-2004 by David Berneda }
{ All Rights Reserved }
{********************************************}
unit TeeSelectList;
{$I TeeDefs.inc}
interface
uses {$IFDEF CLR}
Classes,
... |
unit AnalogQueryes;
interface
uses
CategoryParametersGroupUnit2, DBRecordHolder,
FireDAC.Comp.Client, QueryGroupUnit2, System.Classes,
UniqueParameterValuesQuery, Data.DB, System.Generics.Collections,
TableWithProgress, DSWrap;
type
TParameterValuesTableW = class(TDSWrap)
private
FID: TFieldWrap;
... |
{**********************************************}
{ TBar3DSeries Component }
{ Copyright (c) 1996-2004 by David Berneda }
{**********************************************}
unit Bar3D;
{$I TeeDefs.inc}
{ This Series component is derived from TBarSeries.
It has a new property: OffsetValues
... |
unit TelaDeSelecao;
interface
uses
System.SysUtils;
type
TTelaDeSelecao = class
public
procedure Tela;
end;
implementation
{ TTelaDeSelecao }
procedure TTelaDeSelecao.Tela;
const
Tela ='-----------------'+ #13#10 +
'Selecione a Loja:' + #13#10 +
'1 - Esfiharia Edmoto' + #13#10 +
'2 -... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC TFDUpdateSQL editor form }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit uEmpresa;
interface
// O Modelo não precisa conhecer ninguem
// Ai esta o interessante do MVC.
// Desta forma o modelo fica desacoplado e podendo ser utilizado por vários controles
uses
Contnrs, // <-- Nesta Unit está implementado TObjectList
MVCInterfaces,uRegistro,uContador;
type
TEmpr... |
{$MODE OBJFPC}
program SlidingWindows;
const
InputFile = 'SWINDOW.INP';
OutputFile = 'SWINDOW.OUT';
max = 1000000;
var
n, m, k: Integer;
P, T: AnsiString;
Pie: array[1..max] of Integer;
CurrentWindowPos: Integer;
Count: Integer;
procedure Enter;
var
f: TextFile;
begin
AssignFile(f... |
{$R-} {Range checking off}
{$B+} {Boolean complete evaluation on}
{$S+} {Stack checking on}
{$I+} {I/O checking on}
{$N-} {No numeric coprocessor}
{$M 65500,16384,655360} {Turbo 3 default stack and heap}
program TEXFILT;
{
Strip non-printable chars from text file. Leaves TAB.
Alters a text file <f... |
{ *********************************************************** }
{ * TForge Library * }
{ * Copyright (c) Sergey Kasandrov 1997, 2016 * }
{ *********************************************************** }
unit tfKeyStreams;
interface
{$I TFL.inc}
uses tfTypes, tfUt... |
PROGRAM AverageScore(INPUT, OUTPUT);
CONST
NumberOfScores = 4;
ClassSize = 4;
TYPE
Score = 0 .. 100;
VAR
WhichScore: 1 .. NumberOfScores;
Student: 1 .. ClassSize;
NextScore: Score;
Ave, TotalScore, ClassTotal: INTEGER;
SecondName: TEXT;
Ch: CHAR;
BEGIN {AverageScore}
ClassTotal := 0;
... |
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.StdCtrls, FMX.Controls.Presentation, FMX.Edit, System.Rtti,
FMX.Grid.Style, FMX.Grid, FMX.ScrollBox, FMX.ListBox, FMX.Layouts, FMX.ComboEd... |
unit uFastParser;
{$I ..\Include\IntXLib.inc}
interface
uses
{$IFDEF DELPHI}
Generics.Collections,
{$ENDIF DELPHI}
uParserBase,
uDigitOpHelper,
uIMultiplier,
uMultiplyManager,
uIParser,
uConstants,
uXBits,
uStrRepHelper,
uDigitHelper,
uIntX,
uIntXLibTypes;
type
/// <... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
Spin, Buttons;
type
{ TForm1 }
TForm1 = class(TForm)
bmbReset: TBitBtn;
btnDivideIntMod: TButton;
btnAddInt: TButton;
btnSubtractInt: TButton;
btnMultiplyInt: TButt... |
{ Routines for opening and closing a use of the CAN library.
}
module can_open;
define can_init;
define can_open;
define can_close;
%include 'can2.ins.pas';
{
********************************************************************************
*
* Subroutine CAN_INIT (CL)
*
* Initialize the CAN library state CL. Sys... |
namespace RemObjects.Elements.System;
interface
uses
Foundation;
type
TaskState = enum(Created, Queued, Started, Done) of Integer;
TaskBlock = public block();
TaskBlockGen<T> = public block(): T;
TaskCompletionSource<T> = public __ElementsTaskCompletionSource<T>;
Task = public __ElementsTa... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
unit frmMain;
interface
u... |
unit Chocolatey;
{$mode objfpc}{$H+}
interface
uses
Classes, Process, SysUtils;
type
{ TChocolatey }
TChocolatey = class
public
function Search(AString: String): String;
procedure DivideLines(AString: String; AList: TStringList);
function PackageInfo(AString: String): String;
end;
implement... |
unit DX.Messages.Dialog.Listener.FMX;
interface
uses
System.Classes, System.SysUtils,
DX.Messages.Dialog.Listener, DX.Messages.Dialog;
type
TMessageDialogListener = class(TMessageDialogListenerBase)
strict protected
procedure ShowMessageDialog(const AMessageRequest: TMessageDialogRequest); override;
pu... |
unit mergevertices;
//this function merges nearby vertices as a single vertex
// due to rouding errors, meshes can exhibit gaps and tears creating non-manifold meshes
// this code merges vertices that are within a given radius (the tolerance)
// if the tolerance is zero, only identical vertices are merged
// if the tol... |
{
Double Commander
-------------------------------------------------------------------------
File types colors options page
Copyright (C) 2006-2016 Alexander Koblov (alexx2000@mail.ru)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General ... |
unit MAIN;
interface
uses
Forms, ImgList, Controls, StdActns, Classes, ActnList, Dialogs, Menus,
ComCtrls, ToolWin, Utils;
// Windows, SysUtils, Graphics,
// StdCtrls, Buttons, Messages, ExtCtrls,
type
TMainForm = class(TForm)
MainMenu1: TMainMenu;
File1: TMenuItem;
FileNewItem: TM... |
unit Main.Controller;
interface
uses
AnnotatedImage, Annotation.Interfaces, SysUtils, Classes, Generics.Collections,
Vcl.Graphics, Controls, Vcl.StdActns, Vcl.ExtCtrls, StdCtrls, Settings;
type
TAnnotatedImageController = class(TObject)
private
FView: IImageAnnotationView;
FPresentMode: TPresentMode... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit Teste.Build.Builder;
interface
uses
DUnitX.TestFramework, System.JSON, Vigilante.Compilacao.Model;
type
[TestFixture]
TBuildBuilderTest = class
private
FJson: TJsonObject;
FBuild: ICompilacaoModel;
procedure CarregarJSONDoArquivo;
public
[Setup]
procedure Setup;
[TearDown]
... |
{
@html(<b>)
Client Module for Remote Functions
@html(</b>)
- Copyright (c) Danijel Tkalcec
@html(<br><br>)
This unit introduces @Link(TRtcClientModule), the client-side component for ENABLING remote functions.
By using @Link(TRtcClientModule), you can easily call remote server functions and get results
... |
{**********************************************************}
{ }
{ TinyDB Database Engine }
{ Version 2.94 }
{ }
{ Author: Day... |
{ *********************************************************************** }
{ }
{ Copyright (c) 2003 Borland Software Corporation }
{ }
{ Written by: Ri... |
// **************************************************************************************************
// Delphi Aio Library.
// Unit Hub
// 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 L... |
unit PE_Def;
interface
(*************************************************************************
DESCRIPTION : Win32 PE file definitions
REQUIREMENTS : TP5-7, D1-D7/9-10, FPC, VP, WDOSX
EXTERNAL DATA : ---
MEMORY USAGE : ---
DISPLAY MODE : ---
REFERENCES : o Joha... |
unit caTreeView;
{$INCLUDE ca.inc}
interface
uses
// standard Delphi units...
SysUtils,
Classes,
Windows,
Messages,
Graphics,
Controls,
ComCtrls,
CommCtrl,
ExtCtrls,
// ca units...
caClasses,
caUtils,
caLog,
caNodes;
type
//---------------------------------------------------------... |
unit xThreadUDPSendScreen;
interface
uses System.Types,System.Classes, xFunction, system.SysUtils, xUDPServerBase,
xConsts, System.IniFiles, winsock, Graphics,
xThreadBase, xProtocolSendScreen, Vcl.Imaging.jpeg;
type
TThreadUDPSendScreen = class(TThreadBase)
private
FStream1 : TMemoryStream... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit GdsData;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs,
Buttons, StdCtrls, ExtCtrls, Grids, DBGrids, DB, DBTables, Mask,
DBCtrls, GdsStd;
type
TStdDataForm = class(TGDSStdForm)
StdCtrlPanel: TPanel;
FilterOnRadioGroup: TRadioGroup;
Orders: TTable;
... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
{ osc1.c
Objects oscillati... |
unit uTelegramAPI;
interface
uses
uTelegramAPI.Interfaces, uConsts, System.Net.HttpClientComponent,
System.SysUtils, System.Classes, System.Net.Mime, System.JSON,
uClassMessageDTO, Rest.JSON, Rest.JSON.Types;
// UnixToDateTime(1605808194) DateUtils
type
TTelegramAPI = Class(TInterfacedObject, iTelegramAPI)
... |
{ This file is part of CodeSharkFC
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
mean... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit Dm.Acesso;
interface
uses
System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, Data.DB,
FireDAC.Comp.DataSet, FireDAC.Comp.Client;
type
TDmAcesso = class(TD... |
unit Model.Base.Impl;
interface
uses
System.Classes, Model.Base.Intf;
type
TModelBase = class(TInterfacedObject, IModelBase)
private
FGUID: TGUID;
public
constructor Create;
function GetId: TGUID;
procedure DefinirID(const AID: TGUID);
end;
implementation
uses
System.SysUtils;
construc... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLSound<p>
Base classes and interface for GLScene Sound System<p>
<b>History : </b><font size=-1><ul>
<li>24/04/11 - Yar - Bugfixed TGLSoundSample.Assign (thanks to Anonymous)
<li>06/06/10 - Yar - Fixed warnings
<li... |
UNIT LD_INT;
INTERFACE
TYPE
lista = ^reg;
reg = record
d : integer;
ant : lista;
sig : lista;
end;
VAR
c : Char;
p : ^Integer;
{appends the element to the end of the list}
procedure L_ADD(var L:lista; e: integer);
{appends the element at given position}
procedur... |
{*********************************************************************
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Autor: Brovin Y.D.
* E-mail: y.brovin... |
unit RootObject;
interface
type
// общий предок всех классов переключаемых в рантайме объектов:
// TVclCanvas, TGdiPlusCanvas, TStraightWalker, TCurveWalker
TRootObject = class(TInterfacedObject)
constructor Create; virtual; abstract;
end;
TRootClass = class of TRootObject;
implementation
end.
|
unit CurrencyUnit;
interface
uses
CurrencyInterface, System.Classes, System.Generics.Collections;
type
TMyCurrency = class(TObject, ICurrency)
strict private
private
class var Instance: TMyCurrency;
var
FDictionary: TDictionary<Cardinal, Double>;
FRefCount: Integer;
function GetKey(Currenc... |
unit BufferList;
interface
procedure Register;
implementation
uses Windows, Classes, SysUtils, ToolsAPI, Menus, Forms, Dialogs, Controls,
BufferListForm, BaseBindings, SaveKeyMacro, ActiveX;
type
TBufferList = class(TNotifierObject, IUnknown, IOTANotifier,
IOTAKeyboardBinding)
procedure BufferListProc(... |
unit Main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
FrameLogin, FrameOfferRegisterUser,
FrameRegisterUser, FrameDialogs, DataBases, Transports;
type
{ TMainForm }
TMainForm = class(TForm)
procedure FormCreate(Sender: TObject);
private
... |
{*******************************************************************************
* *
* TkToolbar - Toolbar with form stack/transitions awareness *
* ... |
unit IM.App;
{$IFDEF FPC}
{$mode delphi}
{$ENDIF}
interface
uses
Classes, SysUtils,
JPL.Console, JPL.ConsoleApp, JPL.CmdLineParser, JPL.TStr, JPL.Conversion, JPL.FileSearcher,
IM.Types, IM.Procs;
type
TApp = class(TJPConsoleApp)
private
public
procedure Init;
procedure Run;
procedure ... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2015-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: FVectorEditor<p>
Editor for a vector.<p>
<b>Historique : </b><font size=-1><ul>
<li>05/10/08 - DanB - Removed Kylix support
<li>29/03/07 - DaStr - Renamed LINUX to KYLIX (BugTrackerID=1681585)
<li>03/07/04 - LR ... |
unit uWNJVioThread;
interface
uses
System.Classes, SysUtils, ActiveX, uGlobal;
type
TWNJVioThread = class(TThread)
private
function GetSecondPic(hphm, hpzl, picUrl: String; wfsj: TDateTime): String;
function Getpic(sql, picUrl: String): String;
function SaveVio(cjjg, hphm, hpzl, wfsj, wfdd, tp1, tp... |
unit AEstagioProducao;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
Componentes1, ExtCtrls, PainelGradiente, Localizacao, StdCtrls, Mask,
DBCtrls, Tabela, DBKeyViolation, Db, DBTables, CBancoDados, Buttons,
BotaoCadastro, Grids, DBGrids, DBClien... |
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://localhost:8080/wsdl/ISetExamState
// >Import : http://localhost:8080/wsdl/ISetExamState>0
// Version : 1.0
// (05/... |
unit frmUserGroupList;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Actions, Vcl.ActnList,
Vcl.XPStyleActnCtrls, Vcl.ActnMan, Vcl.Menus, Vcl.ComCtrls,uUserInfo;
type
TfUserGroupList = cla... |
{$R-}
{$Q-}
unit ncEncRc6;
// To disable as much of RTTI as possible (Delphi 2009/2010),
// Note: There is a bug if $RTTI is used before the "unit <unitname>;" section of a unit, hence the position
{$IF CompilerVersion >= 21.0}
{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
{$ENDIF}... |
unit binsearch_range_1;
interface
implementation
type
TIntArray = array of Integer;
function SearchInRange(const Values: TIntArray; const Value: Integer; out FoundIndex: Integer): Boolean;
var
L, H: Integer;
mid, cmp: Integer;
LastState: (ssNone, sLess, sGreater);
begin
Result := False;
L := 0;
H := L... |
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit caMarkup;
{$INCLUDE ca.inc}
interface
uses
Windows,
Messages,
SysUtils,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
StdCtrls,
caClasses,
caUtils,
// caUtils,
caGraphics;
type
//---------------------------------------------------------------------------
// IcaHTMLElement
//------... |
unit ncJob;
{
ResourceString: Dario 13/03/13
}
interface
uses
SysUtils,
DB,
MD5,
Dialogs,
Classes,
Windows,
ClasseCS,
ncClassesBase;
type
TncJob = class ( TncClasse )
private
FPrinterIndex : Integer; // index of printer in Printer.Printers
FPrinterName : String ; // printers devi... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ BDE Provider }
{ }
{ Copyright (c) 1997, 1... |
unit PlotControls;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, Grids,
Plots;
type
TGraphGrid = class(TCustomGrid)
private
FGraph: TGraph;
FAlternateRows: Boolean;
procedure SetGraph(Value: TGraph);
procedure AdjustColSizes;
protected
procedure Resize; override;
... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit BCEditor.Editor.InternalImage;
interface
uses
Graphics;
type
TBCEditorInternalImage = class(TObject)
strict private
FCount: Integer;
FHeight: Integer;
FImages: Graphics.TBitmap;
FWidth: Integer;
function CreateBitmapFromInternalList(AModule: THandle; const Name: string): ... |
//
// uUIShowings.pas
// TestAnim
// 子控件切换显示时渐变的动态效果
//
// Created by SunSeed on 14-11-1.
// Copyright (c) 2014年 SunSeed. All rights reserved.
//
unit uUIShowings;
interface
uses
Classes, Messages, Controls, Types, windows, Graphics, Forms, SysUtils;
procedure PrepareForAnimation(AHideView: TWinControl);
... |
unit DW.SMSReceiver.Android;
interface
uses
Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.Provider, Androidapi.JNI.Telephony,
DW.MultiReceiver.Android, DW.SMSMessage.Types;
type
TSMSReceiver = class(TMultiReceiver)
private
FOnMessagesReceived: TSMSMessagesEvent;
procedure DoMessa... |
unit uxPLRFXMessages;
interface
Uses uxPLRFXConst, u_xPL_Message, Classes;
type
TxPLRFXMessages = class // contains a list of xPL Messages
private
FItems : TList;
function GetxPLMessage(Index : Integer) : TxPLMessage;
public
property Items[Index : Integer] : TxPLMessage read GetxPLM... |
program Sample;
uses crt;
var ch : char;
begin
WriteLn('Waiting for key press');
while not KeyPressed() do
begin
Delay(1);
end;
ch := ReadKey;
WriteLn('Got character: ', ch);
end.
|
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC ODBC MS Access driver }
{ }
{ Copyright(c) 2004-2018 Embar... |
{ This unit is a drop in replacement to build-in unit crt }
Unit MyCrt;
Interface
Uses Windows, Math;
Const
Black: Integer = 0;
Blue: Integer = 1;
Green: Integer = 2;
Red: Integer = 4;
Gray: Integer = 8;
Aqua: Integer = 3;
Purple: Integer = 5;
Yellow: Integer = 6;
LightGray: Integer = 7;
LightBlue: Integer = 9;
LightG... |
unit vclutils;
interface
uses vcl.stdctrls, vcl.controls, vcl.ComCtrls, vcl.graphics, system.Types;
type
TControlProc = reference to procedure(const AControl: TControl);
procedure SetButtonMultiline(b: TButton);
procedure ModifyControl(const AControl: TControl; const ARef: TControlProc);
procedure PageControl... |
unit PlayerSubtitleExtractors;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Process, PlayerThreads, PlayerSessionStorage;
type
{ TPlayerExtractorService }
TPlayerExtractorService = class
private
FProcess: TProcess;
public
procedure StopProcess;
property Process: TProcess read FProc... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit Phistfrm;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, Types, DB, DBTables, Grids, ComCtrls,
ExtCtrls;
type
THistorySummaryForm = class(TForm)
AssessmentNotesTable: TTable;
Panel1: TPanel;
HistoryPageControl: TPageCont... |
unit Thread.Trim;
interface
uses
Classes, SysUtils,
TrimList, Thread.Trim.Helper.List;
type
TTrimStage = (Initial, InProgress, Finished, Error);
TTrimThread = class(TThread)
private
class var InnerTrimStage: TTrimStage;
ListTrimmer: TListTrimmer;
public
class property TrimStage: TTrimStage ... |
unit adot.VCL.MVC;
interface
uses
Vcl.Forms,
System.Classes;
type
{
Example:
*******************************************************************************
Sets.Model.pas / Sets.Model.dfm
TSetsDM = class(TDataModule, IModel)
...
end;
var
SetsDM: TSetsDM;
***... |
unit SHA512;
{512 bit Secure Hash Function}
interface
(*************************************************************************
DESCRIPTION : SHA512 - 512 bit Secure Hash Function
REQUIREMENTS : TP5-7, D1-D7/D9-D10/D12/D17-D18/D25S, FPC, VP
EXTERNAL DATA : ---
MEMORY USAGE : ... |
unit IdThreadMgrPool;
interface
uses
Classes,
IdThread, IdThreadMgr;
type
TIdThreadMgrPool = class(TIdThreadMgr)
protected
FPoolSize: Integer;
FThreadPool: TList;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function GetThread: TIdThread; overri... |
(* Autor: Atanas Kerezov
Date: 5.11.2012
Description:
Program prints set of question and
expect aswer after each and save it
into file.
Version:
1.0 only two question: 'How do you do?, 'What are you doing?'
2... |
{**************************************************************************************************}
{ }
{ Project JEDI Code Library (JCL) }
{ ... |
unit MyTools;
// Вспомогательные функции
// (c) 2004-2010 Петроченко Н.Ю.
interface
uses SysUtils, Classes, Dialogs;
type TBuffer = array of Char;
procedure ErrorMessage(Msg: string);
function AddBackslash(const S: String): String;
function RemoveBackslash(const S: String): String;
function RemoveBac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.