text stringlengths 14 6.51M |
|---|
{******************************************************************************}
{ }
{ Library: Fundamentals 5.00 }
{ File name: flcTCPServerUtils.pas ... |
{ *********************************************************************************** }
{ * CryptoLib Library * }
{ * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * }
{ * Github Repository <https://github.co... |
program LoliBlink;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ you can add units after this },
GPIO, Crt, SysUtils;
var
BinaryOut: TBinaryOutput;
Status: Boolean;
x: Char;
begin
BinaryOut := TBinaryOutput.Create(nil);
try
BinaryOut.Addres... |
{ behavior3delphi - a Behavior3 client library (Behavior Trees) for Delphi
by Dennis D. Spreen <dennis@spreendigital.de>
see Behavior3.pas header for full license information }
unit Behavior3.Core.Blackboard;
interface
uses
System.Rtti, System.Generics.Collections, System.Generics.Defaults;
type
TB3Blackboar... |
unit UnitMain;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TfrmMain }
TfrmMain = class(TForm)
btnSubmit: TButton;
edMin: TEdit;
edHour: TEdit;
Label1: TLabel;
Label2: TLabel;
lblCorrect: TLabel;
procedure bt... |
unit Math;
interface
(* ---------------------- *) (* --------------------------- *)
(* MATH FUNCTIONS TP-UNIT *) (* LOGARITHM, POWERS AND ROOTS *)
(* ---------------------- *) (* --------------------------- *)
function Power (x,y:real):real; (* x to the power of y *)
function Root (x,y:re... |
unit UpdateRoutesCustomFieldsUnit;
interface
uses SysUtils, BaseExampleUnit, CommonTypesUnit;
type
TUpdateRoutesCustomFields = class(TBaseExample)
public
procedure Execute(RouteId: String; RouteDestinationId: integer);
end;
implementation
procedure TUpdateRoutesCustomFields.Execute(RouteId: String;
... |
unit RemoveAddressBookContactsRequestUnit;
interface
uses
REST.Json.Types, System.Generics.Collections,
GenericParametersUnit;
type
TRemoveAddressBookContactsRequest = class(TGenericParameters)
private
[JSONName('address_ids')]
FAddressIds: TArray<integer>;
public
property AddressIds: TArray<in... |
unit uSceneMenu;
interface
uses uScene, Graphics, uGraph, uButton, uSceneAbout, uResFont,
uSceneConfig, uSceneHelp;
type
TMenuItem = (miNone, miTavern, miHelp, miConfig, miAbout, miQuit);
const
MenuCaption: array [miTavern..miQuit] of string =
('Таверна', 'Справка', 'Опции', 'Авторы', 'Выход')... |
{*******************************************************************************
* *
* TksSpeedButton - TSpeedButton with iOS style badge *
* ... |
Program ProgramaVector;
Const
DimF = 10;
Type
vector = Array [ 1..DimF] of integer;
procedure crearvector(var v:vector; dimf:integer);
var
i:integer;
begin
randomize;
for i:=1 to dimf do begin
V[i]:=random(100);
end;
end;
procedure imprimirvector (V:vector; diml:integer);
var
i:integer;
begin
... |
unit QuickView;
// Copyright (c) 1996 Jorge Romero Gomez, Merchise.
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls,
Win95FileViewers, WinEnum, DragDrop;
type
TQuickView =
class( TCustomControl )
published
property Align;
... |
program unisciFile;
uses
sysUtils,crt;
const
PATHFONE='fileOne.txt';
PATHFTWO='fileTwo.txt';
DMAX = 50;
type
Tfile = text;
Tpila = record
corpo:array[1..DMAX] of integer;
top:integer;
end;
var
fileOne,fileTwo:Tfile;
pila:Tpila;
procedure initFile(var ... |
unit Rule_AVEDEV;
interface
uses
BaseRule,
BaseRuleData;
(*//
AVEDEV 平均绝对偏差 Mean absolute deviation, MAD
AVEDEV
含义:平均绝对偏差。
用法:AVEDEV(X,N)
这个指标 没有前向指标做参考 可以
使用 倒推的方法
//*)
type
TRule_AVEDEV = class(TBaseRule)
protected
fParamN: Word;
fFloatRet: PArrayDouble;
function Get_AVEDEV_ValueF(... |
//Exercicio 21:Faça um algoritmo que leia o ano de nascimento de uma pessoa, calcule e mostre sua idade e, também,
//verifique e mostre se ela já tem idade para votar (16 anos ou mais) e para obter a carteira de habilitação
//(18 anos ou mais).
{ Solução em Portugol
Algoritmo Exercicio 21;
Const
ano_atual = 2... |
unit Model.PlanilhaRoteirosExpressas;
interface
uses Generics.Collections, System.Classes, System.SysUtils;
type
TPlanilhaRoteiroExpressas = class
private
FLogradouro: String;
FZona: String;
FBairro: String;
FPrazo: String;
FCEPFinal: String;
FCEPInicial: String;
FCCEP5: String;
F... |
unit GetConfigValueUnit;
interface
uses SysUtils, BaseExampleUnit, EnumsUnit;
type
TGetConfigValue = class(TBaseExample)
public
procedure Execute(Key: String);
end;
implementation
uses
CommonTypesUnit, NullableBasicTypesUnit;
procedure TGetConfigValue.Execute(Key: String);
var
ErrorString: S... |
unit MapStringToObject;
interface
uses
Classes;
const
HashTableSize = 256;
type
TMapMode = (mmUse, mmOwn);
TMapStringToObject =
class
public
constructor Create(aMode : TMapMode);
destructor Destroy; override;
private
HashTable : array[0..pr... |
unit osUtils;
interface
uses
sysutils, classes, dbtables, typinfo, contnrs, forms, db;
type
// Restrições a usuario
TRestricaoUsuario = class
IdRestricao: integer;
Id: variant;
Texto: String;
end;
// Registro
TosClassRef = class(TObject)
private
FClassRef: TPersiste... |
unit ImageCache;
interface
uses
Windows, Classes, GameTypes, LanderTypes, MapTypes;
const
cBasicZoomRes : TZoomRes = zr32x64;
cBasicRotation : TRotation = drNorth;
type
TLandImages = array[idLand] of TGameImage;
type
TCacheImager =
class(TInterfacedObject, IImager)
private
constructor... |
unit uAccessEvent;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, ToolPanels, ComCtrls, AdvPageControl, Shader,
StdCtrls, AdvEdit, AdvEdBtn, PlannerDatePicker, AdvCombo, Grids,
BaseGrid, AdvGrid, AdvPanel, Buttons, uSubForm, CommandArray, RzGrids,
... |
// islip - IneQuation's Simple LOLCODE Interpreter in Pascal
// Written by Leszek "IneQuation" Godlewski <leszgod081@student.polsl.pl>
// Bytecode definition
unit bytecode;
interface
uses typedefs, variable;
const
// ====================================================
// opcodes
// ====================... |
program TESTDEC ( OUTPUT ) ;
const CONST1 = 1234.56 ;
type DEC72 = DECIMAL ( 7 , 2 ) ;
DEC152 = DECIMAL ( 15 , 2 ) ;
PERSON = record
VORNAME : CHAR ( 20 ) ;
NACHNAME : CHAR ( 20 ) ;
ALTER : INTEGER ;
GROESSE : DECIMAL ( 3 , 2 ) ;
... |
unit Unit2;
interface
uses
System.SysUtils, System.Classes, IPPeerClient, REST.OpenSSL,
REST.Backend.KinveyProvider, REST.Backend.ParseProvider;
{$REGION 'My Secret Keys'}
const
KINVEY_App_Key = '---';
KINVEY_App_Secret = '---';
KINVEY_Master_Secret = '---';
PARSE_App_Id = '---';
PARSE_RESTApi_Key = '... |
program runden (input, output);
{Zahl wird auf das nächstgelegene Vielfache von 100 auf- oder abgerundet.}
var
Z: integer; {einzugebene Zahl}
modZ: integer; {Ergebnis von Z mod 100}
roundZ: integer; {gerundete Zahl}
begin
writeln ('Gib die zu rundende Zahl ein.');
read (Z);
modZ := Z mod 100;
... |
{
Exercício 36: Elabore um algoritmo que receba o valor de dois números inteiros e a operação aritmética desejada.
Calcule e exiba, então, a resposta adequada. Utilize os símbolos da tabela abaixo para ler qual a operação aritmética escolhida.
Símbolo Operação
+ Adição
- Subtraç... |
// defines a stack and a stackstack for the code formatter based on a pseudo template
// Original Author: Egbert van Nes (http://www.dow.wau.nl/aew/People/Egbert_van_Nes.html)
// Contributors: Thomas Mueller (http://www.dummzeuch.de)
// Jens Borrisholt (Jens@borrisholt.dk) - Cleaning ... |
unit StockIndexData_Get_Sina;
interface
uses
BaseApp,
Sysutils,
UtilsHttp,
win.iobuffer,
define_dealitem,
StockDayDataAccess;
type
TDealDayDataHeadName_Sina = (
headNone, // 0
headDay, // 1 日期,
headPrice_Open, // 7开盘价,
headPrice_High, // 5最高价,
headPrice_Close, // 4收盘价,
... |
// Upgraded to Delphi 2009: Sebastian Zierer
(* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* 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 a... |
unit ParentKeywordsPack;
{* Набор слов словаря для доступа к экземплярам контролов формы Parent }
// Модуль: "w:\common\components\gui\Garant\VCM\View\ParentAndChild\Forms\ParentKeywordsPack.pas"
// Стереотип: "ScriptKeywordsPack"
// Элемент модели: "ParentKeywordsPack" MUID: (4F6B66CB0200_Pack)
{$Include w:\common\... |
unit firetrap_hw;
interface
uses {$IFDEF WINDOWS}windows,{$ENDIF}
nz80,m6502,mcs51,main_engine,controls_engine,gfx_engine,rom_engine,
pal_engine,sound_engine,ym_3812,msm5205;
function iniciar_firetrap:boolean;
implementation
const
firetrap_rom:array[0..2] of tipo_roms=(
(n:'di-02.4a';l:$800... |
unit jsvarhelper;
//create by swish
interface
uses classes, sysutils, types, dcef3_ceflib, dcefb_Browser, syncobjs, variants;
type
TJsVars = class
protected
FEvent: TEvent;
FValue: Variant;
FBrowser: TDcefBrowser;
procedure SetReady; inline;
function Wait(ATimeout: Cardinal = INFINITE): TWa... |
Unit HmrcRestClient;
(* ****************************************************************************
* HMRC API REST Client Unit *
******************************************************************************
* This unit contains new class definitions which inhe... |
//****************************************************************
//
// Inventory Control
//
// Copyright (c) 2002-2003 Failproof Manufacturing Systems.
//
//****************************************************************
//
// Change History
//
// 03/10/2003 David Verespey Create Form
//
u... |
unit udmLayouts;
interface
uses
Windows, System.UITypes, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, udmPadrao, DBAccess, IBC, DB, MemDS;
type
TdmLayouts = class(TdmPadrao)
qryManutencaoIDLAYOUT: TIntegerField;
qryManutencaoFILIAL: TStringField;
qryManutencaoNOME: TSt... |
unit Containers;
interface
uses
SysUtils, Classes, HashTables;
const
DEFAULTBUFSIZE = 1024;
type
// Forward declarations
TItemReader = class;
TItemWriter = class;
// The item type
TItem = class
protected
constructor Read(Reader: TItemReader); virtual;
procedure Wri... |
unit mcCompileIntercept;
interface
uses
Classes,
InterceptIntf;
type
TTestInterceptor = class(TInterfacedObject,
ICompileInterceptor)
public
{ICompileInterceptor}
{ GetOptions() returns the interceptor's options. }
function GetOptions: TCompileInterceptOptions; stdcal... |
{$OPTIMIZATION ON}
{$RANGECHECKS OFF}
unit DblGraphics;
interface
uses Windows,Classes,Graphics,Misc;
const
BMP256InfoStatSize=SizeOf(TDblPoint);
type
TCanvasWrapper=class(TObject)
protected
FCanvas:TCanvas;
FDstShift:TPoint;
FSrcShift:TDblPoint;
FSrcScale:TDblPoint;
private
function Ge... |
unit uClienteEmailController;
interface
uses
System.SysUtils, uDMClienteEmail, uRegras, uDM, Data.DB, uEnumerador,
uFuncoesSIDomper;
type
TClienteEmailController = class
private
FModel: TDMClienteEmail;
public
procedure LocalizarCodigo(ACodigo: integer);
procedure Post;
procedure Excluir;
... |
{
$Project$
$Workfile$
$Revision$
$DateUTC$
$Id$
This file is part of the Indy (Internet Direct) project, and is offered
under the dual-licensing agreement described on the Indy website.
(http://www.indyproject.org/)
Copyright:
(c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All r... |
unit TestExceptionHandler;
interface
uses
TestFramework,
Should
;
implementation
initialization
Should.RegisterExceptionHandler(
procedure (evalResult: TEvalResult)
begin
case (evalResult.Status) of
TEvalResult.TEvalStatus.Falure:
raise TestFramework.ETestFailure.Create(... |
unit unCidadeModel;
interface
type
TCidadeModel = class
private
FCidadeID: Integer;
FNome: String;
FCodigo_ibge: Integer;
FDensidade: Real;
FGentilico: String;
FArea: Real;
FPopulacao: Integer;
FEstadoID: Integer;
procedure SetArea(const Value: Real);
procedure SetCodigo_ibg... |
{***************************************************************}
{ }
{ Delphi XML Data Binding }
{ }
{ Generated on: 6/4/2001 6:44:51 PM ... |
unit UWaveFormComputer;
interface
uses
Windows,
Misc;
type
TWaveP2Calculator=object
tf1,Int1:Double;
tf2,Int2:Double;
Alpha1,Alpha2:Double;
function iCalcP2(const t,P1: Double): Double;
function CalcP2(const t,P1:Double):Double;
end;
TWaveFormComputer=object
protected
D1,A2,D2:PS... |
unit IPGeoLocation.Providers.IPStack;
interface
uses
IPGeoLocation.Interfaces, IPGeoLocation.Core, System.Net.HttpClient;
type
{$REGION 'TIPGeoLocationProviderIPStack'}
TIPGeoLocationProviderIPStack = class sealed(TIPGeoLocationProviderCustom)
private
{ private declarations }
protected
{ protected... |
{ $Id }
{ svnsync-like utility written with freepascal
fpsvnsync synchronizes two svn repositories without the need to set
revision properties.
Copyright (C) 2007 Vincent Snijders (vincents@freepascal.org)
This source is free software; you can redistribute it and/or modify it under
the terms of the GNU Gen... |
unit vcmBaseCollectionItem;
// Модуль: "w:\common\components\gui\Garant\VCM\implementation\Components\vcmBaseCollectionItem.pas"
// Стереотип: "SimpleClass"
// Элемент модели: "TvcmBaseCollectionItem" MUID: (4FFC3347011F)
{$Include w:\common\components\gui\Garant\VCM\vcmDefine.inc}
interface
{$If NOT Defined(NoVCM)... |
{ *********************************************************************
*
* 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... |
{*******************************************************************************
Author: Pavel Skuratovich (aka Chupaka), Minsk, Belarus
Description: Implementation of MikroTik RouterOS API Client
Version: 1.3
E-Mail: chupaka@gmail.com
Support: http://forum.mikrotik.com/viewtopic.php?... |
unit Receptor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Mask,
DB, ComCtrls, DBCtrls, DBTables, Grids, DBGrids, NxColumnClasses, NxColumns,
NxScrollControl, NxCustomGridControl, NxCustomGrid, NxGrid,
Buttons, ExtCtrls, FMTBcd, SqlExpr, gtroS... |
unit kwSaveWithOtherExtention;
{* *Формат:* расширение SaveWithOtherExtention
*Описание:* Сохраняет текущий открытый файл в редакторе под тем же именем, но с другим расширеним, заданынм через параметр "расширение"
*Пример:*
[code]
'.nsr' SaveWithOtherExtention
[code]
*Результат:* Открытый файл в редакторе будет ... |
unit Reading;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fileInOut, LazLogger;
procedure openFile(Path: String);
procedure LoadFile;
procedure GetPointers;
procedure GetAllMessages;
procedure ReadMessage(I, Loc: Integer; prevByte: Byte = $FF);
function ConvertFromHM(Message: array of byte; mIndex: Inte... |
////////////////////////////////////////////////////////////////////////////////
// LibCML.pas
// MTB communication library
// Main library class.
// (c) Jan Horacek (jan.horacek@kmz-brno.cz)
////////////////////////////////////////////////////////////////////////////////
{
LICENSE:
Copyright 2016-2018 Jan H... |
unit MFichas.Model.Caixa.Interfaces;
interface
uses
MFichas.Model.Entidade.CAIXA,
MFichas.Model.Usuario.Interfaces,
ORMBR.Container.ObjectSet.Interfaces,
ORMBR.Container.ObjectSet;
type
iModelCaixa = interface;
iModelCaixaMetodos = interface;
iModelCaixaMetodosAbrir = i... |
unit nsDataResetTree;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Библиотека "Data"
// Автор: Люлин А.В.
// Модуль: "w:/garant6x/implementation/Garant/GbaNemesis/Data/Tree/nsDataResetTree.pas"
// Начат: 2005/11/21 17:21:06
// Родные Del... |
unit udmConfigLayouts;
interface
uses
System.SysUtils, System.Classes, udmPadrao, DBAccess, IBC, Data.DB, MemDS;
type
TdmConfigLayouts = class(TdmPadrao)
protected
procedure MontaSQLBusca(DataSet: TDataSet = nil); virtual;
procedure MontaSQLRefresh; virtual;
private
FLayout: string;
FEmissor... |
unit StdEffects;
interface
uses
Effects, Languages;
const
fxLittering = 1000;
fxGraffiti = 1001;
fxWantonViolence = 1002;
fxNoise = 1003;
fxVoyeurism = 1004;
fxSabotage = 1005;
fxAreaFear = 1006;
fxMaintIncrease = 1007;
fxUnDesirabilit... |
namespace Sugar.Test;
interface
uses
Sugar,
Sugar.Cryptography,
RemObjects.Elements.EUnit;
type
MessageDigestTest = public class (Test)
public
method ComputeHash;
method Updatable;
method Algorithms;
method ToHexString;
end;
implementation
method MessageDigestTest.Algorithms;
begin
v... |
unit vtHoverButton;
interface
uses
Windows, Controls, Classes, Messages, ImgList;
type
TvtHoverButtonState = (hbsNormal, hbsHovered, hbsPressed);
TvtHoverButton = class(TGraphicControl)
private
FState: TvtHoverButtonState;
FAutoSize: Boolean;
FImageList: TCustomImageList;
FNormalImageIndex: ... |
unit WarningBaloonKeywordsPack;
{* Набор слов словаря для доступа к экземплярам контролов формы WarningBaloon }
// Модуль: "w:\garant6x\implementation\Garant\GbaNemesis\View\Document\Forms\WarningBaloonKeywordsPack.pas"
// Стереотип: "ScriptKeywordsPack"
// Элемент модели: "WarningBaloonKeywordsPack" MUID: (4EA58A390... |
{ *********************************************************************************** }
{ * CryptoLib Library * }
{ * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * }
{ * Github Repository <https://github.co... |
unit gTypes;
//=============================================================================
// gTypes.pas
//=============================================================================
//
// Responsible for declaring the custom types used within the game, as well as
// declaring constant values used throughout the ap... |
unit FFSDBGrid;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Grids, DBGrids;
type
TFFSDBGrid = class(TDBGrid)
private
FBoolAsBMP: boolean;
FImages: TImageList;
FOnRecordEdit: TNotifyEvent;
FOnRecordInsert: TNotifyEvent;
FOnRecordD... |
namespace Sugar.Test;
interface
uses
Sugar,
Sugar.Collections,
RemObjects.Elements.EUnit;
type
QueueTest = public class (Test)
private
Data: Queue<Message>;
public
method Setup; override;
method Contains;
method Clear;
method Peek;
method Enqueue;
method De... |
{ ***************************************************************************
Copyright (c) 2016-2020 Kike Pérez
Unit : Quick.HttpServer
Description : Http Server
Author : Kike Pérez
Version : 1.8
Created : 30/08/2019
Modified : 12/06/2020
This file is part of QuickLib: https:/... |
namespace RemObjects.Train.API;
uses
RemObjects.Train,
System.Threading,
RemObjects.Script.EcmaScript,
RemObjects.Script.EcmaScript.Internal,
System.Text,
System.Text.RegularExpressions,
System.Xml.Linq,
System.Linq,
System.IO,
System.Runtime.InteropServices;
type
[PluginRegistra... |
unit Model.Menus;
interface
uses Common.ENum, FireDAC.Comp.Client;
type
TMenus = class
private
FCodigo: Integer;
FSistema: Integer;
Fmodulo: Integer;
FDescricao: String;
FAcao: TAcao;
public
property Sistema: Integer read FSistema write FSistema;
property Modulo: Integer read Fmodul... |
unit functionhandling;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, typehandling;
procedure RemoveMonster(index: integer);
function IntToStr(number: integer): string;
implementation
//Removes the monster at the specified index
procedure RemoveMonster(index: integer);
var
i: integer;
... |
{!DOCTOPIC}{
Type » TPoint
}
{!DOCREF} {
@method: function TPoint.Magnitude(): Extended;
@desc: Returns the magnitude/length of the tpoint
}
function TPoint.Magnitude(): Extended;
begin
Result := Sqrt(Sqr(Self.x) + Sqr(Self.y));
end;
{!DOCREF} {
@method: function TPoint.Random(xR,yR: Int32): TPoint;
@de... |
unit BaiduMapAPI.NaviService;
//author:Xubzhlin
//Email:371889755@qq.com
//百度地图API 导航服务 单元
//官方链接:http://lbsyun.baidu.com/
//TBaiduMapNaviService 百度地图 导航服务
interface
uses
FMX.Platform, BaiduMapAPI.NaviService.CommTypes;
type
IBaiduMapNaviService = interface
['{505FA6D0-7135-49D8-B964-3921AE206B98}']
pro... |
unit helper;
{$mode objfpc}{$H+}
interface
uses
DwmApi,
Forms,
Graphics,
IdExplicitTLSClientServerBase,
IdMessage,
IdSMTP,
IdSSLOpenSSL,
JwaWinGDI,
SysUtils,
Windows;
function ScaleXTo(const SizeX, ToDPI: Integer): Integer;
function ScaleYTo(const SizeY, ToDPI: Integer): Integer;
function GetWin... |
unit VSM.Rest.Enumeradores;
interface
type
TVSMRestTipoAutenticacao = (tpNoAuth,
tpApiKey,
tpBearerToken,
tpBasicAuth,
tpDigestAuth,
tpOAuth1,
... |
unit VCMFormsProcessingPack;
// Модуль: "w:\common\components\rtl\Garant\ScriptEngine\VCMFormsProcessingPack.pas"
// Стереотип: "ScriptKeywordsPack"
// Элемент модели: "VCMFormsProcessingPack" MUID: (54DCB28C0273)
{$Include w:\common\components\rtl\Garant\ScriptEngine\vcmDefine.inc}
interface
{$If NOT Defined(NoScr... |
unit AddNewUserUnit;
interface
uses SysUtils, BaseExampleUnit, NullableBasicTypesUnit, UserParametersUnit;
type
TAddNewUser = class(TBaseExample)
public
function Execute(Parameters: TUserParameters): NullableInteger;
end;
implementation
function TAddNewUser.Execute(Parameters: TUserParameters): Nullab... |
unit clLancamentos;
interface
uses clConexao;
type
TLancamentos = Class(TObject)
private
function getCodigo: Integer;
function getData: TDateTime;
function getDescnto: TDateTime;
function getDescontado: String;
function getDescricao: String;
function getEntregador: Integer;
function ... |
unit Animation;
interface
uses
Frame,
Contnrs,
PositionRecord;
type
TAnimation = class
fFramesTotalSeconds : Double;
fFrames : TObjectList;
constructor Create();
destructor Destroy();
procedure AddFrame(aFrame : TFrame);
function GetCurrentFrame(totalElapsedSeconds : double) : TFrame;
... |
Program Random_Numbers;
const
Digits = 30; {长整数的最大长度}
O = 10000; {长整数权值}
MaxN = 200; {N最大值为200}
MaxM = 200; {M最大值为200}
type
Long = record {自定义长整数类型}
D: Integer; {长整数长度(以log10O位为单位)}
Num: array[0..Digits] of Word; {存储长整数(每位权为O)}
end;
function Max(a, b: Intege... |
unit TickServMidware;
interface
uses
System.Types,
System.Classes,
OverbyteApServer,
OverbyteRBroker,
OverbyteApSrvCli,
FFSRequestBroker,
TTSDaapiObjects;
type
/// <summary>Class managing the Midware AppServer and Request broker, that handle
/// the communication with the thin client... |
unit JPGtoBMP;
interface
uses
Windows, Graphics;
procedure LoadJPGToBMP( filename : string; DestBMP : TBitmap );
procedure CopyJPGToBMP( filename : string; DestBMP : TBitmap );
procedure TVFilter( DestBMP : TBitmap; Color : TColor );
procedure DarkImage( DestBMP : TBitmap; perc : integer );
implementa... |
unit QuickExportSetup;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,save_rtf_dialog;
type
TQuickExportSetupForm = class(TForm)
SkipImages: TCheckBox;
Button1: TButton;
Button2: TButton;
SkipCover: TCheckBox;
SkipDescr: TCheckBox... |
unit MergeSocket;
interface
uses Classes, SyncObjs, SplitSocket, SysUtils, windows;
type
TMergeSocketNewPacket = procedure(Sender: TObject; Socket: TSplitSocket) of object;
TMergeSocket = class(TObject)
private
FSocketList: TList;
ASocketPos: Integer;
PacketsAvailable: TEvent;
proc... |
unit scan;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, EnImgScr, StdCtrls, JvFormPlacement,
JvComponentBase, JvAppStorage, JvAppIniStorage, Vcl.ImgList;
type
TFScan = class(TForm)
btnok: TButton;
JvAppIniFileStorage1: TJvAppIniFileStorage;
J... |
unit uFileUtils;
interface
uses
SysUtils;
procedure DeleteFileUTF8(const AFileName : string);
function FileExistsUTF8(const AFileName: string) : Boolean;
function FindFirstUTF8(const APath: string; AAttribute: Integer; var ARecord: TSearchRec): Integer;
function DirectoryExistsUTF8(const APath: string): Bo... |
unit old_properties_commands;
interface
uses command_class_lib,classes,typInfo;
type
TChangePropertiesCommand=class(TAbstractTreeCommand)
protected
instance: TPersistent;
fPropInfo: PPropInfo;
procedure _getPropInfo(propPath: string);
end;
TChangeFloatProperty=class(TChangePropertiesCom... |
{ Subroutine SST_R_SYN_ITEM (JTARG)
*
* Process ITEM syntax.
}
module sst_r_syn_item;
define sst_r_syn_item;
%include 'sst_r_syn.ins.pas';
procedure sst_r_syn_item ( {process ITEM syntax}
in out jtarg: jump_targets_t); {execution block jump targets info}
val_param;
const
max_msg_parms = 1;... |
unit CRCUnit;
interface
uses
Windows, SysUtils, StdCtrls, Math;
type
TCRC= record
bit:byte;
Poly:DWord;
Init,XorOut:Dword;
ReflIn,ReflOut:boolean;
end;
TCRCType = (crcUserType, crc16Modbus, crc16CCIT_FFFF, crc16CCIT_XModem, crc16CCIT_Kermit, crc16ModbusLSB, crc24PLCI);
TCRCCreator = class
private... |
unit TTSCAPTIONTable;
interface
uses
Classes, DB, DBISAMTb, SysUtils, DBISAMTableAU, DataBuf;
type
TTTSCAPTIONRecord = record
PLenderNum: String[4];
PLoan: String[20];
PCIF: String[20];
PLender: String[20];
PBorrower: String[20];
PBoldLoan: String[20];
PBranch: String... |
{
Here should be a description
-----
}
unit ConfigureImtired;
uses mteFunctions, uselesscore;
const SOURCE_FILE_NAME = 'imtired2.esp';
SHIELD_L_LOW_ATTACK_DAMAGE = 10.0; // -n% lower attack damage
SHIELD_L_LOW_SPEED = 10.0; // -n% lower speed
SHIELD_H_LOW_ATTACK_DAMAGE = 20.... |
unit KM_CommonUtils;
interface
uses
MMSystem;
function TimeGet: Cardinal;
function GetTimeSince(aTime: Cardinal): Cardinal;
implementation
function TimeGet: Cardinal;
begin
Result := TimeGetTime; // Return milliseconds with ~1ms precision
end;
function GetTimeSince(aTime: Cardinal): Cardinal;
begin
// T... |
unit Classe.Animal;
interface
type
TAnimal = class
function Voz : String; virtual; abstract;
end;
TCachorro = class(TAnimal)
function Voz : String; override;
end;
TGato = class(TAnimal)
function Voz : String; override;
end;
TDinossauro = class (TAnimal)
function Voz : String; override... |
unit Usuario;
interface
type TUsuario = class
private
FNome: string;
FSenha: integer;
FLogin: string;
procedure SetNome(const Value: string);
procedure SetLogin(const Value: string);
procedure SetSenha(const Value: integer);
public
procedure Logar();
property Nome:string read FNome wri... |
{*_* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: Franšois PIETTE
Description: ClientWSocket component. It handle the client connection for
the application server.
Do not confuse TClientWSocket with TAppSrvClient which is the
cli... |
//** Вспомогательные функции и процедуры.
unit uUtils;
interface
uses
Windows, Graphics, SysUtils, Classes, Types, Math;
//** Удержать целую переменную в диапазоне.
function Clamp(Value, AMin, AMax: Integer): Integer;
//** Является ли строка числом.
function IsNumber(S: string): Boolean;
//** Ширина гр... |
unit K609132323;
{* [Requestlink:609132323] }
// Модуль: "w:\common\components\rtl\Garant\Daily\K609132323.pas"
// Стереотип: "TestCase"
// Элемент модели: "K609132323" MUID: (5628F8C0018F)
// Имя типа: "TK609132323"
{$Include w:\common\components\rtl\Garant\Daily\TestDefine.inc.pas}
interface
{$If Defined(nsTest)... |
unit playlist;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, mediacol, debug;
{ TPlaylistitemClass }
type
TPlaylistitemClass = class
Artist, Title, Path, Album: string;
LengthMS, id: longint;
Played: boolean;
constructor Create;
destructor Destroy;
procedure update(MedFileObj: T... |
unit ssDBGrid;
interface
uses
Windows, SysUtils, Classes, Controls,
dxCntner6, dxTL6, dxDBTL6, dxDBCtrl6, dxDBGrid6,
Forms, Variants, xLngManager, Messages, dialogs;
const
WM_OK_NEEDADJUST = WM_USER + 100;
type
TssDBGridGetTitleEvent = procedure (Sender: TObject; var AText: string; var ImgLi... |
unit ImageLoaders;
// Copyright (c) 1998 Jorge Romero Gomez, Merchise
interface
uses
Classes, Windows, Dibs, ListUtils;
type
TImageData = class;
CImageData = class of TImageData;
CImages = class of TImages;
TImages =
class
protected
fStream : TStream;
... |
{hint: save all files to location: C:\adt32\eclipse\workspace\AppTFPNoGUIGraphicsBridgeDemo2\jni\ }
library controls; //[by Lamw: Lazarus Android Module Wizard: 12/9/2015 22:43:08]
{$mode delphi}
uses
Classes, SysUtils, And_jni, And_jni_Bridge, AndroidWidget, Laz_And_Controls,
Laz_And_Controls_Events, unit1;... |
{ *********************************************************************************** }
{ * CryptoLib Library * }
{ * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * }
{ * Github Repository <https://github.co... |
{*******************************************************}
{ Проект: Repository }
{ Модуль: uCheckAccessParameters.pas }
{ Описание: Параметр события OnCheckAccess службы безопасности}
{ Copyright (C) 2015 Боборыкин В.В. (bpost@yandex.ru) }
{ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.