text stringlengths 14 6.51M |
|---|
unit NodeTag;
interface
uses
AvL, DataNode;
type
TNodeTag = class
private
FNode: TDataNode;
FNext, FPrev: TNodeTag;
FSelected: Boolean;
procedure ClearSelected(Tag: TNodeTag);
procedure SetSelected(Value: Boolean);
public
TreeItem: Integer;
TreeItemExpanded: Boole... |
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: Angus Robertson, Magenta Systems Ltd
Description: Forward and Reverse SSL HTTP Proxy
Creation: May 2017
Updated: May 2017
Version: 8.48
Support: Use the mailing list ics-ssl@elists.org
Legal issues: C... |
{------------------------------------
功能说明:实现IInterface接口,但不同于TInterfacedObject,
引用计数为0不会自动释放
创建日期:2011/04/02
作者:WZW
版权:WZW
-------------------------------------}
unit uIntfObj;
interface
type
TIntfObj = class(TObject, IInterface)
private
protected
{IInterface}
function QueryInterfa... |
{
Version 12
Copyright (c) 1995-2008 by L. David Baldwin,
Copyright (c) 2008-2010 by HtmlViewer Team
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 Softw... |
(*
@created(2019-12-27)
@author(J.Delauney (BeanzMaster))
Historique : @br
@unorderedList(
@item(27/12/2019 : Creation )
)
--------------------------------------------------------------------------------@br
------------------------------------------------------------------------------
Description : Simulation d... |
program swapprogram(input, output);
const a = 1;b = 2;d = 0.1;
var x,y,m,n:integer;z:real;arr: array [1..4,1..5] of integer;
procedure swap(var a,b:integer);
var t:integer;
begin
t:=a;
a:=b;
b:=t;
end;
function sum(var a,b:integer):integer;
begin
s... |
{
文件名:uDept.pas
说 明:部门管理类
编写人:刘景威
日 期:2008-05-18
更 新:
}
unit uDept;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ComCtrls, ExtCtrls, uBase;
type
TfrmDept = class(TfrmBase)
btnUp: ... |
unit ReportReadImpl;
interface
uses
ReportParent, Variants, MyExcelReport, Graphics, Math, DateUtils, SysUtils,
uDataManager, uDataModel, Windows, lyhTools;
type
TReportReadManger = class(TReportParent)
private
FTestTemplateFile: string;
procedure ReadOneProduct(AvData: OleVariant; ARow: Integer; AMa... |
unit Tmsgbox;
interface
Uses SysUtils,StdCtrls,Classes,Buttons,Controls,ExtCtrls,Menus,
Messages,TAdjForm;
Type TMessageBox=class(TAdjustForm)
protected
procedure WriteText(s:string);
procedure WriteButtons(s:boolean);
procedure WriteTitle(s:boolean);
public
fText,fBut... |
unit UFigures;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, FileUtil, Forms, Graphics, Dialogs, Menus,
ExtCtrls, Math, UDoublePoint, UPaintSpace, FPCanvas, UUtils, UFigureParams,
UGeometry;
type
TTwoDoublePointsArray = array[0..1] of TDoublePoint;
TFigure = class
strict protected
... |
unit uMainForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC.Stan.Pool, FireDAC.Sta... |
unit EchoTestServer;
interface
uses
System.SysUtils;
type
IEchoTestServer = interface
function GetPort: integer;
function GetReceivedData: TBytes;
procedure Start;
procedure Stop;
property Port: integer read GetPort;
end;
function NewEchoTestServer(const Port: integer): IEchoTestServer;... |
unit TBGFirebaseConnection.Model.Delete;
interface
uses
TBGFirebaseConnection.Interfaces,
System.JSON,
IdBaseComponent,
IdComponent,
IdTCPConnection,
IdTCPClient,
IdHTTP,
System.Net.HttpClient;
Type
TFirebaseConnectionModelDelete = class(TInterfacedObject, iFirebaseDelete)
private
FParent : i... |
unit Expedicao.Models.uSeguradora;
interface
type
TSeguradora = class
private
FSeguradoraOID: Integer;
FDescricao: string;
FCNPJ: string;
FTelefone: string;
FCorretor: string;
public
property SeguradoraOID: Integer read FSeguradoraOID write FSeguradoraOID;
property... |
Unit F04;
interface
uses typelist, F13;
procedure caribukutahun (var Tbuku : List_Buku);
{Prosedur untuk menerima input dari user dan menampilkan ke layar buku-buku yang tahun terbitnya sesuai dengan input user}
implementation
procedure caribukutahun (var Tbuku : List_Buku);
{Prosedur untuk menerima input dari user da... |
unit uGnQueue;
interface
uses
SysUtils, uGnStructures, uGnStrConst, uGnArray;
type
EQueueException = class(Exception);
TGnAbstracTGnQueue<_T> = class abstract(TGnAbstractArray<_T>)
strict private
FLeftIndex, FRightIndex: NativeUint;
strict protected
procedure Grow; override;
function GetLef... |
unit VisibleDSA.GameData;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
DeepStar.Utils.UString,
VisibleDSA.Board;
type
TGameData = class(TObject)
private
_m: integer;
_n: integer;
_maxTurn: integer;
_starterBoard: TBoard;
_showBoard: TBoard;
public
constructor Create;... |
namespace Sugar.Test;
interface
uses
Sugar,
Sugar.TestFramework;
type
RandomTest = public class (Testcase)
private
Rnd: Random;
const Seed: Integer = 42;
public
method Setup; override;
method NextInt;
method NextIntRange;
method NextDouble;
method TestSeed;
... |
{*******************************************************************************
Title: T2Ti ERP
Description: Controller relacionado à tabela [R01]
The MIT License ... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.ExtCtrls, Vcl.StdCtrls, NSOCR;
type
TfrmMain = class(TForm)
Button1: TButton;
GroupBox1: TGroupBox;
Image1: TImage;
Label1: TLa... |
unit PJBank.Empresa.Request;
interface
type
TEmpresaRequest = class
public
nome_empresa: string;
conta_repasse: string;
agencia_repasse: string;
banco_repasse: string;
cnpj: string;
ddd: string;
telefone: string;
email: string;
agencia: string;
end;
implementation
end.
|
unit Socket;
interface
type
HCkBinData = Pointer;
HCkSsh = Pointer;
HCkCert = Pointer;
HCkSocket = Pointer;
HCkByteData = Pointer;
HCkSshKey = Pointer;
HCkString = Pointer;
HCkStringBuilder = Pointer;
HCkTask = Pointer;
function CkSocket_Create: HCkSocket; stdcall;
procedure CkSocket_Dispose(handle: HCkSocket); st... |
unit uRS232;
interface
uses
classes;
type
TRS232Parity = ( rspNone, rspEven, rspOdd );
{ TRS232 }
TRS232 = class(TObject)
protected
FPort: integer;
FBaudrate: integer;
FDatabits: integer;
FStopbits: integer;
FParity: TRS232Parity;
... |
unit PostQuestionForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, FeedbackClass;
type
TPostQuestion = class(TForm)
lblAlgebra: TLabel;
lblCoordinate: TLabel;... |
unit UMeiosTransportes;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Vcl.StdCtrls, Vcl.Buttons,
Vcl.ExtCtrls, Vcl.Grids, Vcl.DBGrids;
type
TFMeiosTransportes = class(TForm)
LblLocalizarUsuari... |
unit MessageFormatterUnit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls;
type
TForm8 = class(TForm)
btnExit: TButton;
btnFormat: TButton;
lblMessage: TLabel;
EdtMe... |
unit minhaBiblioteca;
{Biblioteca pertecente a Felipe Schreiber Fernandes
DRE 116206990
Última modificação: 14/12/2016}
Interface
CONST
ALFANUM='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
ALFABETO='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
SPACE=' ';
ESPECIAIS='@#$%&*!>:?<+=?/||\'... |
unit PedidoDAO;
interface
uses
FireDAC.Comp.Client, PedidoU;
type
TPedidoDAO = class
private
public
procedure AbreQRY(var qry: Tfdquery);
function retornaUltimoNumPedido(): Integer;
procedure gravarPedido(const pedido: TPedido; const conexao: TFDConnection);
procedure deleta(const... |
unit uConfigUserDefined;
interface
uses
GnuGettext, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, uTools;
type
TfConfigUserDefined = class(TForm)
lHeader1: TLabel;
bSave: TBitBtn;
bAbort: TBitBtn;
gbApache: TGroupBox;
mConfigApache: T... |
{------------------------------------
功能说明:框架加载单元。只需要在主程序工程文件用本单元替换Forms单元即可加载框架,
其他的都不需要再改了
创建日期:2010/10/18
作者:wei
版权:wei
-------------------------------------}
unit uTangramFramework;
interface
uses
SysUtils,
Classes,
Vcl.Forms,
Windows,
SysModuleMgr;
type
TTangramApp = class
pri... |
unit frmSaveSnapshotsUnit;
{$mode delphi}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
ExtCtrls, math, LuaCanvas, FPImage, FPCanvas, FPImgCanv, FPReadPNG, FPWritePNG, betterControls;
resourcestring
rsSSAreYouSureYouWishToThrowAwayTheseSnapshots = 'Are yo... |
unit platformenemy;
{$mode objfpc}{$H+}
//target practive object
interface
uses
Classes, SysUtils, gl,glext,glu, gameobject, renderobject, graphics, healthbar,
globals;
type
TPlatformEnemy=class(TGameObject) //tutorial step 1. Targets have their own health (so not a TGameObjectWithHealth)
pr... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
unit AutoLock;
interface
uses
System.SyncObjs;
type
TAutoLock = record
private
FSyncObj: TSynchroObject; // Reference
public
constructor Create(const ASyncObj: TSynchroObject);
public
class operator Initialize(out ADest: TAutoLock);
class operator Finalize(var ADest: TAutoLock);
class o... |
unit LUX.GPU.OpenGL.Matery;
interface //#################################################################### ■
uses System.SysUtils,
Winapi.OpenGL, Winapi.OpenGLext,
LUX,
LUX.GPU.OpenGL,
LUX.GPU.OpenGL.Shader,
LUX.GPU.OpenGL.Engine;
type //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$... |
unit PessoaController;
interface
uses
// Delphi
System.SysUtils,
System.StrUtils,
System.JSON,
Data.DB,
// Rest WD
uDWJSONObject,
uDWConstsCharset,
uDWConsts,
// FireDAC
FireDAC.Comp.Client;
type
TPessoaController = class
private
protected
public
class function Consultar(p... |
program RealExample;
var
r: real;
begin
r := 1.0;
write r
end.
|
unit hcDeploymentStudio;
interface
uses
hcObject
,hcObjectList
,hcAttribute
,hcTypes
;
type
ThcDeploymentStudio = class(ThcObject)
private
public
class procedure Register; override;
function Write(Dest :ThcObjectStore; ValidateFirst :boolean) :boolean; override;
function Us... |
{
List forms with load order 00 from containers, leveled lists and references
Used for Skywind project
}
unit UserScript;
var
slList: TStringList;
function Initialize: integer;
begin
// list, ignore duplicated ones
slList := TStringList.Create;
slList.Sorted := True;
slList.Duplicates := dupIgnore;
end;... |
// Setup TEdgeBrowser correctly
//
// https://blogs.embarcadero.com/execute-scripts-and-view-source-with-tedgebrowser/
// https://docwiki.embarcadero.com/RADStudio/en/Using_TEdgeBrowser_Component_and_Changes_to_the_TWebBrowser_Component
unit HumbleBundleDLUnit1;
interface
uses
Winapi.Windows, Winapi.Mess... |
unit qsdk.alipay;
interface
uses system.Classes, system.SysUtils;
type
TAlipayResult = (arUnknown, arOk, arCancel, arError);
IAlipayService = interface
['{F225AEBC-475A-4513-BC08-5F82BF3713E0}']
function getInSandbox: Boolean;
procedure setInSandbox(const AVal: Boolean);
function getInstalled: B... |
unit DCPtiger;
{$MODE Delphi}
interface
uses
Classes, Sysutils, Crypto;
type
THashTiger= class(THash)
protected
Len: int64;
Index: DWord;
CurrentHash: array[0..2] of int64;
HashBuffer: array[0..63] of byte;
procedure Compress;
public
class function Algorithm: THashAlg... |
unit SnomedTests;
{
Copyright (c) 2011+, HL7 and Health Intersections Pty Ltd (http://www.healthintersections.com.au)
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 m... |
unit Model.Firedac.Conexao;
interface
uses
System.Classes,
//units necessárias para funcionamento do Firedac
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.Comp.Client,
FireDAC.Co... |
unit TNT_Model;
// Gestion des modeles 3D
// ----------------------
// Les modeles sont chargés à partir d'un fichier .tnt
// Chaque modele possede un ou plusieurs skins (textures mappées sur
// le modele)
// Les modeles peuvent etre constitués de plusieurs sous-objets et de
// plusieurs frames
interfa... |
{ Arquivo criado automaticamente Gerador Multicamadas
(Multitiers Generator VERSÃO 0.01)
Data e Hora: 11/10/2016 - 23:04:17
}
unit Marvin.AulaMulticamada.Classes.Cliente;
interface
uses
Classes,
{ Marvin }
uMRVClasses;
type
TMRVCliente = class(TMRVDadosBase)
private
FClienteid: Integer;
FTi... |
unit ipc.jsonrpc.framework.SenderMock;
interface
uses
superobject,
dutil.util.concurrent.Result,
ipc.jsonrpc.framework.Sender;
type
TSenderMock = class(TInterfacedObject, ISender)
public
function SendRequest(const Method: string; const Params: ISuperObject): TResult<ISuperObject>;
procedure SendNot... |
{*******************************************************************************
Title: T2Ti ERP
Description: Controller do lado Cliente relacionado à tabela [VIEW_FIN_CHEQUE_NAO_COMPENSADO]
... |
unit uFrmBuscaProdutos;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uDM, Data.DB, Vcl.Grids, Vcl.DBGrids,
Vcl.StdCtrls;
type
TFrmBuscaProdutos = class(TForm)
EdtBarraPesquisaPR: TEdit;
CbCatego... |
{
Script to create and test PCRE regular expressions.
Demonstrates how to use them.
}
unit userscript;
var
frm: TForm;
pnlTop, pnlBottom: TPanel;
spl: TSplitter;
mText, mFound: TMemo;
lblText, lblLink: TLabel;
edExp: TLabeledEdit;
chkCaseLess, chkMultiLine, chkSingleLine, chkExtended, chkAnchored, ch... |
unit InfraReflectTests;
interface
uses
InfraReflect,
InfraCommonIntf,
InfraValueTypeIntf,
TestFrameWork;
type
TRelationEndInfoTests = class(TTestCase)
private
protected
// procedure SetUp; override;
// procedure TearDown; override;
published
// Test methods
// procedure... |
unit UDM;
interface
uses
FMX.Dialogs,
FMX.DialogService,
System.UITypes,
System.SysUtils, System.Classes, System.Notification, IPPeerClient, REST.Backend.PushTypes, System.JSON,
REST.Backend.EMSPushDevice, System.PushNotification, REST.Backend.EMSProvider, Data.Bind.Components,
Data.Bind.Objec... |
unit UConexao;
interface
uses FireDac.comp.client, System.SysUtils, FireDac.stan.def, FireDac.Phys.Intf,
FireDac.Phys, FireDac.Phys.FB, FireDac.stan.async, FireDac.VCLUI.Wait,
System.Classes, Data.DB, FireDac.stan.Param, FireDac.Dapt;
type
TConexao = class
const
//PATH_DATABASE = '..\..\..\dados.fdb'; pa... |
unit ImagesEditor;
interface
uses
Windows, Messages, CommCtrl, AvL, NotesFile, DataNode, Editor, ImageEx;
type
TImagesEditor = class(TEditorPage)
ToolBar: TToolBar;
ImagesList: TComboBox;
Image: TImageEx;
private
FTBImages: TImageList;
procedure Resize(Sender: TObject);
p... |
unit vagrantcommands;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Process;
type
IExecutableCommand = interface
{< Interface for all executable commands }
['{0CA93471-2F58-445F-8AA5-26F1604B8F45}']
{ execute the command }
procedure execute(params: array of string);
end;
TCustomComma... |
unit ClassStructArray;
{$mode objfpc}{$H+}
interface
type
t_value = integer;
t_size = dword;
StackArrayInt = specialize StackArray<integer>;
StackArrayChar = specialize StackArray<char>;
//Now we can use a: StackArrayInt in VAR section
//Класс стека [на основе массива]
generic StackArray<t_value> = cl... |
unit DataTypeUtilsTest;
interface
uses
Classes, SysUtils, TypInfo, TestFramework,
DatabaseDefinition;
type
TDataTypeUtilsTest = class (TTestCase)
protected
procedure CheckEquals(Expected, Actual: TDataType; Msg: String = '');
published
procedure TestStrToDataType;
end;
implementa... |
unit dmAttributesOfGroup;
interface
uses
System.SysUtils, System.Classes, fdac.dmDoc, MemTableDataEh, Data.DB, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.Stan.Param, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, FireDAC.Comp.Client, FireDAC.Comp.D... |
unit uPrincCustomAttributes;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.Rtti;
type
TIdadeMinima= class(TCustomAttribute)
private
FIdadeMinima: Byte;
public
constructor Create(AI... |
{ A notepad like editor which is used to view and edit the driver file. The
form consists of a memo component which displays the driver file and buttons
to save changes made to the drivers, choose a different driver file and close
the window. }
unit note;
{$MODE Delphi}
interface
uses
SysUtils, Class... |
// **************************************************************************************************
//
// Unit Vcl.Styles.InnoSetup.StyleHooks
// unit for the VCL Styles Plugin for Inno Setup
// https://github.com/RRUZ/vcl-styles-plugins
//
// The contents of this file are subject to the Mozilla Public License ... |
unit Log;
////////////////////////////////////////////////////////////////////////////////
//
// Author: Jaap Baak
// https://github.com/transportmodelling/Utils
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////... |
unit qplugins_router_delayload;
interface
uses classes, sysutils, qstring, qplugins_params, qplugins, qplugins_base,qjson;
{$HPPEMIT '#pragma link "qplugins_router_delayload"'}
type
(*
延迟加载服务的格式使用JSON
[
{
"Id":"Service Id",
"Path":"Service Path",
"Loader":"Loader Name"
"Module":"Service ... |
// Copyright 2018 by John Kouraklis and Contributors. All Rights Reserved.
//
// 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/licenses/LICENSE-2.0
//
// Unle... |
unit UxlStack;
interface
uses UxlClasses;
type
TxlIntStackQueueSuper = class
private
FStack: array of integer;
FSeparator: widestring;
procedure SetText (const value: widestring);
function GetText (): widestring;
protected
function IsStack (): boolean; virtual; ab... |
{
ID: ndchiph1
PROG: crypt1
LANG: PASCAL
}
uses math;
var fi,fo: text;
inset: array[0..9] of boolean;
n: integer;
procedure input;
var i,m: longint;
begin
readln(fi,n);
fillchar(inset,sizeof(inset),false);
for i:= 1 to n do begin
read(fi,m);
... |
unit ConvertePrimeiraMaiuscula;
interface
uses ConverteTexto, Classes, SysUtils;
type
TConvertePrimeiraMaiuscula = class(TConverteTexto)
private
public
function Converter: String; override;
end;
implementation
{ TConvertePrimeiraMaiuscula }
function TConvertePrimeiraMaiuscula.Converter: String;
var
Li... |
PROGRAM Split(INPUT, OUTPUT);
{Копирует в INPUT в OUTPUT, сначала нечётные, а затем чётные элементы}
CONST
Odd = 'O';
Even = 'E';
PROCEDURE CopyOut(VAR F: TEXT);
VAR
Ch: CHAR;
BEGIN {CopyOut}
WRITELN(F);
RESET(F);
WHILE NOT(EOLN(F))
DO
BEGIN
READ(F, Ch);
WRITE(OUTPUT, Ch)
END
END; {C... |
unit uGnMath;
interface
function Multiple2(const ANumber, APower: NativeUint): NativeUint;
implementation
function Multiple2(const ANumber, APower: NativeUint): NativeUint;
begin
Assert(APower <> 0, 'Multiple2: APower = 0');
Result := ((ANumber + (1 shl APower) - 1) shr APower) shl APower;
end;
end.
|
(* Elabore um programa que determine o grau de
obesidade de uma pessoa, sendo fornecido o seu
peso e a sua altura. O grau de obesidade é
determinado pelo índice da massa corpórea
(Massa = Peso / (Altura * Altura)) conforme tabela
abaixo:
Massa Corpórea Grau de Obesidade
< 26 Normal
>= 26 e < 30 Obeso
< =30 ... |
PROGRAM words;
CONST
maxrijeci=100;
maxdulj=100;
VAR
n:integer;
nrijec:ARRAY[1..5, 1..5] OF integer;
dulj:ARRAY[1..5, 1..5, 1..maxrijeci] OF integer;
FUNCTION num(c:char):integer;
BEGIN
CASE c OF
'A':num:=1;
'E':num:=2;
'I':num:=3;
'O':num:=4;
'U':num:=5;... |
unit MultiNN;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
Spin,VectorU;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
cbBinary: TCheckBox;
cbActivationFunction: TComboBox;
nrLayers: TLabel;
lbTheta: TEdit;
... |
{
DocuGes - Gestion Documental
Autor: Fco. Javier Perez Vidal <developer at f-javier dot es>
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 3 of the License, or
(at your... |
unit VideoCapReg;
interface
Procedure Register;
implementation
uses
Classes,
Videocap,
VideoDisp;
procedure Register;
begin
RegisterComponents( 'Video', [TVideoCap]);
RegisterComponents( 'Video', [TVideoDisp]);
end;
end.
|
unit globals;
interface
uses Classes, WinSock, Windows, SqlExpr, DBClient, Graphics, DB, SysUtils, ZLib,
GraphicEx, jpeg, shellApi;
//------------------------------------------------------------------------------
type
TEntityFormMode = (fmAdd, fmEdit, fmView);
//-------------------------------------------------... |
unit AdvStreamReaders;
{
Copyright (c) 2001-2013, Kestral Computing Pty Ltd (http://www.kestral.com.au)
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 th... |
unit uObjCliente;
interface
const
arquivoDados = 'CLIENTES.DATA';
nrCampos = 6;
type
TObjCliente = record
ID: integer;
NOME: string;
ENDERECO: string;
TELEFONE: string;
CPF: string;
ID_USUARIO: integer;
end;
TClientes = class(TObject)
private
Itens: array of TObjCliente;
... |
unit SystemService;
{
Copyright (c) 2001-2013, Kestral Computing Pty Ltd (http://www.kestral.com.au)
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 a... |
unit avTime;
interface
uses
Windows, SysUtils;
type
NTSTATUS = Cardinal;
TIME_FIELDS = packed record
Year,
Month,
Day,
Hour,
Minute,
Second,
Milliseconds,
Weekday : WORD;
end;
PTIME_FIELDS = ^TIME_FIELDS;
function RtlTimeToTimeFields(pTime : pointer;
... |
unit uMyUtils;
{*******************************************************************************
Project link : https://https://github.com/gilmarcarvalho/DemoRESTBase64
Created In : 2019-09-04 13:18:10
Created By : Gilmar Alves de Carvalho - (linkedin.com/in/gilmar-carvalho)
****************... |
// ----------------------------------------------------------------------------
// Unit : PxProfiler.pas - a part of PxLib
// Author : Matthias Hryniszak
// Date : 2005-03-22
// Version : 1.0
// Description : A basic time/counter-based profiler.
// Changes log : 2005-03-22 - initial version... |
unit HookGenerator;
interface
uses
Generics.Collections, Classes, Types, SysUtils;
type
TMethodType = (mtFunction, mtProcedure);
TInterfaceMethod = class
private
FName: string;
FParameterHeader: string;
FReturnType: string;
FMethodType: TMethodType;
public
property Met... |
unit USettingInfo;
interface
uses UMyUtil, Math, Generics.Collections, SysUtils;
type
// Pc 信息
TPcSettingInfo = class
public
PcID, PcName : string;
LanIp, LanPort : string;
end;
// 传输 状态
TTransferSettingInfo = class
public
UpThreadCount : Integer;
UploadSpeed : Integer;
public
... |
unit uDownloadFile;
interface
uses
System.Classes,
System.SysUtils,
IdHTTP,
IdComponent;
type
TDownloadFile = Class(TThread)
private
FUrl: String;
FOnWork: TWorkEvent;
FOnWorkBegin: TWorkBeginEvent;
FOnWorkEnd: TWorkEndEvent;
function GetFileName: string;
protected
Procedure Ex... |
unit gamecube;
//a rectangle you can collide with/stand on
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, gl,glu,glext, gameobject;
type
TGameCube=class(TGameobject)
private
w, h: single;
protected
procedure renderRelative; override;
function getWidth:single; override;
... |
unit CRDistrictReportForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, CommonFrame, CommonParentChildTreeFrame, District,
BaseObjects, Mask, ToolEdit;
type
TfrmDistrictReportForm = class(TForm)
pnlButtons: TPanel;
btnOK: TButt... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
unit uDCSensors;
interface
uses
System.Classes,
uDCObjects,
aCustomOPCSource, aOPCTCPSource,
aOPCLookupList, aOPCConnectionList;
type
TSensor = class(TDCCustomSensor)
private
FImageIndex: integer;
FSensorKind: integer;
FLookupList: TaOPCLookupList;
procedure SetSensorKind(const Value: in... |
unit gmClientDataset;
interface
{.$DEFINE BuildInstance} // Creazione strutture QB a livello di istanza (AV ?)
{$REGION 'DatasetHelper'}
{
TDataSet helper classes to simplify access to TDataSet fields and make TDataSet
work with a for-in-loop.
Author: Uwe Raabe - ur@ipteam.de
Techniques used:
- cla... |
unit FHIRClientSettings;
interface
uses
SysUtils, Classes,
AdvObjects, AdvJson,
FHIRTypes, SmartOnFhirUtilities, CDSHooksUtilities;
type
TFHIRClientSettings = class (TAdvObject)
private
FFilename : String;
copy : TJsonObject;
procedure RegisterKnownServers;
protected
json : TJsonObject;... |
unit uEditBatchElement;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
uCustomTypes,uStrUtils;
type
{ TfEditBatchElement }
TfEditBatchElement = class(TForm)
bCancel: TButton;
bOK: TButton;
cbWait: TCheckBox;
c... |
unit AniDemo;
{******************************************************************************}
{ }
{ Siege Of Avalon : Open Source Edition }
{ ------------------------------------- ... |
unit uJxdSystemConfig;
interface
uses windows, Classes, SysUtils, Controls, XmlDoc, XMLIntf;
{$M+}
type
PSysParamInfo = ^TSysParamInfo;
TSysParamInfo = record
FName: string;
FValue: string;
FNext: PSysParamInfo;
end;
PSysNode1Info = ^TSysNode1Info;
TSysNode1Info = record
FName: string;
F... |
unit artDataModule;
interface
uses
Classes, DataBase, DB, DBClient;
type
TDM = class(TDB)
Articles: TClientDataSet;
dsArticles: TDataSource;
Category: TClientDataSet;
dsCategory: TDataSource;
Pages: TClientDataSet;
dsPages: TDataSource;
public
function GetLocalPath(D... |
{Implementación de Colas con Arreglos (Lineal).}
{Maximiliano Sosa; Ricardo Quesada; Gonzalo J. García}
unit Ucolas1;
interface
uses Udatos;
const MaxCola = 20;
type
TipoCola = record
final: 0..MaxCola;
elementos: array[1..MaxCola] of TipoDato;
end;
function ColaVacia(C: TipoCola): boolean;... |
{ Subroutine PICPRG_THREAD_IN (PR)
*
* This routine is run in a separate thread created by PICPRG_OPEN.
* It reads and processes input received from the remote unit.
}
module picprg_thread_in;
define picprg_thread_in;
%include 'picprg2.ins.pas';
procedure picprg_thread_in ( {root thread routine, receiv... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, IdBaseComponent,
IdComponent, IdRawBase, IdRawClient, IdIcmpClient, Vcl.Samples.Spin;
type
TForm1 = class(TForm)
ICMP1: TIdIcmpCl... |
unit WhitespaceRemovalVisitor;
interface
uses
Classes, SysUtils,
ParseTreeNode, SourceToken, Tokens, PascalParser,
SourceTreeWalker;
type
TWhitespaceRemovalVisitor = class (TInterfacedObject, INodeVisitor)
procedure Visit(Node: TParseTreeNode);
end;
implementation
{ TWhitespaceRemoval... |
{
@author: Felipe Silvino Pereira
@date: 01/08/2017
@description: Formulario base para geração de CRUDs utilizando as validações
que forem fornecedidas por uma classe filha de TRegraCRUD.
}
unit UFrmCRUD;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.