text stringlengths 14 6.51M |
|---|
unit ScannerUnit;
interface
uses
SysUtils, Windows, Messages, Classes, Controls, StdCtrls, ExtCtrls, ComCtrls, Buttons, Forms, Menus,
SynEdit, TypesUnit, StrUtils, Dialogs;
type
TScanner=class;
TScanner=class(TStringList)
private
fIncludes, fClasses, fTypes, fConstants,
fNames... |
unit UEnvVars;
interface
uses
// Delphi
Classes;
function GetEnvVarValue(const VarName: string): string;
function SetEnvVarValue(const VarName, VarValue: string): Integer;
function DeleteEnvVar(const VarName: string): Integer;
function CreateEnvBlock(const NewEnv: TStrings; const IncludeCurrent:... |
unit zXMLLogger;
// Класс для регистрации и последующего внесения в XML доп. информации
interface
uses Windows, Messages, SysUtils, Classes, Forms, ComCtrls;
type
TXMLLogger = class
TagList : TStringList;
constructor Create;
destructor Destroy; override;
// Очистка
procedure Clear;
// Добавление... |
{***************************************************************}
{ Copyright (c) 2013 год . }
{ Тетенев Леонид Петрович, ltetenev@yandex.ru }
{ }
{*******************************************************... |
unit DBAppTabela;
interface
uses
Winapi.Windows, System.SysUtils, System.Variants, System.Classes;
type
TDBAppTabela = class
private
FNome : String;
FNomePK :
FColunas : TArray<TDBAppColuna>;
FListaProblemas : TStringList;
public
constructor Create(Id: Integer; Nome, Tipo: S... |
unit untModelFiredacQuery;
interface
Uses untIConexao,FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.MySQL,
FireDAC.Phys.MySQLDef, FireDAC.VCLUI.Wait, FireDAC.Stan.Param, FireDAC.... |
unit Project87.Scenes.MainMenuScene;
interface
uses
QCore.Input,
QGame.Scene,
Strope.Math,
QEngine.Camera,
QEngine.Texture,
QEngine.Font;
type
TMainMenuScene = class sealed (TScene)
strict private
FCamera: IQuadCamera;
FFont: TQuadFont;
FStar: TQuadTexture;
FStarTime: Single... |
unit printstatisticsnew;
interface
uses
SysUtils,
Statistic;
procedure writetofile(var f: file; initialText : String);
implementation
function maketimeint(t : TDateTime) : integer;
var
h, m, s, ml : word;
begin
DecodeTime(t, h, m, s, ml);
result := ml + 1000 * (s + 60 * (m + 60 * h));
end... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ Copyright(c) 2011-2013 Embarcadero Technologies, Inc. }
{ ... |
unit ormbr.model.cliente;
interface
uses
DB,
Classes,
/// orm
ormbr.mapping.attributes,
ormbr.types.mapping,
ormbr.mapping.register;
type
[Entity]
[Table('Tab_Cliente','')]
[PrimaryKey('Id', AutoInc, NoSort, True, 'Chave primária')]
[Indexe('IDX_Nome', 'Nome')]
[Sequence('SEQ_C... |
{****************************************************
* Author : Dumitru Uzun
* Web : http://duzun.me
* Repo : https://github.com/duzun/DelphiUnits
* Created : 03.02.2010
*
* O extensie a clasei TStringList.
* Poate fi utilizat in calitate de stiva, coada sau pur si simplu lista
* de elemente de tip ... |
unit Model.Main;
interface
uses Model.Declarations, Model.Database, Model.Interfaces;
function CreateMainModelClass: IMainModelInterface;
implementation
uses
System.SysUtils;
type
TMainModel = class(TInterfacedObject, IMainModelInterface)
private
fMainFormLabelsText: TMainFormLabelsText;
fDatabase: ... |
unit uPrincipal;
interface
uses
Winapi.Windows, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Soap.EncdDecd,
Vcl.ExtCtrls, JPEG, Vcl.ExtDlgs, IdCoderMIME;
type
TfrmPrincipal = class(TForm)
btnConverter: TBitBtn;... |
unit UWPXScore;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
UBasicScore, Grids, StdCtrls, ExtCtrls, Buttons, Math,
UzLogConst, UzLogGlobal, UzLogQSO, UWPXMulti, Vcl.Menus;
type
TWPXScore = class(TBasicScore)
Grid: TStringGrid;
procedure FormCreate(Sender: ... |
unit aPushMethods;
interface
uses System.SysUtils, System.Classes, System.Json,
Datasnap.DSServer, Datasnap.DSAuth, System.IniFiles,
lPushData, DBXPlatform;
type
{$METHODINFO ON}
TPushMethods = class(TDataModule)
procedure DataModuleCreate(Sender: TObject);
private
FGooglePushServerKey: ... |
unit Filtr;
{$MODE Delphi}
interface {--------------------------------------------------------------------}
uses
Classes;
const
cNField = 20;
MaxDay = 31;
MaxMonth = 12;
const
tBase64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
encQuoted = 0;
encBase64 = 1... |
unit MLP.Concret.NeuronTrainer;
interface
uses
MLP.Contract.NeuronTrainer, MLP.Concret.Matrix, MLP.Contract.Neuron,
MLP.Contract.Activation;
type
TNeuronTrainer = class(TInterfacedObject, INeuronTrainer)
private
{ private declarations }
FLearningRate: Single;
[weak]
FActivation: IActivation;... |
unit uGCAxERPAdapterOption;
{$I twcomp.pas}
interface
uses
ComObj, ComServ, Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ActiveX,
AxCtrls, pGCAxERPAdapterOption_TLB, StdVcl, uGCAxCustomTransceiverOption, StdCtrls,
ExtCtrls, CAS_TOOLSCOM, uServerFactory, GWServices_TLB, tWTools,
p... |
unit Model.Location;
interface
uses
Model.Interfaces,
Model.IMyConnection,
System.Generics.Collections,
Spring.Collections,
Spring.Data.ObjectDataset,
Spring.Persistence.Criteria.Interfaces,
Spring.Persistence.Criteria.Restrictions,
Spring.Persistence.Criteria.OrderBy,
MainDM;
function CreateLocatio... |
{
Classe utilitária
Declara o objeto que representa a conexão com o DB Firebird 2.5
}
unit Helper.Conexao.SGBD.Firebird.Singleton;
interface
uses
SqlExpr, SysUtils, Helper.Conexao.ConectarDB;
type
TConnFirebird = class sealed // classe não deve ser herdada
private
class var FInstancia: TConnFirebird;... |
unit UPert;
interface
uses USimulation;
type
// Узел сети
TNode = class(TProcess)
public
// Список исходящих дуг
OutArcs : TList;
// Счетчик завершенных входящих дуг
IncomeArcs : Integer;
// Количество входящих дуг, которые должны быть завершены
// для готовности узла
LimitIncomeAr... |
unit main;
interface
uses
Forms, Classes, Controls, StdCtrls,
rsCompiler, rsExec;
type
TfrmHelloWorld = class(TForm)
btnRun: TButton;
procedure btnRunClick(Sender: TObject);
end;
TEnvironment = class
public
procedure ShowMessage(const msg: string);
end;
var
frmHell... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ Copyright(c) 2012-2013 Embarcadero Technologies, Inc. }
{ }
{*****************************... |
unit uMRU;
interface
uses
Classes, SysUtils, uMyIniFiles;
type
TMRUList = class
private
fMRUList: TStringList;
fMRUListMPQ: TStringList;
fLimit: Integer;
fMyIniFile: TMyIniFile;
fIniSection: String;
function GetItem(Index: Integer): String;
procedure Read;
procedur... |
program buildlist;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : buildlist
Source : RKRM
}
{
example which uses an application-specific Exec list
}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNITPATH ../../../Bas... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Spin,ProgressDlgs;
type
TForm1 = class(TForm)
Label1: TLabel;
seCount: TSpinEdit;
btnStart: TButton;
btnExecute: TButton;
btnClose: TButton;
Label2: TLabel;
seMSeconds: TSp... |
unit UExportXMLPackage;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
{ This unit creates the yakov XML package used to convert to AIReady & Lighthouse}
interfac... |
unit ProjectsUnit;
interface
uses
Windows,
Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ToolWin, ImgList, TypesUnit, Menus, StdCtrls, PageSheetUnit,
CheckLst, ExtCtrls;
type
TProjects = class(TForm)
PanelProjects: TPanel;
PanelGroups: TPanel;
... |
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ ... |
/// <summary>
/// Модуль содержит описания класса окна редактора параметров монитора и
/// типов, используемых редактором
/// </summary>
unit frmOptions;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialo... |
{******************************************************************************}
{ }
{ Icon Fonts ImageList: An extended ImageList for Delphi }
{ to simplify use of Icons (resize, colors and more...) ... |
unit uClientType;
interface
uses
uTypePersonInterface,uPerson,Windows,DB;
type
TClientType = class(TInterfacedObject,ITypePerson)
procedure Save(obj:TObject);
procedure Delete(obj:TObject);
function ListPerson(obj:TObject):string;
function PesquisarPessoa(obj:TObject):OleVariant;
function Lis... |
unit winEdidUtils;
interface
uses
SysUtils,
Windows, edidTypes;
// MonitorID - is expected to match "HardwareID" in registry. i.e: "MONITOR\ACR0282"
// Driver - is matching "Driver" to match "Driver" in registry
// "MonitorID"+"Driver" is returned in "ID" by EnumDisplayDevices() for a "\\.\display1"... |
//==============================================================================
// Module name : $RCSfile: DataBuffer.pas,v $
// Description : This unit defines and implements a template class of ring buffer
// and some of its specifical classes
// Copyright : (c) Metronix 2014
// Reversion : $R... |
unit ThoughtWorks.QRCode.Codec.Data.QRCodeBitmapImage;
interface
uses
Vcl.Graphics, ThoughtWorks.QRCode.Codec.Data.QRCodeImage;
type
TQRCodeBitmapImage = class(IQRCodeImage)
private
FImage:TBitmap;
public
constructor Create(image: TBitmap);
function getPixel(x, y: Integer): Integer; override;
e... |
unit uSomewhatFunctionalNumberClassifier;
interface
uses
Spring.Collections
, uNumberClassificationTypes
;
type
TSomewhatFunctionalNumberClassifier = class
public
class function IsFactor(aNumber: integer; aPotentialFactor: integer): Boolean; static;
class function Factors(aNumber: integer)... |
unit Main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, ToolWin, Menus, ExtCtrls, StdCtrls, ImgList;
const
SleepTime = 400;
clChessboard = $0000C0C0;
clClockBorder = $000000C0;
type
TChessman = (cmNone, cmBlack, cmWhite, cmBorder);
TBackgro... |
unit Model;
interface
uses
Windows, MyMatrix, Graphics, Math;
type
TModel=class
private
cvs:TCanvas;
bmp:TBitmap;
arr,arr2:TMyMatrix;
f:TextFile;
public
constructor Create(Canvas:TCanvas);
destructor Destroy;override;
procedure LoadFromFile(FileName:ShortString);
... |
unit Delphi.Mocks.Tests.AutoMock;
interface
uses
SysUtils,
DUnitX.TestFramework,
Delphi.Mocks;
type
{$M+}
TReturnedObject = class(TObject)
end;
{$M-}
{$M+}
IReturnedInterface = interface
['{8C9AA0D8-5788-4B40-986A-46422BB05E9A}']
procedure Dud;
end;
{$M-}
{$M+}
IReturnedInterfaceW... |
unit SG_ComboBox;
interface
uses
stdctrls,
classes,
db;
type
TSG_ComboBox = class(TComboBox)
private
{ Private declarations }
_esPosibleActualizarValores:boolean;
_nombreTabla:string;
_nombreCampoClave:string;
_nombreCampoDescripcion:string;
procedure crearValor(Sender: TObject);
... |
unit core_actor_definitions;
{$mode objfpc}{$H+}
//some stuff is common for physics actor and render actor. here they are
interface
uses
VectorGeometry;
type
eWeaponTypes = (wtNonde,wtBlasterPistol,wtEnemyBlasterPistol,wtPlasmaRifle);
eWeaponMod = (wmNone,wmMelee,wmBarell);
eArmorMods = (amNone,amShield,am... |
unit OAuth2.Contract.Entity.RefreshToken;
interface
uses
OAuth2.Contract.Entity.AccessToken;
type
IOAuth2RefreshTokenEntity = interface
['{A0E150DB-9543-4D02-A220-084518528DF4}']
function GetIdentifier: string;
procedure SetIdentifier(AIdentifier: string);
function GetExpiryDateTime: TDateTime;
... |
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://carme.atbx.net/secure/ws/awsi/PartnerInspectionReportServer.php?wsdl
// >Import : http://carme.atbx.net/secure/ws/a... |
{***************************************************************}
{ Copyright (c) 2013 год . }
{ Тетенев Леонид Петрович, ltetenev@yandex.ru }
{ }
{*******************************************************... |
unit KM_PathFindingJPS;
{$I KaM_Remake.inc}
interface
uses Types, Math, SysUtils, KM_PathFinding, BinaryHeap, KM_Points, KM_CommonClasses, KM_Terrain;
type
TJPSPoint = class
x,y: Word;
Estim: Word; //Estimated distance to End
g, f: Single; //G - CostTo, F - CostTo + Estim
opened, closed: ... |
program compleximage;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : compleximage
Source : RKRM
}
{
* program to show the use of a complex Intuition Image.
}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNITPATH ../.... |
unit Frm_Localidades_Editor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses,
uniGUIClasses, uniGUIForm, Frm_Dialogo, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.Phys.Intf, FireDAC... |
unit WVCmdTypeInfo;
{**********************************************
Kingstar Delphi Library
Copyright (C) Kingstar Corporation
<Unit>WVCmdDes
<What>命令描述对象的组件包装
<Written By> Huang YanLai (黄燕来)
<History>
**********************************************}
{$I KSConditions.INC }
interface
uses SysU... |
(*============================================================================
-----BEGIN PGP SIGNED MESSAGE-----
This code (c) 1994, 1997 Graham THE Ollis
GENERAL NOTES
=============
This is 16bit DOS TURBO PASCAL source code. It has been tested using
TURBO PASCAL 7.0. You will need AT LEAST version 5.0 ... |
(* macOS Dialogs. Simplified. *)
(* Unit by Lily Stilson [2019] *)
(* Licence: MIT // Build: 001 *)
unit MacApi.Dialogs;
{$IFDEF MACOS}
interface
uses
System.SysUtils, System.Types, System.Classes, System.TypInfo,
FMX.Forms, FMX.Dialogs, FMX.Platform, FMX.Platform.Mac, FMX.Menus, FMX.Types... |
program Kleinbuchstaben (input, output);
const
MAX = maxint;
type
tbuchstaben = 'a'..'z';
tIndex = 0..MAX;
tsatz = array[tBuchstaben] of tIndex;
var
Anzahl : tsatz;
eingabe : char;
vokalzahl : integer;
gesamtzahl : integer;
begin
for eingabe := 'a' to 'z' do
Anzahl[eingabe] := 0;
gesamtzahl... |
unit ExportTabularFLOR;
uses ExportCore,
ExportTabularCore,
ExportJson,
ExportTabularLOC;
var ExportTabularFLOR_outputLines: TStringList;
var ExportTabularFLOR_LOC_outputLines: TStringList;
function initialize(): Integer;
begin
ExportTabularFLOR_outputLines := TStringList.create();
ExportTab... |
unit zESScripting;
// Скрипт-машина для скриптов эвристического обследования процессов
interface
uses Windows, Messages, SysUtils, Classes, Forms, ComCtrls,
fs_iinterpreter,
fs_ipascal,
fs_iclassesrtti,
zLSP, zSharedFunctions,
zAntivirus,
uInfectedView,
uSysCheck,
Regi... |
unit Main;
{$mode objfpc}{$H+}
interface
uses
//System:
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
Spin, Math,
//Custom:
UGrid;
type
{ TMainForm }
TMainForm = class(TForm)
procedure PaintBoxMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X... |
unit microml;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type TDoubleArray = array of double;
procedure EncodeInteger(var StrPacket: TStringList; name: string; data: integer);
procedure EncodeDouble(var StrPacket: TStringList; name: string; data: double);
procedure EncodeDoubleArray(var StrPacket: TS... |
(*
Copyright (c) 2011-2013, Stefan Glienke
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions ... |
// ************************************************************************
// ***************************** CEF4Delphi *******************************
// ************************************************************************
//
// CEF4Delphi is based on DCEF3 which uses CEF3 to embed a chromium-based
// browser in D... |
{ search-api
Copyright (c) 2019 mr-highball
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, pub... |
unit uF7_jualOlahan;{Note : perlu dibuat agar bahan olahan yang habis dihapus nama nya}
interface
uses uP1_tipeBentukan, uP3_Umum, uF6_OlahBahan;
procedure mainJualOlahan(ID : integer;
var dataBahanOlahan : tabelBahanOlahan;
var dataSimulasi : tabelSimulasi);
{ Menjual bahan olahan }
impleme... |
unit uContentBuilder;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, VirtualTrees, Windows, Forms,
fgl,
uLibrary,
uModbus,
uConfiguratorData;
type
{ IContentBuilder }
IContentBuilder = interface
['{F114DCE5-D31F-4607-AE67-77F72031D7A4}']
procedure AfterBuild;
procedure BuildContent... |
{*******************************************************}
{ }
{ Delphi REST Client Framework }
{ }
{ Copyright(c) 2013 Embarcadero Technologies, Inc. }
{ ... |
{ *******************************************************************************
Copyright 2015 Daniele Spinetti
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/lic... |
unit uLoginAspect;
interface
uses
System.Classes, System.SysUtils, System.Rtti, Aspect4D, uContextoAspecto;
type
ELoginException = class(EAspectException);
TLoginAspect = class(TAspect, IAspect)
private
function DeveAplicarAspecto(const method: TRttiMethod): boolean;
public
procedure... |
unit TSTOScriptTemplateIntf;
interface
Uses HsInterfaceEx;
Type
ITSTOScriptTemplateSettings = Interface(IInterfaceEx)
['{4B61686E-29A0-2112-B8F1-FD92987D3332}']
Function GetOutputFileName() : WideString;
Procedure SetOutputFileName(Const AOutputFileName : WideString);
Function GetCategoryNamePre... |
unit Delphi.Mocks.Utils.Tests;
interface
uses
DUnitX.TestFramework;
type
{$M+}
[TestFixture]
TUtilsTests = class
published
procedure CheckInterfaceHasRTTIWithoutRTTI;
procedure CheckInterfaceHasRTTIWithNonInterface;
procedure CheckInterfaceHasRTTIWithInterfaceRTTI;
end;
{$M-}
{$M+}
ITest... |
unit PTimeEdit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Mask;
type
TPTimeEdit = class(TCustomMaskEdit)
private
{ Private declarations }
FCheckResult: Boolean;
FRdOnly: Boolean;
protected
{ Protected declarations }
procedure Judg... |
unit OAuth2.Entity.Scope;
interface
uses
OAuth2.Contract.Entity.Scope;
type
TOAuth2ScopeEntity = class(TInterfacedObject, IOAuth2ScopeEntity)
private
{ private declarations }
FIdentifier: string;
protected
{ protected declarations }
public
{ public declarations }
constructor Create(AId... |
unit FForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, System.IOUtils,
FMX.Controls.Presentation, FMX.StdCtrls, FMX.Layouts, UExternalFileViewer;
type
TForm5 = class(TForm)
Layout1: TLayout;... |
unit JLXPExtCtrls;
interface
uses
Windows, Messages, SysUtils, Classes, Controls, StdCtrls, ExtCtrls,
JLTmschema, JLUxtheme;
type
TJLXPRadioGroup = class(TRadioGroup)
private
FThemeHandle: THandle;
procedure WMThemeChanged(var Msg: TMessage); message WM_THEMECHANGED;
procedure WMEras... |
unit uSaxBase;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Windows, fgl, Sax;
{$REGION Константы}
resourcestring
// Теги и аттрибуты XML - словарь входных символов
sLib = 'lib';
sTypeBootloader = 'type_bootloader';
sTypeSignature = 'type_signature';
sTypeLib = 'type';
sModule = 'mo... |
unit DeclarXML;
interface
uses xmldom, XMLDoc, XMLIntf;
type
{ Forward Decls }
IXMLDECLARType = interface;
IXMLDECLARHEADType = interface;
IXMLDECLARBODYType = interface;
IXMLRXXXXType = interface;
IXMLRXXXXTypeList = interface;
{ IXMLDECLARType }
IXMLDECLARType = interface(IXMLNode)
['{AF76D744-... |
{-------------------------------------------------------------------------------
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/
Soft... |
PROGRAM Ossi;
TYPE
Person = (anton, berta, clemens, doris);
Visitors = ARRAY[Person] OF BOOLEAN;
FUNCTION Valid(VAR v: Visitors): BOOLEAN;
VAR ossiHappy: BOOLEAN;
everybodyOkay: BOOLEAN;
BEGIN
ossiHappy := FALSE;
everybodyOkay := TRUE;
IF v[anton] = TRUE THEN BEGIN
everybodyOkay := (NOT v[doris]);
END
EL... |
{
This file is part of the Free Pascal Sinclair QL support package.
Copyright (c) 2020 by Karoly Balogh
Interface QDOS OS functions for applications
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will b... |
unit DBDataTableFilterFormStatePropertiesIniFile;
interface
uses
DBDataTableFilterFormStatePropertiesStorage,
PropertiesIniFileUnit,
TableViewFilterFormUnit,
SysUtils,
Classes;
type
TDBDataTableFilterFormStatePropertiesIniFile = class (TDBDataTableFilterFormStatePropertiesStorage)
protected
... |
unit RGBHSVUtils;
interface
uses
Windows, SysUtils, Classes, Graphics, Math, Scanlines;
procedure Clamp(var Input: integer; Min, Max: integer);
function RGBtoRGBTriple(R, G, B: byte): TRGBTriple;
function RGBtoRGBQuad(R, G, B: byte): TRGBQuad;
function RGBTripleToColor(Triple: TRGBTriple): TColor;
proced... |
{
ID:because3
PROG:maze1
LANG:PASCAL
}
program maze1;
const l:array [0..3,1..2] of longint=((-1,0),(0,1),(1,0),(0,-1));
var f,s:array [1..201,1..77] of boolean;
c:array [1..201,1..77] of longint;
h,w,ei,ej,si,sj:longint;
procedure init;
var i,j:integer;
ch:char;
begin
readln(w,h);
f... |
unit Controller.API;
interface
uses Model.Entity.CADASTRO_CARREGAMENTO, Model.Entity.CADASTRO_DESPESAS,
System.JSON, System.Net.HttpClientComponent;
type TApi = class(TObject)
private
FNetHTTPClient :TNetHTTPClient;
FNetHTTPRequest :TNetHTTPRequest;
FJSonObject :TJSONObject;
protected
public
function Logi... |
unit Test.CReader;
interface
uses
WvN.Pascal.CReader,
WvN.Pascal.Model,
DUnitX.TestFramework;
type
[TestFixture]
CReaderTests = class(TObject)
public
onprogress:TOnProgress;
PascalUnit:TPascalUnit;
t:string;
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
// Samp... |
unit FormSettingPostgreSQL;
interface
uses
Settings,
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.AppEvnts, Vcl.StdCtrls;
type
TFrmSettingPostgreSQL = class(TForm)
grpSetting: TGroupBox;
Label1: TLabel;
... |
unit TabbedTemplate;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.TabControl,
{$IFDEF ANDROID}
Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.Net, Androidapi.Helpers, FMX.Helpers.Andro... |
unit amMouseWheel;
// -----------------------------------------------------------------------------
// The original author is Anders Melander, anders@melander.dk, http://melander.dk
// Copyright ¨Ï 2008 Anders Melander
// -----------------------------------------------------------------------------
// License:
// Crea... |
unit rfChooseForm_Unit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, AdvPanel, Front_DataBase_Unit, FrontData_Unit, BaseFrontForm_Unit,
AdvSmoothButton, ExtCtrls, StdCtrls, ActnList;
type
TChooseForm = class(TBaseFrontForm)
pnlBottom: TAdvP... |
unit UFileImport;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc.}
{ This is the worker unit for text import capability into ClickForms}
interface
uses
Window... |
program questao85;
const
max = 100;
type
Tmat = array [1 .. max,1 .. max] of integer;
function conhece(var mat:Tmat; var celebridade:integer):boolean;
var
i,j,cont:integer;
break:boolean;
begin
i:=0;
conhece:=false;
while (not conhece) do
begin
i:=i+1;
j:=0;
cont:=0;
break:=false;
while (not break) an... |
{
mteSystem
System helpers for mteFunctions.
See http://github.com/matortheeternal/mteFunctions
TODO:
- IsDirectoryEmpty
- CopyDirectory
- BatchCopyDirectory
- DeleteDirectory
- RecursiveFileSearch
- SanitizeFileName
- FileDateTimeStr
}
unit mteSystem;
{ Like ExtractFilePath, but will allo... |
unit USubscriptionMgr;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
{$WARN SYMBOL_PLATFORM OFF}
{$WARN UNIT_PLATFORM OFF}
interface
uses
Classes,
UCus... |
unit TSTOProjectWorkSpaceImpl;
Interface
Uses Windows, Classes, SysUtils, RTLConsts,
HsInterfaceEx, HsStringListEx,
TSTOProjectWorkSpaceIntf, TSTOProjectWorkSpace.Types;
Type
TTSTOWorkSpaceProjectSrcFile = Class(TInterfacedObjectEx, ITSTOWorkSpaceProjectSrcFile)
Private
FFileName : AnsiString;
Protect... |
unit zVirFileList;
interface
uses SysUtils, Classes;
const
vrtVirus = 1;
vrtVirusPartSign = 2;
vrtVirusEv = 3;
vrtVirusRootKit = 4;
vrtKeyLogger = 5;
type
// Описание вируса
TVirusRec = record
FileName : string; // Имя файла
Descr : string; // Имя вируса или со... |
//---------------------------------------------------------------------------
// This software is Copyright (c) 2015 Embarcadero Technologies, Inc.
// You may only use this software if you are an authorized licensee
// of an Embarcadero developer tools product.
// This software is considered a Redistributable as ... |
(*
Copyright (c) 2011, Stefan Glienke
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and t... |
unit dmSaldo;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
dmInternalUserServer, DB, dmInternalServer,
UserServerCalls, IBCustomDataSet, IBQuery, SOAPHTTPTrans, auHTTP;
type
TStatusResult = UserServerCalls.TStatusResult;
TSaldo = class(TInternalUserServer)
... |
unit uFramework;
interface
type
// Target (classe base para conexões DataSnap)
TCustomRemoteServer = class abstract
procedure Connect(); virtual; abstract;
end;
// Classe base para conexões a banco de dados
TCustomConnection = class abstract
procedure Open(); virtual; abstract;
end;
... |
unit fmMapaValores;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, fmBase, mini, dmMapaValores, StdCtrls, CheckLst, ActnList,
ActnMan, ExtCtrls, ImgList, DBCtrls,
Buttons, JvComponentBase,
JvBalloonHint, XPStyleActnCtrls, Grids, DBGrids, JvExDBGrids,
JvD... |
unit RipParse;
{$MODE Delphi}
{
Shawn - Another unit I borrowed from Swag too... lost the original
author of the unit but the name was Ripsee.
Thanks whoever you are
}
interface
function Display_Rip(ch : char) : boolean;
implementation
Uses Main, sysutils, VgaGlobal;
CONST Place : ARRAY [1..5] ... |
(********************************************************************
Image scanning component using EZTW32.DLL
1998. 3. 2. SungKee-Min.
South Korea.
*********************************************************************
!! Very simple, and very easy to use!!
Prope... |
unit MainForm;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, ComCtrls, StdCtrls, ButtonPanel, LCLType,
FileInfo, Calculate, DryConversion, INIFiles;
type
{ TForm1 }
TForm1 = class(TForm)
ButtonPanel: TButtonPanel;
ComboBoxKey: TComboBox;
EditTorque: TEdit;
EditShaf... |
unit eseatclasses;
interface
uses Windows, Messages, SysUtils, Classes, Dialogs,ADOdb, db;
type
Tmeetingroom=class(Tobject)
private
fid:integer;
fname:string;
fname_py:string;
faddress:string;
fcapacity:integer;
fleader:integer;
fstatus:string;
fiscomplete:boolean;
procedure cl... |
UNIT digramme;
INTERFACE
{$mode objfpc}{$H+}
{$codepage UTF8}
{$I-}
USES cwstring, sysutils, fct;
function creerDigrammeUtilisateur(fileName:String):tbx;
IMPLEMENTATION
CONST
alphabet: WideString = 'abcdefghijklmnopqrstuvwxyzàâéèêëîïôùûüÿæœç-';
nombreLettreAlphabet = 43;
(*
---------------------------------... |
unit ThoughtWorks.QRCode.Geom.Point;
interface
uses
System.Classes, System.SysUtils, System.Math;
type
TPoint = class
public
const
RIGHT = 1;
BOTTOM = 2;
LEFT = 4;
TOP = 8;
public
X, Y: Integer;
constructor Create; overload;
constructor Create(x, y: Integer); overload;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.