text stringlengths 14 6.51M |
|---|
unit inline_method_2;
interface
implementation
type
TRec = record
FD1: Int32;
FD2: Int32;
procedure SetData(D1, D2: Int32); inline;
end;
procedure TRec.SetData(D1, D2: Int32);
begin
FD1 := D1;
FD2 := D2;
end;
var R: TRec;
procedure Test;
begin
R.SetData(12, 13);
end;
initialization
T... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLSLBumpShader<p>
A GLSL shader that applies bump mapping.<p>
<b>History : </b><font size=-1><ul>
<li>16/03/11 - Yar - Fixes after emergence of GLMaterialEx
<li>20/10/10 - Yar - Bugfixed memory leak
<li>23/08/10 -... |
{******************************************}
{ TeeChart Pro VML Canvas and Exporting }
{ VML : Vector Markup Language }
{ Copyright (c) 2001-2004 by David Berneda }
{ All Rights Reserved }
{******************************************}
unit TeeVMLCanvas;
{$I TeeDefs.inc}
interface
us... |
unit Unit1;
interface
uses
System.SysUtils, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,
//GLS
GLScene, GLObjects, GLTeapot, GLTexture, GLPhongShader,
GLWin32Viewer, GLAsyncTimer, GLCadencer, GLCustomShader,
GLAsmShader, GLCrossPlatform, GLMaterial, GLCoordin... |
unit Test.Devices.Mercury.ReqCreator;
interface
uses TestFrameWork, GMGlobals, Classes, SysUtils, Devices.Mercury, Math, Test.Devices.Base.ReqCreator,
GMConst, DateUtils, Windows;
type
TMercury230ReqCreatorForTest = class(TMercury230ReqCreator)
protected
procedure CheckDevStates; override;
function ... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLSLPostBlurShader <p>
A shader that blurs the entire scene.<p>
<b>History : </b><font size=-1><ul>
<li>22/04/10 - Yar - Fixes after GLState revision
< Added GLVectorTypes to uses
<li>16/04/07... |
unit PowerSupplyControl;
interface
uses
Windows, Messages, SysUtils, Classes, forms, UPSH_3610_Const;
type
TBaudRate = (br9600, br4800, br2400, br1200);
TStopBits = (sbOne, sbOne5, sbTwo);
TPSState = record
Voltage: Real;
Current: Real;
Power: Real;
VoltLim: Integer;
CurrLim: ... |
{
Bipartite Maximum Independent Set
Matching Method O(N3)
Input:
G: UnDirected Simple Bipartite Graph
M, N: Number of vertices
Output:
I1[I]: Vertex I from first part is in the set
I2[I]: Vertex I from second part is in the set
IndSize: Size of independent set
Reference:
West
By Behdad
}
program
... |
{Implementation of Buffer with capacity = 2 and without priority}
Unit Buffer;
Interface
type
p_Buffer = ^BufferObj;
BufferObj = object
private
{capacity of Buffer}
capacity : longint;
{length Of Buffer}
indBuf : longint;
{massive number and time of Source in Buffer according}
masBufN ... |
{-----------------------------------------------------------------------------
The contents of this file are subject to the GNU General Public 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.gnu.org/copyleft/gpl... |
unit uLogs;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls;
type
TfLogs = class(TForm)
TorLogs: TMemo;
BypasserLogs: TMemo;
Splitter1: TSplitter;
Label1... |
unit Unit1;
interface
uses
System.SysUtils, System.Classes,
Vcl.Controls, Vcl.Forms, Vcl.ComCtrls, Vcl.ExtCtrls, Vcl.StdCtrls, Vcl.Buttons,
//GLS
GLScene, GLObjects, GLVectorGeometry, GLCadencer, GLBehaviours, GLGraph, GLMovement,
GLWin32Viewer, GLCrossPlatform, GLCoordinates, GLBaseClasses, GLUt... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
{***************************************************************************
*
* Orion-project.org Lazarus Helper Library
* Copyright (C) 2016-2017 by Nikolay Chunosov
*
* This file is part of the Orion-project.org Lazarus Helper Library
* https://github.com/Chunosov/orion-lazarus
*
* This Library is free soft... |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
object frmGeneratorEditor: TfrmGeneratorEditor
Left = 365
Top = 225
BorderStyle = bsDialog
Caption = 'frmGeneratorEditor'
ClientHeight = 212
ClientWidth = 274
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
... |
unit IdStack;
interface
uses
Classes,
IdException,
IdStackConsts, IdGlobal;
type
TIdServeFile = function(ASocket: TIdStackSocketHandle; AFileName: string):
cardinal;
TIdStackVersion = class
protected
FMaxUdpDg: Cardinal;
FMaxSockets: Cardinal;
FVersion: Word;
FLowVersion: Word;
F... |
{ Embarcadero Delphi Visual Component Library }
{ InterBase Express core components }
{ }
{ Copyright (c) 1998-2017 Embarcadero Technologies, Inc.}
{ All rights reserved }
... |
program yeehaacli;
{$mode objfpc}{$H+}
uses
cthreads,
SysUtils,
fpjson,
fgl,
Yeehaa;
const
ListenPort = 9999;
type
TBulbInfos = specialize TFPGMap<String,TBulbInfo>;
{ THandler }
THandler = class
FBulbInfos: TBulbInfos;
FConn: TYeeConn;
private
procedure DisplayConnectionError(con... |
{
This unit is part of the Lua4Delphi Source Code
Copyright (C) 2009-2012, LaKraven Studios Ltd.
Copyright Protection Packet(s): L4D014
www.Lua4Delphi.com
www.LaKraven.com
--------------------------------------------------------------------
The contents of this file are subject to the Mozilla P... |
unit SSHCommand;
{
unit : SSHCommand.pas
Author : tmaxeiner <tmaxeiner@maxeiner-computing.de>
License : MIT, see License file
Version : 0.1
}
interface
uses
System.SysUtils,
shellapi,
Winapi.Windows;
type
TSSHCommand = record
strict private
FSSHClient : string;
... |
{ *********************************************************************** }
{ }
{ Copyright (c) 2003 Borland Software Corporation }
{ }
{ Written by: Ri... |
unit CrcUnit;
interface
uses
Classes;
type
TCRCProgress = procedure(const aCurrent, aMax: Int64);
const
cBufferSize = $FFFF; //64 * 1024;
{ === CRC-32-IEEE 802.3 Polynomial (Reversed) 0xEDB88320 =================== }
procedure CRC32(var aCrc32: Cardinal; BufPtr: Pointer; Len: Cardinal);
... |
(*
AVR Basic Compiler
Copyright 1997-2002 Silicon Studio Ltd.
Copyright 2008 Trioflex OY
http://www.trioflex.com
*)
unit
MStrings;
{$N+}
interface
uses
{$IFDEF Win32}
SysUtils
{$ELSE}
Objects,
Strings
{$ENDIF};
const
HexNum: PCHAR = '0123456789ABCDEF';
const
MaxChar = 512... |
unit caMemMapImage;
{$INCLUDE ca.inc}
interface
uses
Windows,
Messages,
SysUtils,
Classes,
Graphics,
Controls,
caControls;
type
TcaBMPFilename = type string;
//----------------------------------------------------------------------------
// TcaMemMapImage ... |
unit FrmMain;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ComCtrls, Toolsapi, Menus;
type
TForm2 = class(TForm)
PageControl1: TPageControl;
TabSheet1: TTabSheet;
Label1: TLabel;
Label2: TLabel;
ListBox1: TListBox;
ListBox2: TListBox... |
unit MasterMind.View.Mock;
{$IFDEF FPC}{$MODE DELPHI}{$ENDIF}
interface
uses
MasterMind.API;
type
TPreviousGuessesProc = procedure(const PreviousGuesses: TPreviousGuesses) of object;
IGameViewMock = interface
['{E6FBEA3B-01F7-41AA-8BA4-A374323C39A5}']
procedure SetOnStartRequestGuess(const Value: TPr... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2016-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit EditAddDelSQL;
interface
uses
Winapi.Windows, Winapi.Messages,
System.SysUtils, System.Variants, System.Classes, System.ImageList,
System.Rtti, System.Bindings.Outputs, System.Actions,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
Vcl.ActnList, Vcl.WinXPan... |
unit rhlMurmur2_64;
interface
uses
rhlCore;
type
{ TrhlMurmur2_64 }
TrhlMurmur2_64 = class(TrhlHashWithKey)
private
const
CKEY: DWord = $C58F1A7B;
M: QWord = $C6A4A7935BD1E995;
R: Integer = 47;
var
m_key,
m_working_key: DWord;
m_h: QWord;
p... |
unit TestDeref;
interface
implementation
uses
Classes;
type
TAmoeba = class;
PTAmoeba = ^TAmoeba;
TAmoeba = class(TObject)
private
fsName: string;
function GetName: string;
procedure SetName(const Value: string);
function GetStuff(const psIndex: string): TAmoeba;
pr... |
{
Version 12
Copyright (c) 2011-2012 by Bernd Gabriel
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 limitation the rights to
use, copy, modify, merge, pu... |
{
$Id: SQLite3Utils.pas 10 2010-02-13 05:37:54Z yury@plashenkov.com $
Complete SQLite3 API translation and simple wrapper for Delphi and FreePascal
Copyright © 2010 IndaSoftware Inc. and contributors. All rights reserved.
http://www.indasoftware.com/fordev/sqlite3/
SQLite is a software library that implemen... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ Interface Invoker Support }
{ }
{ Copyright(c) 1995-2011 Embar... |
unit SimpleInterface;
interface
uses
System.Classes,
System.Generics.Collections,
Data.DB,
System.TypInfo,
{$IFNDEF CONSOLE}
{$IFDEF FMX}
FMX.Forms,
{$ELSE}
Vcl.Forms,
{$ENDIF}
{$ENDIF}
System.SysUtils;
type
iSimpleDAOSQLAttribute<T : class> = interface;
iSimpleDAO<T : class... |
{
Main configuration form implemetation.
See Simulator.dpr comments to uderstand how to interact with it.
LICENSE:
Copyright 2015-2021 Michal Petrilak, Jan Horacek
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may ob... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, Grids;
type
{ TForm1 }
TForm1 = class(TForm)
MainMenu1: TMainMenu;
MenuItem1: TMenuItem;
MenuItem10: TMenuItem;
MenuItem2: TMenuItem;
MenuItem3: TMenuItem;
MenuItem4... |
unit JSONUtils;
interface
uses
System.JSON, Winapi.Windows;
type
IJSONUtils = interface
['{13E2E283-DC11-4B27-A936-51D72C20875E}']
procedure SetJSONProperty(const Value: TJSONPair);
function getProperty(const AProperty, AJSON: string): IJSONUtils;
function getChildProperty(const AParent, AProper... |
unit TDevRopcks.Util.Background;
interface
uses
FMX.Objects,
FMX.Types,
System.UITypes,
System.Classes;
type
TBackground = class
private
class var
FBackground : TRectangle;
FActionPosHide : TNotifyEvent;
class procedure Click(Sender: TObject);
public
class proce... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLFileZLIB<p>
<b>History : </b><font size=-1><ul>
<li>04/02/15 - PW - Changed using GLSZLibEx to System.ZLib
<li>22/08/10 - DaStr - Removed warnings, converted comments from Unicode to ASCII
<li>04/06/10 - Yar - Added ... |
unit Ths.Erp.Database.Table.PersonelDilBilgisi;
interface
{$I ThsERP.inc}
uses
SysUtils, Classes, Dialogs, Forms, Windows, Controls, Types, DateUtils,
FireDAC.Stan.Param, System.Variants, Data.DB,
Ths.Erp.Database,
Ths.Erp.Database.Table,
Ths.Erp.Database.Table.AyarPrsYabanciDil,
Ths.Erp.Database.Table.A... |
unit ArrayNodeReader;
interface
uses BaseNodeReader, GMGlobals, SysUtils;
type
TArrayNodeReader = class(TBaseNodeReader)
public
procedure ReadChildren(ID_Node: int); override;
procedure AddNew(ID_Parent: int; p: PVTNodeData); override;
procedure NewCaption(p: PVTNodeData); override;
procedure Del... |
unit Getter.DriveList.Removable;
interface
uses
Windows,
Getter.DriveList;
type
TRemovableDriveListGetter = class sealed(TDriveListGetter)
protected
function GetDriveTypeToGet: TDriveSet; override;
end;
implementation
function TRemovableDriveListGetter.GetDriveTypeToGet: TDriveSet;
begin
result := ... |
unit ServerMethodsUnit1;
interface
uses System.SysUtils,
System.Classes,
Datasnap.DSServer,
Datasnap.DSAuth;
type
{$METHODINFO ON}
TServerMethods1 = class(TComponent)
private
{ Private declarations }
public
{ Public declarations }
{
function EchoString(Value: str... |
unit uPrincipal;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, frxClass, Vcl.Menus,
System.Actions, Vcl.ActnList, frxExportPDF, frxDBSet;
type
TfPrincipal = class(TForm)
Button... |
unit FC.Trade.Trader.PipsRSI;
{$I Compiler.inc}
interface
uses
Classes, Math,Contnrs, Forms, Controls, SysUtils, BaseUtils, ActnList, Properties.Obj, Properties.Definitions,
StockChart.Definitions, StockChart.Definitions.Units, Properties.Controls, StockChart.Indicators,
Serialization, FC.Definitions, FC.Trade.... |
unit AddEditLanLeituraHidrometro;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, AddEditPadrao2, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters,
Menus, FMTBcd, DB, DBClient, Provider, SqlExpr, StdCtrls, cxButtons, ExtCtrls,
cxControls, cxContainer... |
{
@html(<b>)
Trashcah
@html(</b>)
- Copyright (c) Danijel Tkalcec
@html(<br><br>)
Garbage collection used by the RTC SDK to avoid destroying objects which
need to remain in memory until all other things have been destroyed.
@exclude
}
unit rtcTrashcan;
{$INCLUDE rtcDefs.inc}
interface
uses
SysUti... |
(*
* Copyright(c) 2019 Embarcadero Technologies, Inc.
*
* This code was generated by the TaskGen tool from file
* "ILINK32Task.xml"
* Version: 26.0.0.0
* Runtime Version: v4.0.30319
* Changes to this file may cause incorrect behavior and will be
* overwritten when the code is regenerated.
*)
unit ILinkStrs;... |
unit NetDEVSDK;
interface
uses System.Classes, System.SysUtils, Winapi.Windows, System.IOUtils;
const
NETDEVSDK_DLL = 'NetDEVSDK.DLL';
DEFAULT_CHANNEL = 1;
NETDEV_LEN_64 = 63;
ERROR_CODE: array [0 .. 157, 0 .. 1] of string = //
(('0', 'Succeeded'), //
('-1', 'Failed'), //
('1', 'Co... |
{Ejercicio 10
Realice las funciones de una calculadora simple. Los datos de entrada serán una secuencia de dígitos decimales
y los operadores +, *, / y -, seguida de un signo =. Los operadores se aplican en el orden en que aparecen en
los datos de entrada, y producen resultados enteros, o sea, si bien se ingresa el o... |
unit Dialogs4D.Modal.Confirm;
interface
uses Dialogs4D.Modal.Intf;
type
TDialogModalConfirm = class(TInterfacedObject, IDialogModalConfirm)
private
/// <summary>
/// Displays a dialog box for the user with a question.
/// </summary>
/// <param name="Content">
/// Question to be displayed ... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC SAP SQL Anywhere metadata }
{ }
{ Copyright(c) 2004-2018 Embar... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit uAtividadesCRUD;
interface
uses
Windows, SysUtils, Classes, Controls, Forms, ComCtrls, uDAO,FireDAC.Comp.Client,uControle;
type
TAtividadesCRUD = class
private
FCodigo: String;
FNome: String;
// Classe de Persistencia ...
Fcontrole: TControle;
public
constructor Create(pConex... |
unit Parameter;
interface
uses
SysUtils,
OS.ServiceController, IdentifyDiagnosis, SemiAutoTrimmer;
type
TParameter = class
private
ServiceController: TServiceController;
procedure DeleteNaraeonSSDToolsServices;
procedure OpenStopDeleteService(const ServiceName: String);
procedure DiagnoseAndS... |
unit Tests.TCommandAction;
interface
uses
DUnitX.TestFramework,
System.Classes,
System.SysUtils,
Pattern.Command,
Pattern.CommandAction,
Vcl.StdCtrls,
Vcl.Forms;
{$M+}
type
[TestFixture]
TestCommandAction = class(TObject)
private
fOwnerComponent: TComponent;
fStringList: TStringList;
... |
unit ncaFrmTipoNF;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxLookAndFeels,
cxLookAndFeelPainters, Vcl.Menus, cxControls, cxContainer, cxEdit,
Vcl.StdCtrls, cxRadioGroup, cxLabel, cxButtons... |
unit Threads.ObjectOnline;
interface
uses Windows, sysUtils, GMConst, GMGlobals, GMGenerics, Threads.Base, GMSqlQuery;
type
TObjectOnlineState = class
ID_Obj, ObjType, N_Car: int;
utOnline, utLastSaved: DWORD;
function UpdateQuery(): string;
end;
TObjectOnlineThread = class(TGMThread)
private
... |
{**********************************************}
{ TDBChart for QuickReport }
{ Copyright (c) 1996-2004 by David Berneda }
{ All Rights Reserved }
{**********************************************}
unit QrTee;
{$I TeeDefs.inc}
interface
uses
Windows, Messages, SysUtils... |
unit uTestText;
interface
uses
DUnitX.TestFramework, uText, uTestUtils;
type
[TestFixture]
TTextTest = class(TObject)
public
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
[Test]
procedure TestCreate;
[Test]
procedure TestCopy;
[Test]
procedure TestLen;
... |
{diamond.pas}
program diamond;
var
n, k, h, i: integer;
begin
{enter number in valid format}
repeat
writeln('Enter the diamond''s height (positive odd): ');
readln(h)
until (h > 0) and (h mod 2 = 1);
n := h div 2;
{print top part}
for k := 1 to n + 1 do
begin
for i := 1 to n + 1 - k do
write(... |
unit xExamControl;
interface
uses xClientInfo, System.SysUtils, System.Classes, xFunction, System.IniFiles,
xTCPServer, xStudentInfo, xConsts, xClientType, xStudentControl, Vcl.Dialogs,
Vcl.Forms, Windows;
type
/// <summary>
/// 控制类
/// </summary>
TExamControl = class
private
FClientL... |
unit CrossBoardPrint;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Buttons, Math;
type
TCrossBoardPrintForm = class(TForm)
lblDrl_no: TLabel;
btn_Print: TBitBtn;
btn_cancel: TBitBtn;
cboDrl_no: TComboBox;
procedure Fo... |
PROGRAM TestWindows;
(* A demo program for the WINDOWS unit *)
USES Crt, Windows;
CONST NewLine : string[2] = ^M^J;
Esc : char = ^[;
VAR Str: array[1..3] of string[50];
NumWindows : byte;
Key : char;
Error : boolean;
begin
Str[1] := ' This is the first window opened...';
Str[2] := ' Th... |
{**********************************************************************
GnouMeter is a meter which can display an integer or a float value (Single).
Just like a progress bar or a gauge, all you have do do is to define
the Minimum and maximum values as well as the actual value.
Above the meter, one can display the ... |
unit blake2b;
{Blake2B - max 512 bit hash/MAC function}
interface
(*************************************************************************
DESCRIPTION : Blake2B - max 512 bit hash/MAC function
REQUIREMENTS : TP5-7, D1-D7/D9-D10/D12/D17-D18/D25S, FPC, VP
EXTERNAL DATA : ---
MEMORY ... |
unit error;
interface
procedure FatalError (s: string);
procedure LiteError (s: string);
procedure Warning (s: string);
implementation
procedure FatalError (s: string);
begin
writeln('Fatal error ', s);
writeln('program stopped !');
halt; { that's heavy!! }
end;
procedure LiteError (s: string);
begin
... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ }
{ Copyright (c) 1996,98 Inprise Corporation }
{ ... |
unit InputOutputFile_2KH_1;
// Файл входных и выходных параметров планетарной передачи 2KH с одинарным сателлитом.
// Индексами 1, 2 и 3 обозначены соответственно: солнечная шестерня, сателлиты, корончатое колесо.
// Рассматривается планетарная передача с ведущей солнечной шестерней, ведомым водилом
// и неподвижным к... |
unit Matrices;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Dialogs, Func, Math;
type
TMatriz = class
private
public
x,y: integer;
M: array of array of real;
constructor Create(_x,_y: integer);
destructor Destroy(); override;
function GetX(): integer;
functio... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: FMaterialEditorForm<p>
Editor window for a material (with preview).<p>
<b>Historique : </b><font size=-1><ul>
<li>07/05/10 - Yar - Fixed PolygonMode and texture image class lookup
<li>05/10/08 - DanB - Removed Kylix su... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLSpline<p>
Cubic spline interpolation functions<p>
<b>History : </b><font size=-1><ul>
<li>10/12/14 - PW - Renamed Spline unit to GLSpline
<li>30/12/12 - PW - Restored CPP compatibility with record arrays
<li>08/07/... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Grids;
type
TForm1 = class(TForm)
StringGrid1: TStringGrid;
LabeledEdit1: TLabeledEdit;
Button1: TButton;
Button2: TButton;
Button3: TButton;
procedure Form... |
unit BinToInt_1;
interface
implementation
function TryBinToInt(const BinString: string; out Value: Int64): Boolean;
var
i, c: Int32;
Digit: Char;
begin
Value := 0;
c := Length(BinString);
if c = 0 then
Exit(False);
for i := Low(string) to c - 1 do
begin
Digit := BinString[i];
case Digi... |
unit Entities;
interface
uses SysUtils;
type
MemLeakError = class(Exception);
TRefObject = class
public
constructor Create;
destructor Destroy; override;
class threadvar RefCount: Integer;
end;
TPerson = class(TRefObject)
const
DATETIME_FORMAT = 'dd/mm/yyyy';
strict... |
unit NewImage;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
ExtCtrls;
type
TMouseEnterEvent = procedure (Sender: TObject) of object;
TMouseLeaveEvent = procedure (Sender: TObject) of object;
TNewImage = class(TImage)
private
FOnMouseEnter: TMouseEnter... |
unit MagicBrushFirstComplect;
interface
uses Windows, MagicBrush, Graphics;
{
Простые кисти первый комплект, будет предпологаться что кисти будут добавлятся комплектами
Версия 1.0
}
type
TGradientBrush = class(TMagicBrush)
FRemeberColor: TColor; // Запоминаем начальное значение цвета
public
const... |
unit AddUserPageMod;
interface
uses
Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd,
CompProd, PagItems, SiteProd, MidItems, WebForm, WebAdapt, WebComp;
type
TAddUserPageModule = class(TWebPageModule)
Adapter: TAdapter;
AddUser: TAdapterAction;
Name: TAdapterField;
Password: T... |
unit UBAGlobals;
{$OPTIMIZATION OFF}
{$define debug}
interface
uses
Classes,
ORNet,
uConst,
ORFn,
Sysutils,
Dialogs,
Windows,
Messages,
rOrders;
type
{Problem List Record Used To Add New DX From SignOrders Form }
TBAPLRec = class(TObject)
constructor Create(PLlist:TStringList);
function ... |
unit UntSmServicos;
interface
uses
System.Classes,
System.JSON,
System.JSON.Readers,
System.JSON.Types,
System.NetEncoding,
Web.HTTPApp,
Datasnap.DSHTTPWebBroker,
FireDAC.Stan.Intf,
FireDAC.Stan.Option,
FireDAC.Stan.Error,
FireDAC.UI.Intf,
FireDAC.Phys.Intf,
FireDAC.Stan... |
unit uBotConversa;
interface
uses
System.Classes, Vcl.ExtCtrls, uTInject;
type
TTipoUsuario = (tpCliente, tpAdm);
TSituacaoConversa = (saIndefinido,
saNova,
saEmAtendimento,
saEmEspera,
saInativa,
... |
unit UnFuncoesAuxiliares;
interface
uses Windows,SysUtils, DB, Vcl.StdCtrls, StrUtils, Vcl.Forms, Vcl.Controls, FireDAC.Comp.Client,Classes,FireDAC.Comp.DataSet,
IniFiles, System.Math;
procedure CriarForm(aClasseForm:TComponentClass; aForm: TForm);overload;
procedure SetarFoco(Objeto: TWinControl);
{Re... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit JAScene;
{$mode objfpc}{$H+}
{$i JA.inc}
interface
uses
{amiga} exec, agraphics,
JATypes, JAMath, JAList, JALog, JARender, JAPalette,
JACell, JASpatial, JANode;
type
TJAScene = record
Name : string;
Nodes : PJAList; {LinkedList of all Nodes}
Toys : PJAList; {Linked... |
unit dec_1;
interface
implementation
var
i8: int8;
u8: uint8;
i16: int16;
u16: uint16;
i32: int32;
u32: uint32;
i64: int64;
u64: uint64;
procedure Init;
begin
i8 := 100;
u8 := 100;
i16 := 100;
u16 := 100;
i32 := 100;
u32 := 100;
i64 := 100;
u64 := 100;
end;
procedure Test1;
begin
... |
unit Principal;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, IdBaseComponent, IdComponent,
IdTCPConnection, IdTCPClient, IdHTTP, ulkJSON, IdHashMessageDigest,
ExtCtrls;
type
TForm1 = class(TForm)
BitBtn1: TBitBtn;
IdHTTP: TIdH... |
unit IdDsnRegister;
{$I IdCompilerDefines.inc}
interface
uses
{$IFDEF VCL6ORABOVE}DesignIntf, DesignEditors;{$ELSE}Dsgnintf;{$ENDIF}
type
TIdPropEdBinding = class(TClassProperty)
public
procedure Edit; override;
function GetAttributes: TPropertyAttributes; override;
function GetValue: string; over... |
{***************************************************************
*
* Project : TimeServer
* Unit Name: Main
* Purpose : Demonstrates basic use of the TimeServer
* Date : 21/01/2001 - 15:12:26
* History :
*
****************************************************************}
unit Main;
interface
uses
{$I... |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
unit FIToolkit.Logger.Types;
interface
uses
System.Generics.Collections;
type
TLogTimestamp = type TDateTime;
TLogItem = (liMessage, liSection, liMethod);
TLogItems = set of TLogItem;
TLogMsgSeverity = type Word;
TLogMsgType = (
lmNone, // lower bound
lmDebug, lmInfo, lmWarning, lmError... |
unit UMainForm;
interface
uses
System.SysUtils, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, CheckLst,
Vcl.ExtCtrls, Vcl.StdCtrls, Vcl.Imaging.Jpeg,
// GLScene
GLTexture, GLCadencer, GLWin32Viewer, GLScene, GLPostEffects,
GLGraph, GLUtils, GLContext, GLVectorGeometry, GLGeomObjects, ... |
uses megacrt,gui;
{----------------------------------------------------------------
GUI.TPU ---
msgbox(color_titulo,'titulo', color_texto,color_bordes,color_fondo,
string_especial,botones_a_escojer).
String especial:
xs:='Hola | uno dos |!| Esto es para|^decir que| |';
| nueva ! linea ... |
{*!
* 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 RouteCollectionIntf;
interface
{$MODE OBJFPC}
uses
RouterI... |
unit KromOGLUtils;
interface
uses
dglOpenGL, Forms, Windows, SysUtils;
procedure SetRenderFrame(RenderFrame: HWND; out h_DC: HDC; out h_RC: HGLRC);
procedure SetRenderFrameAA(DummyFrame, RenderFrame: HWND; AntiAliasing: Byte; out h_DC: HDC; out h_RC: HGLRC);
implementation
function SetDCPixelFormat(h_DC: HDC;... |
unit fActivateDeactivate;
interface
uses
Windows, Messages, SysUtils, StrUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, fAutoSz, StdCtrls, ExtCtrls, ORCtrls,ORFn, rCore, uCore, oRNet, Math, fOrders, ORClasses, rOrders,
fMeds, rMeds, VA508AccessibilityManager;
type
TfrmActivateDeactive = class(... |
unit uIParser;
{$I ..\Include\IntXLib.inc}
interface
uses
{$IFDEF DELPHI}
Generics.Collections,
{$ENDIF DELPHI}
{$IFDEF FPC}
fgl,
{$ENDIF FPC}
uIntX,
uIntXLibTypes;
type
/// <summary>
/// Parser class interface.
/// </summary>
IIParser = interface(IInterface)
['{933EE4BE-5... |
unit RXMain;
{ This program provides an example of how to use the TreeView and ListView
components in a fashion similar to the Microsoft Windows Explorer.
It is not intended to be a fully functional resource viewer. }
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs,
E... |
unit uQuestionInfo;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, xQuestionInfo,
FMX.ScrollBox, FMX.Memo, FMX.Edit, FMX.StdCtrls, FMX.Controls.Presentation,
FMX.TabControl;
type
TfQues... |
unit IdHeaderList;
interface
uses
Classes;
type
TIdHeaderList = class(TStringList)
protected
FNameValueSeparator: string;
FCaseSensitive: Boolean;
FUnfoldLines: Boolean;
FFoldLines: Boolean;
FFoldLinesLength: Integer;
procedure DeleteFoldedLines(Index: Integer);
function FoldLine(AS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.