text stringlengths 14 6.51M |
|---|
{$mode objfpc}{$H+}{$J-}
{$R+} // включаем проверку на диапазон величин, очень полезно для отладки
var
MyArray: array [0..9] of Integer;
I: Integer;
begin
// инициализация
for I := 0 to 9 do
MyArray[I] := I * I;
// отображение
for I := 0 to 9 do
WriteLn('Квадрат составляет ', MyArray[I]);
// дел... |
unit caTrayIcon;
{$INCLUDE ca.inc}
interface
uses
// Standard Delphi units
Classes,
Windows,
Messages,
Sysutils,
SyncObjs,
Controls,
Forms,
ShellAPI,
Graphics,
Menus,
// ca utils
caTypes,
caUtils,
caFormHook;
const
WM_TRAYICON = WM_USER + 1;
type
//---------------------------... |
unit IdGopherConsts;
interface
uses IdGlobal;
const
IdGopherItem_Document = '0'; // Item is a file
IdGopherItem_Directory = '1'; // Item is a directory
IdGopherItem_CSO = '2'; // Item is a CSO phone-book server
IdGopherItem_Error = '3'; // Error
IdGopherItem_BinHex = '4'; // Item is a BinHexed Macintosh fil... |
unit Samples.Providers.Frames.User;
interface
uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls,
FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Objects, FMX.Layouts, FMX.Controls.Presentation;
type
TUserFrame = class(TFrame)
Layout1: TLayout... |
{
@html(<b>)
ISAPI Application Component
@html(</b>)
- Copyright (c) Danijel Tkalcec
@html(<br><br>)
Partial Copyright (c) Borland Inc.
- TApplication interface compatibility
- Exception Handling
- Component creation
@exclude
}
unit rtcISAPIApp;
{$INCLUDE rtcDefs.inc}
interface
uses
Windows, ... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{ : FPlugInManagerEditor<p>
Need a short description of what it does here.<p>
<b>History : </b><font size=-1><ul>
<li>17/11/14 - PW - Renamed from PlugInManagerPropEditor.pas to FPlugInManagerEditor.pas
<li>16/10/08 - UweR - Compat... |
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any purpose... |
unit WrapDelphiVCL;
{
Helper unit that will register all the wrappers for the VCL.
Instead of including WrapDelphiClasses, WrapDelphiControls... into your uses
clause, simply add WrapDelphiVCL.
}
interface
implementation
uses
WrapDelphiTypes,
WrapDelphiClasses,
WrapDelphiWindows,
WrapDel... |
unit FC.StockChart.UnitTask.Bars.DataGridDialog;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, FC.Dialogs.DockedDialogCloseAndAppWindow_B, JvDockControlForm, ImgList, JvComponentBase, JvCaptionButton, StdCtrls,
ExtendControls, ExtCtrls,StockChart.Definitions,... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit FrameDensityBase;
(*
FrameDensityBase.pas/dfm
----------------------
Begin: 2008/02/15
Last revision: $Date: 2008-12-10 21:03:31 $ $Author: areeves $
Version number: $Revision: 1.3 $
Project: APHI General Purpose Delphi Libary
Website: http://www.naadsm.org/opensource/delphi/
Author: Shaun Case <Shaun.Case@colost... |
unit h_Files;
interface
uses winapi.windows, system.SysUtils, h_Functions, shellapi, classes, variants;
type
TFile = class
public
class function Move(pSource, pDestination: string): string;
class function Copy(pSource, pDestination: string): string;
class procedure Open(pFile: string);
class p... |
unit Warnbox;
interface
uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls, Buttons,
StdCtrls, ExtCtrls, DB, DBTables, Wwtable, Wwdatsrc, Grids, Wwdbigrd,
Wwdbgrid, Sysutils, Types;
type
TWarningMessageDialog = class(TForm)
OKBtn: TBitBtn;
CaptionLabel1: TLabel;
Panel1: TPanel;
Warning... |
unit AioTests;
interface
uses
Greenlets,
Classes,
SyncObjs,
SysUtils,
AsyncThread,
GreenletsImpl,
Generics.Collections,
Winapi.Windows,
GInterfaces,
Aio,
AioImpl,
Hub,
TestFramework;
type
TTestData = class(TComponent)
strict private
FX: Integer;
FY: Single... |
unit TestUnit2;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework, System.SysUtils, Vcl.Graphics, V... |
unit NtUtils.Lsa.Security;
interface
uses
Winapi.WinNt, Winapi.ntlsa, NtUtils.Exceptions, NtUtils.Security.Acl,
NtUtils.Security.Sid;
type
TAce = NtUtils.Security.Acl.TAce;
IAcl = NtUtils.Security.Acl.IAcl;
TAcl = NtUtils.Security.Acl.TAcl;
ISid = NtUtils.Security.Sid.ISid;
{ Query security }
// Securi... |
unit NtUtils.Lsa.Logon;
interface
uses
Winapi.WinNt, Winapi.ntsecapi, NtUtils.Exceptions, NtUtils.Security.Sid,
DelphiUtils.Strings;
const
LogonFlags: array [0..18] of TFlagName = (
(Value: LOGON_GUEST; Name: 'Guest'),
(Value: LOGON_NOENCRYPTION; Name: 'No Encryption'),
(Value: LOGON_CACHED_ACCOUNT... |
unit uresmain;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,
dummy;
{$INCLUDE 'sxmlpad_language.inc'}
{$IFDEF sxmlpad_language_english}
resourcestring
// --> menu bar*s captions:
resmiMainFile_Caption = '&File';
resmiMainEdit_Caption = '&Edit';
resmiMainSearch_Caption = '&Search... |
//******************************************************************************
// VARIAN ASYNC32 COMPONENT
// (c) VARIAN SOFTWARE SERVICES NL 1996-1998
// ALL RIGHTS RESERVED
//******************************************************************************
u... |
unit MessageCollection;
interface
uses Classes, SysUtils, uLkJSON;
type
JSONItem = record
key: String;
value: String;
end;
JSONMessage = class
private
JSONItems: array of JSONItem;
public
ClientID: Integer;
DirectJSONString: String;
OnDeleted: Boolea... |
{$i deltics.interfacedobjects.inc}
unit Deltics.InterfacedObjects.ComInterfacedPersistent;
interface
uses
Classes,
Deltics.Multicast;
type
TComInterfacedPersistent = class(Classes.TInterfacedPersistent, IOn_Destroy)
private
fOn_Destroy: IOn_Destroy;
// IOn_Destroy
protected
... |
unit xElecBusLine;
interface
uses xElecLine, xElecPoint, System.Classes, System.SysUtils;
type
/// <summary>
/// 母线
/// </summary>
TElecBusLine = class
private
FOnValueChnage: TNotifyEvent;
FBusLineN: TElecLine;
FBusLineB: TElecLine;
FBusLineC: TElecLine;
FBusLineA: TEle... |
program DVRPC_Impacts_2060_V2_6;
{$APPTYPE CONSOLE}
uses
Classes, sysutils, fpstypes, fpSpreadsheet, laz_fpspreadsheet;
type TDynFloat = array of array of Real;
var
workbook: TsWorkbook;
worksheet: TsWorksheet;
datArray : TDynFloat;
function ReadSpreadsheetRange
(MyWorksheet: TsWorksheet; startCe... |
unit MasterMind.TestHelper;
interface
uses
MasterMind.API;
function MakeCode(const Colors: array of TMasterMindCodeColor): TMasterMindCode;
function MakeResult(const Hints: array of TMasterMindHint): TGuessEvaluationResult;
implementation
function MakeCode(const Colors: array of TMasterMindCodeColor): TMasterMin... |
(**
THIS IS A STUB FOR TESTING THE OPEN TOOLS API.
@stopdocumentation
**)
unit ToolsAPI;
interface
Uses
IniFiles;
Type
IOTAProjectGroup = Interface
Function GetFileName : String;
Property FileName : String Read GetFileName;
End;
IOTAProject = Interface
Function GetFileName : String;
P... |
unit fPKIPINPrompt;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
System.UITypes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Vcl.ExtCtrls,
oPKIEncryption;
type
TfrmPKIPINPrompt = class(TForm)
btnOK: TButton;
... |
program MeanNumbers;
Const
NumberOfNumbers: integer = 5;
var
Number1, Number2, Number3, Number4, Number5, Sum: integer;
Mean: real;
begin
Number1 := 45;
Number2 := 7;
Number3 := 68;
Number4 := 2;
Number5 := 34;
Sum := Number1 + Number2 + Number3 + Number4 + Number5;
Mean := Sum ... |
program TP06P1;
uses
crt;
const
MAX=100;
type
TNombre = String[50];
TProducto = record
NroVenta : Integer;
NombreLote : TNombre;
CostoLote : Real;
end;
AProductos = Array[1..MAX] of TProducto;
(*-------------------------------ORDENACIONES---------------------------------*)
procedure Interca... |
unit caPrimes;
{$INCLUDE ca.inc}
interface
uses
// Standard Delphi units
SysUtils,
Classes,
Math,
// ca units
caClasses,
caUtils;
type
//---------------------------------------------------------------------------
// IcaPrimes
//--------------------------------------------------------------------... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ WSDL Items }
{ }
{ Copyright (c) 2001 Borlan... |
unit TestUtils;
interface
uses
System.SysUtils,
TestFramework;
type
TInterfaceTestCase<I : IInterface> = class abstract (TGenericTestCase)
strict private
FSUT : I;
strict protected
function SUTAsClass<T : class> : T;
property SUT : I read FSUT;
protected
procedure DoSetUp... |
unit DB_Handle;
interface
uses Classes, SysUtils, ASGSQLite3, StdCtrls, DB_GetData, DB_Type;
function CheckInventory(StockNO: String): TInventory_Stock;
function CheckTestMode(): boolean;
procedure UpdateRestart(SetValue: String);
implementation
uses DMRecord;
function CheckInventory(StockNO: String): TInventory... |
program HelloWorld;
{
procedure
}
procedure sayHi;
begin
writeln('hi!');
end;
procedure sayHello(name: string);
const
myname = 'yocchan';
begin
writeln('hello! ' + name + ' ! from ' + myname);
end;
// var : 参照渡し→呼び出し元が変わる
procedure swap(var x,y: integer);
var
tmp: integer;
begin
tmp := x;
x := y;
y := tmp;
e... |
unit MasterMind.CodeSelector.Random;
interface
uses
MasterMind.API;
type
TMasterMindRandomCodeSelector = class(TInterfacedObject, ICodeSelector)
private
function GetNumberOfAvailableColors: Integer;
public
function SelectNewCode: TMasterMindCode;
end;
implementation
function TMasterMindRandomCode... |
unit LTConsts;
interface
const
AUTH_GUEST = -1;
AUTH_STUDENT_BEGIN = 2; // 학생 ?
AUTH_STUDENT_END = 3; // 학생 ?
AUTH_TEACHER = 4; // 강사
AUTH_ACADEMY = 5; // 학원장
AUTH_BRANCH = 6; // 지사장
const
RIGHT = 0;
WRONG = 1;
MARKING = 2;
UNMARKING = 3;
implementation
end.
|
{-----------------------------------------------------------------------------
Unit Name: Subject
Author: Erwien Saputra
This software and source code are distributed on an as is basis, without
warranty of any kind, either express or implied.
This file can be redistributed, modified if you keep this he... |
{
Oracle Deploy System ver.1.0 (ORDESY)
by Volodymyr Sedler aka scribe
2016
Desc: wrap/deploy/save objects of oracle database.
No warranty of using this program.
Just Free.
With bugs, suggestions please write to justscribe@yahoo.com
On Github: github.com/justscribe/ORDESY
Dialog to edit the list of bases in ProjectL... |
//
// Created by the DataSnap proxy generator.
// 14/12/2018 17:03:44
//
unit ClientClassesUnit1;
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.SqlExp... |
unit SC_INTV;
{$ifdef VirtualPascal}
{$stdcall+}
{$else}
Error('Interface unit for VirtualPascal');
{$endif}
(*************************************************************************
DESCRIPTION : Interface unit for SC_DLL
REQUIREMENTS : VirtualPascal
EXTERNAL DATA : ---
M... |
unit VCLBI.Editor.Hops;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,
BI.Expressions, BI.Query, BI.DataItem;
type
THopsViewer = class(TForm)
LBHops: TListBox;
LMain: TLabel;
LCount: TLabel;
LB... |
Program muenzenRechner (input, output);
{ liest Geldmünzen zwischen 1 und 99 Cent ein und verteilt
diese Geldmünzen über die Münzen, die im Umlauf sind }
Const
MUENZENLAENGE = 6;
Type
tMuenzen = array [1..MUENZENLAENGE] Of integer;
Var
MuenzenImUmlauf : tMuenzen; {die Münzen, die im Umlauf sind}
Muen... |
unit adot.Collections.Lists;
interface
{
TDoublyLinkedListClass<T>
}
uses
adot.Types,
adot.Collections.Types,
System.Generics.Collections,
System.Generics.Defaults,
System.SysUtils;
type
{ Doubly linked list }
TDoublyLinkedListClass<T> = class(TEnumerableExt<T>)
public
type
{ We use all... |
{$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 STRIPESC;
{
Strip printer codes and non printing chars from text file.
Leave: <TAB>
... |
unit testchebyshevunit;
interface
uses Math, Sysutils, Ap, chebyshev;
function TestChebyshev(Silent : Boolean):Boolean;
function testchebyshevunit_test_silent():Boolean;
function testchebyshevunit_test():Boolean;
implementation
function TestChebyshev(Silent : Boolean):Boolean;
var
Err : Double;
... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus,
StdCtrls;
type
{ TMainForm }
TMainForm = class(TForm)
MemoryClear: TButton;
Root: TButton;
Digit7: TButton;
Digit8: TButton;
Digit9: TButton;
Divisi... |
{
this file is part of Ares
Aresgalaxy ( http://aresgalaxy.sourceforge.net )
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; either
version 2 of the License, or (at your option) any ... |
unit FC.Trade.Trader.TrendFollower.TestBenchDialog;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ufmDialogClose_B, StdCtrls, ExtendControls, ExtCtrls, ComCtrls,
FC.Trade.Trader.TrendFollower,FC.DataUtils, FC.Dialogs.DockedDialogCloseAndAppWindow_B, ImgList, ... |
unit RadioGroupImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB, ExtCtrls;
type
TRadioGroupX = class(TActiveXControl, IRadioGroupX)
private
{ Private declarations }
FDelphiControl: TRadioGroup;
FEvents: IRadioGroup... |
unit fft;
interface
{$mode objfpc}
uses base;
type
TFFT = class
private
fPoints: PtrInt;
fIndex: array of PtrInt;
fTwiddleR, fTwiddleI: array of single;
procedure CalcFFT(var OutR, OutI: TVector);
public
procedure CalcFFTRealAbs(const InpR: TVector; var OutR: TVector);
procedure CalcFFTReal(const Inp... |
unit ufrmCaptionToolbar;
interface
uses
Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Types, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TTest = class
strict private const
WM_NCUAHDRAWCAPTION = $00AE;
WM_NCUAHDRAWFRAME = $00AF;
private
FC... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC ODBC metadata }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit uFuncoesWindows;
interface
uses Windows, SysUtils, Classes, Variants, Controls, FileCtrl, Forms, ShellAPI, Dialogs,
DB, DBClient, ComObj, uMensagem, ComCtrls, ExtCtrls, uFuncoesString;
type TAbertura = (taShow, taHide);
////////////////////////////////////////////////////////////////////////////////
/// W... |
unit Nathan.MapFile.Core;
interface
uses
System.Classes,
System.SysUtils;
{$M+}
type
TMapReturn = record
// Segment: Word;
Offset: Integer;
LineNumberFromAddr: Integer;
ModuleStartFromAddr: Integer;
ModuleNameFromAddr: string;
ProcNameFromAddr: string;
SourceNameFrom... |
unit WasmSample_Memory;
interface
uses
System.SysUtils
, Wasm
{$ifndef USE_WASMER}
, Wasmtime
{$else}
, Wasmer
{$ifend}
;
function MemorySample() : Boolean;
implementation
procedure check(success : Boolean);
begin
if not success then
begin
writeln('> Error, expected success');
halt(1);
end;... |
UNIT Ghost;
{$MODE Delphi}
INTERFACE
USES LCLIntf, LCLType, LMessages, Graphics, Classes, Map, MapObject, LinkedList, Animation,
Astar;
CONST NUM_COLORS = 4;
CONST DEFAULT_SPEED = 2;
TYPE AIMode = (AI_SLEEP, AI_CHASE, AI_IDLE, AI_FLEE);
VAR gfx : ARRAY [0.. NUM_COLORS * 5 * 4 - 1] OF TBitmap;
TYPE TGhost = CLAS... |
{ 25/05/2007 10:49:50 (GMT+1:00) > [Akadamia] checked in }
{ 25/05/2007 10:48:58 (GMT+1:00) > [Akadamia] checked out /}
{ 14/02/2007 08:34:19 (GMT+0:00) > [Akadamia] checked in }
{-----------------------------------------------------------------------------
Unit Name: TDU
Author: ken.adam
Date: 11-Jan-20... |
unit UndoRedo;
//
// This unit implements a simple Undo/Redo mechanism for interactive systems.
// It is inspired by the treatment of a similar example in Chapter 21 of
// Bertrand Meyer's "Object-Oriented Software Construction" (2nd edition).
//
// The mechanism can be simply described by means of the foll... |
{------------------------------------------------------------------------------}
{
Lee Beadle
CS 410W
Pascal Paint Cost Program
MODIFIED Assignment #5
}
{------------------------------------------------------------------------------}
{Program info, libraries, and variables}
PROGRAM Paint_Cost;
USES Math;
CONST
HEIGHT =... |
unit Unit1;
interface
uses
System.SysUtils, System.Classes, System.Math,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.StdCtrls, Vcl.ExtCtrls,
//GLScene
GLScene, GLObjects, GLWin32Viewer, GLVectorGeometry, GLVectorLists,
GLCadencer, GLTexture, GLColor, GLCrossPlatform, GLCoordinates... |
// testing array declarations with expressions
PROGRAM test13;
TYPE
array1 = ARRAY [0..2] of integer;
VAR
a : array1;
BEGIN
a[0 * 1] := 0;
a[2 - 1] := 1;
a[1 + 1] := 2;
WRITE(a[0]);
WRITE(a[1]);
WRITE(a[2]);
END.
|
unit TestLayoutBare2;
{ AFS 28 March 2000
This unit compiles but is not semantically meaningfull
it is test cases for the code formatting utility
a 'bare' block is one that does not have begin..end around it
This unit tests layout for statments with bare blocks
Use of bare blocks nested within bare blo... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit deref_9;
interface
implementation
function SUM(a, b: Int32): Int32;
begin
Result := a + b;
end;
var G1, G2, G3: Int32;
P1, P2, P3: ^Int32;
procedure Test;
begin
P3^ := SUM(P1^, P2^);
end;
initialization
G1 := 1;
G2 := 2;
P1 := @G1;
P2 := @G2;
P3 := @G3;
Test();
finalization
Assert... |
{*********************************************************************
*
* 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... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
{$mode objfpc}
unit CMDLineArgs;
interface
type
PKeyArgList = ^TKeyArgList;
TKeyArgList = record
next : PKeyArgList;
Key, val : String;
end;
PChArgList = ^TChArgList;
TChArgList = record
next : PChArgList;
val : Char;
e... |
{*******************************************************}
{ }
{ YxdHash 哈希表,哈希函数 }
{ }
{ 版权所有 (C) 2013 - 2019 YangYxd }
{ ... |
{-*- Mode: Pascal -*-}
Function TrackButton (theButton: Buttype):boolean;
{track a mouse-down in a button}
var MPoint :point; {current mouse position}
invert, {state of button inversion}
tbool :boolean; {temporary var for same}
begin
InvertRect (theButton.butrect);
invert := true; {st... |
unit MESA;
interface
uses
Classes,
DB,
SysUtils,
Generics.Collections,
ormbr.mapping.attributes,
ormbr.types.mapping,
ormbr.types.lazy,
ormbr.types.nullable,
ormbr.mapping.register;
type
[Entity]
[Table('MESA','')]
[PrimaryKey('ID', AutoInc, NoSort, True, 'Chave primária')]
TMESA = class
... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC SAP SQL Anywhere Call Interface }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit AdapterMain;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
sgcWebSocket_Classes, sgcWebSocket_Client, sgcWebSocket, sgcWebSocket_Server,
FMX.Controls.Presentation, FMX.StdCtrls, FMX.Obj... |
unit ACBrSerialToshiba;
{**************************************************************************}
{ }
{ This C DLL header file first (automatic) conversion generated by: }
{ HeadConv 4.0 (c) 2000 by Bob Swart (aka Dr.Bob - www.drbob42... |
unit uCSVUpdater;
interface
uses System.Classes, System.SysUtils, System.Types,
System.Generics.Defaults, System.Generics.Collections,
Functional.Value;
Const
ALWAYS_FOLLOW_LINK_FILES = true;
DONT_FOLLOW_LINK_FILES = false;
type
TValidatedFilename = record
private
Name: string;
... |
unit fLibItemProps;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ExtCtrls, FlexLibs, FlexUtils;
type
TfmLibItemProps = class(TForm)
Panel1: TPanel;
Panel2: TPanel;
pbItemView: TPaintBox;
bbOk: TBitBtn;
Label1: TLab... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
program CATFreePascal;
{$mode delphiunicode}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, SysUtils, CustApp, Types, FileUtil,
CompilerUtils, iDStringParser, Operators, iDPascalParser,
PascalCompiler, CompilerClasses, ILInstructions, CompilerMessages, CompilerErrors,
IL... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 1024,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
August '1999
Problem 1 O(N) Trivial Method
}
program
FunctionValueCalculation;
const
MaxN = 1000;
var
N, I, J, K : Integer;
F : array [1 .. MaxN] of Integer;
begin
Readln(N);
I := 0;
... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2014-2019 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
{Ejercicio 8
Dado un fragmento de texto que debe ser leído de la entrada estándar,
todo en una línea, y terminado por el caracter $ (centinela), determine
y exhiba las consonantes y vocales que aparecen duplicadas en forma contigua.
Por ejemplo, el texto "llama al chico que lee$" tiene una consonante doble (ll)
y u... |
unit uCampaigns;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uHeritageScreen, Data.DB,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, Fire... |
unit Optimizer.Hibernation;
interface
uses
SysUtils,
OS.EnvironmentVariable, Optimizer.Template, Global.LanguageString,
OS.ProcessOpener;
type
THibernationOptimizer = class(TOptimizationUnit)
public
function IsOptional: Boolean; override;
function IsCompatible: Boolean; override;
function IsApp... |
unit setbit_0;
interface
implementation
var
V: Int32;
procedure Test;
begin
setbit(V, 1, True);
end;
initialization
Test();
finalization
Assert(V = 2);
end. |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
Unit TERRA_Localization;
{$I terra.inc}
Interface
Uses TERRA_Utils, TERRA_IO;
Const
language_English = 'EN';
language_German = 'DE';
language_French = 'FR';
language_Portuguese= 'PT';
language_Spanish = 'ES';
language_Italian = 'IT';
language_Japanese = 'JP';
language_Chines... |
////////////////////////////////////////////
// Базовый класс для построителя запросов к устройствам
////////////////////////////////////////////
unit Devices.ReqCreatorBase;
interface
uses Windows, GMGlobals, GMConst, StdRequest;
type
TGMAddRequestToSendBufProc = procedure (ReqDetails: TRequestDetails) of object... |
{*
* Miscelaneous.pas
*
* Miscelaneous functions which are not placed in a proper unit yet.
*
* Copyright (c) 2006-2007 by the MODELbuilder developers team
* Originally written by Darius Blaszijk, <dhkblaszyk@zeelandnet.nl>
* Creation date: 13-May-2006
* Website: www.modelbuilder.org
*
* This file i... |
unit Canvases;
interface
uses Windows, Graphics, GDIPAPI, GDIPOBJ, SysUtils, RootObject;
type
TPointEx = record
X : Extended;
Y : Extended;
end;
IMyCanvas = interface
['{E3D5A3FD-FE49-414F-AF6C-92A5AF2C4630}']
procedure SetDC(DC: HDC);
procedure SetBrushColor(Color: TColor);
procedure F... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC expression custom functions }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit fAutoSz;
{ provides the basic mechanism to resize all the controls on a form when the form size is
changed. Differs from frmAResize in that this one descends directly from TForm, rather
than TPage }
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, fBase508... |
unit RlCompilerConsts;
interface
const
cvDelphi1 = 8; //VER80
cvDelphi2 = 9; //VER90
cvDelphi3 = 10; //VER100
cvDelphi4 = 12; //VER120
cvDelphi5 = 13; //VER130
cvDelphi6 = 14; //VER140
cvDelphi7 = 15; //VER150
cvDelphi8NET = 16; ... |
unit dcm2nii;
{$mode objfpc}{$H+}
{$IFDEF Darwin}
{$modeswitch objectivec1}
{$ENDIF}
interface
uses
{$IFDEF Darwin} CocoaAll, MacOSAll, {$ENDIF}
{$IFDEF UNIX} lclintf, {$ENDIF}
strutils, Process, Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
IniFiles, ComCtrls, Types;
type
... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit PageScrollerImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB, ComCtrls;
type
TPageScrollerX = class(TActiveXControl, IPageScrollerX)
private
{ Private declarations }
FDelphiControl: TPageScroller;
FEvents: IPa... |
{***************************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ }
{ Copyright (c) 2000-2001 Borland Software Corporation... |
{ *********************************************************** }
{ * TForge Library * }
{ * Copyright (c) Sergey Kasandrov 1997, 2016 * }
{ *********************************************************** }
unit tfCipherServ;
interface
{$I TFL.inc}
uses tfRecords, tf... |
{koder: A^2P}
{PSN 2005 #84 "Las compa¤ias de juegos y la guerra"}
uses umissile;
var
A,B,C,j,k : longint;
begin
{solve}
C := high(0);
j := high(1) - C; {j = A + B}
k := high(-1) - C; {k = A - B}
A := (j + k) div 2;
B := j - A;
{check}
solution(high(-B div ... |
unit FieldAttr;
interface
uses Classes, HTTPApp, Db, DbClient, Midas,
XMLBrokr, WebComp, PagItems, MidItems;
type
TFieldTextAttr = class(TFieldText)
private
FRequired: Boolean;
FDecimals: Integer;
FMaxValue: string;
FMinValue: string;
FFixedDecimals: Integer;
FCurrencySymbol: string;
... |
unit UnitTIniTracer;
interface
uses
Windows, Classes, Forms, SysUtils, Dialogs, IniFiles, Registry, Controls,
StrUtils, Messages, UnitTCifrador, frm_CifraIni,Graphics;
type
TIniTracer=class
private
sIndicador:string;
sRegName:string;
sSysName:string;
sKeyWord:string;
padre:TComponent;
function obten... |
unit Ex12FullUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, MTUtils, ComCtrls, ExtCtrls, StrUtils, Contnrs,
Generics.Collections;
type
TMyThread = class(TThread)
private
procedure LogEvent(EventText: string);
procedur... |
{******************************************}
{ TDragPointTool and Editor Dialog }
{ Copyright (c) 2000-2004 by David Berneda }
{******************************************}
unit TeeDragPoint;
{$I TeeDefs.inc}
interface
uses {$IFDEF CLR}
Windows,
Classes,
Borland.VCL.Controls,
Borland.VCL.St... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.