text stringlengths 14 6.51M |
|---|
unit MainFormU;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, CPort, Vcl.WinXCtrls;
type
TMainForm = class(TForm)
redLEDSwitch: TToggleSwitch;
ComPort1: TComPort;
btnSetup: TButto... |
unit str_serialize;
interface
uses SysUtils, Types;
type
// Поддерживаемые типы полей
TZFieldType = (ftByte, ftWord, ftDWORD, ftInteger, ftPChar, ftPWChar, ftNotDefined);
// Описание поля
TZFiledDef = record
FieldName : String; // Имя поля
FieldType : TZFieldType; // Тип данных поля
DefVal ... |
{* *****************************************************************************
PROYECTO FACTURACION ELECTRONICA
Copyright (C) 2010-2014 - Bambú Code SA de CV
Este archivo pertenece al proyecto de codigo abierto de Bambú Code:
http://bambucode.com/codigoabierto
La licencia de este código fuente se encuent... |
unit qtxScrollController;
//#############################################################################
//
// Unit: qtxScrollController.pas
// Author: Jon Lennart Aasenden
// Company: Jon Lennart Aasenden LTD
// Copyright: Copyright Jon Lennart Aasenden, all rights reserved
//
// About: This... |
unit pastagram;
{$mode objfpc}{$H+}
interface
uses
fphttpclient,
fpjson,
jsonparser,
SysUtils;
type
TIGPost = record
MediaURL: string;
Caption: string;
end;
TIGPostList = array of TIGPost;
TIGProfile = class
private
FFetched: boolean;
FBiography: string;
FFullName: ... |
// Fit4Delphi Copyright (C) 2008. Sabre Inc.
// 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 later version.
//
// This program is... |
unit Database.Utils;
interface
uses
System.Classes, System.SysUtils,
Common.Types, Datasnap.DBClient, Data.DB;
function CancelDataset(ds: TDataSet): TFunctionResult;
function SaveCdsData(cds: TClientDataSet): TFunctionResult;
implementation
function CancelDataset(ds: TDataSet): TFunctionResult;
begin
Result.... |
program trianglenumérique;
uses crt;
(*
//BUT : Fait un triangle en numéros
//ENTREE : La taille du triangle en numéros
//SORTIE : Un triangle en numéros de la taille désirée
VAR
taille, i, j : ENTIER
DEBUT
ECRIRE 'Entrez la taille du triangle en numéros !'
LIRE taille //Récupération de la taille du ... |
(*
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 UGarage;
interface
uses USimulation;
// Моделирование станции технического обслуживания автомобилей
type
// Класс TCar - обслуживаемый автомобиль
TCar = class(TProcess)
protected
procedure RunProcess; override;
public
WaitingStart : Double;
CarNum : Integer;
constructor Create;
end;
... |
(*
Copyright (c) 2012-2014, 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 ... |
unit MainFormU;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, ComCtrls, Menus, Buttons, ToolWin,
DialogProcessorU, ShapesU, ExtDlgs, StdCtrls;
type
/// Върху главната форма е поставен PaintBox, върху който се осъществява визуализа... |
{
Copyright (C) 2001-2008 Benito van der Zander, www.benibela.de
This file is part of API Manager.
API Manager 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 L... |
unit DUThreads;
interface
uses Windows, SyncObjs;
type
TLockedInteger = record
Lock:TCriticalSection;
Value:integer;
end;
Psth_ThreadInfo = ^Tsth_ThreadInfo;
Tsth_ThreadInfo= record
Handle:THandle;
ThreadID:Cardinal;
Parameter:Pointer;
Func:Pointer;
ReturnData:Pointer;
Ret... |
unit lPushData;
interface
uses System.SysUtils, System.JSON, REST.JSON, System.Rtti, System.TypInfo;
type
TBaseJSON = class
protected
FPrettyJSON: boolean;
function GetAsJSONString: string; virtual;
procedure SetAsJSONString(const AJSONString: string); virtual;
public
property AsJSONSt... |
unit UsbIoPipe;
interface
uses Windows, UsbIo_i, UsbIo, UsbIoBuf, UsbIo_i_delphi;
{************************************************************************
*
* Module: UsbIoPipe.h
* Long name: CUsbIoPipe class
* Description: USB In/Out Pipe class definition
*
* Runtime Env.: Win32, Part of UsbioL... |
PROGRAM Prime(INPUT, OUTPUT);
CONST
Min = 2;
Max = 100;
VAR
Sieve : SET OF Min..Max;
Next, Count : INTEGER;
BEGIN{Prime}
Sieve := [Min..Max];
Next := Min;
Count := Min;
WRITELN('ПРОСТЫЕ ЧИСЛА В ДИАПАЗОНЕ ДО ', Max, ': ');
WHILE Next <= Max
DO
BEGIN
WHILE Count <= Max
... |
unit ViewModel.AddEditCustomer;
interface
uses
Model.Main.Types, ViewModel.AddEditCustomer.Types;
function createViewModelAddEditCustomer (const aModel: IModelMain): IViewModelAddEditCustomer;
implementation
uses
ViewModel.Types, System.SysUtils, Core.Database.Entities, Core.Helpers, FMX.Graphics;
... |
unit ArticleLossTest;
interface
uses dbTest, dbObjectTest, ObjectTest;
type
TArticleLossTest = class (TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TArticleLoss = class(TObjectTest)
function InsertDefault: integer; override;
public
function I... |
unit u_Timer;
{$MODE Delphi}
interface
uses
LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, sqldb;
// Contador de Tempo
type
TClk = record
StartHi, StartLo: Cardinal;
TotalHi, TotalLo: Cardinal;
end;
const
ClkZero: TClk = (TotalHi: 0; TotalLo: 0);
var
CpuClock: extended; // clock da ... |
unit FormatInformation;
{
* Copyright 2008 ZXing authors
*
* 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
*
* Unless requ... |
//==============================================================================
// Module name : $RCSfile: TestRunner.pas,v $
// Description : This unit defines a class to run a test sequence
// Copyright : (c) Metronix 2015
// Reversion : $Revision 1.0$
// Compiler : Delphi 2007
// Author : 2015-06-... |
unit IdTestHMACSHA1;
interface
uses
IdHMACSHA1, IdSys, IdObjs, IdGlobal;
type
TIdTestHMACSHA1 = class(TIdPersistent)
private
FHash: TIdHMACSHA1;
function GenerateByteArray(AValue: Byte; ACount: Integer) : TIdBytes;
public
constructor Create; virtual;
destructor Destroy; override... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ Rav Soft Extended Color Combo Box }
{ }
{ Copyright (c) 2005-19 ... |
{******************************************************************************
Autor: Daniel Jurado
jurado@gmail.com
******************************************************************************}
unit uSnapShotServicesCtConector;
interface
use... |
unit Plane;
interface
uses
Types,
Classes;
type
PCell = ^TCell;
TCell = byte;
type
PCellArray = ^TCellArray;
TCellArray = array[0..maxint div sizeof(TCell) - 1] of TCell;
TRow = PCellArray;
TRay = PCellArray;
type
TCoord = smallint;
TPlanePoint = packed record
case in... |
{
ID:because3
PROG:stamps
LANG:PASCAL
}
program stamps;
var s:array [1..50] of integer;
f:array [0..2000000] of longint;
maxi:longint;
n,k:integer;
procedure qsort(l,r:longint);
var i,j,tmp,t:longint;
begin
i:=l;
j:=r;
tmp:=s[random(r-l+1)+l];
while i<=j do begin
while s[i... |
unit uscanthread;
{ winted by mnt - http://codeninja.de
uses htmlparser from www.spreendigital.de
}
interface
uses
xmlscan, usettings, uHttp, utorrentparse, ubasepath, messages,
HttpProt, sysutils, Classes, filectrl, windows, shellapi, stdctrls,
htmlpars;
type
TURLSortType = (usToTop, ... |
unit ADC_ConstEx;
interface
uses
ADC_Const;
type
TPropType = (ptInt32, ptFloat32, ptPChar);
TAdcPropRec = record
Index: Longint;
SProp: String; // String with the meaning of the property
PType: TPropType; // Type of the return value by "Get" method
end;
Const
// Total properties
... |
unit FFTGraph;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, TeeProcs, TeEngine, Chart, TadGrapher, TeeShape, Series, Func1D,
StdCtrls, Menus;
type
TfrmFFTGraph = class(TForm)
Chart1: TChart;
Series1: TLineSeries;
Series2: TChartShape;
edtF... |
unit ItemVenda;
interface
uses
Contnrs,
Produto,
CSOSNTributadoSNSemCredito, Funcoes;
type
TItens = class;
TItem = class;
TGetCodigoVenda = function :Integer of Object;
TItens = class(TObjectList)
private
function GetItem(Index :Integer) :TItem;
procedure SetItem(Index :Integer; Value: TIte... |
Program Jobs;
Const
MaxM=30; { max number of machines }
Type
Operation='A'..'B';
ProcTime=Array[Operation,1..MaxM] Of Word;
Var
N:Longint; { number of jobs }
M:Array[Operation] Of Word; { M[op] is the number of machines of type op }
PTime: ProcTime; { PTime[op,... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ Copyright(c) 2013 Embarcadero Technologies, Inc. }
{ }
{*****************************... |
unit playerRegistration;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TfrmPlayerRegistration = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
gb... |
{ Virtual memory DataSet, readed from TStream
for using with DatasetToStream() from DBFunc.pas
(C) Sergey Bodrov (serbod@gmail.com)
MIT license }
unit VMDataSet;
interface
uses
SysUtils, Variants, Classes, DB, SnapBaseDataset, SnapVirtualDataset, MemStreams;
type
{ TVirtualMemDataset }
T... |
unit uResponsavelService;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, db, LCLType;
type
TResponsavelService = class
private
public
// Aplica as regras de validação referentes à inclusão do aluno.
class procedure validarDados(dataSet: TDataSet);
end;
implementation
uses
uClass... |
unit OpenServer;
(***** Code Written By Huang YanLai *****)
{$ALIGN OFF} // turn off alignment of fields in record types.
interface
uses Windows,MSDataTypes;
// Include miscellaneous Open Data Services definitions
//
{import from <srvmisc.h>}
// NT related defines (used in original NT port)
//
type
THREAD... |
unit NtUiLib.AutoCompletion.Namespace;
{
This module provides suggestion and auto-completion logic for the native
object namespace.
}
interface
uses
Ntapi.WinUser, Ntapi.Shlwapi, DelphiApi.Reflection, NtUtils, NtUtils.Objects;
type
[NamingStyle(nsCamelCase, 'ot')]
TNamespaceObjectType = (
otUnknown,
... |
unit threads;
interface
uses kernel, config;
type
TThreadState = (tsReset, // Thread is not yet created
tsSuspended, // Thread is created but not ready to run
tsReady, // Thread is waiting to run
tsRunning, // Thread is currently active
... |
Unit BeRoZLIBCore;
{ Orginal: deflate.h -- internal compression state
deflate.c -- compress data using the deflation algorithm
Copyright (C) 1995-1996 Jean-loup Gailly.
Pascal tranlastion
Copyright (C) 1998 by Jacques Nomssi Nzali
For conditions of distribution and use, see copyright notice... |
unit GoogleOAuth2Unit;
(*
OAuth 2.0 for Web Server Applications.
使用http向谷歌服务器验证支付结果,主要有以下5步:
1、在Google Developer Console中创建一个 Web Application账户,得到
client_id,client_secret 和 redirect_uri,这3个参数后边步骤常用到(此为前提).
2、获取Authorization code .
3、利用code 获取access_token(一小时的有效期),refresh_token(此应用存在就有效).
4、由于access_token有时间限制,可利用re... |
unit RecFilters;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TFilterOpts = record
Enabled: Boolean;
Vendor:
record
Enabled: Boolean;
Values: String;
end;
Price:
record
Enabled: ... |
unit SaveTaxDocument;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorDialog, cxGraphics,
cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, dsdDB, Vcl.ActnList,
dsdAction, cxPropertiesStore, dsdAddOn,... |
unit TencentLoginUnit;
interface
uses
uLkJSON, DateUtils, SysUtils;
//TlkJSONobject DateTimeToUnix Now()依赖的库
type
//不包含构造函数constructor Create; 调用时不需要X.Create
TTencentLogin = class
private
public
function TencentLoginRequest(clientData: string): string; //返回requestData
function TencentLoginVerify... |
unit dmCampos;
interface
uses
SysUtils, Classes, DBCtrls, Forms, DB, Contnrs, Controls, dmThreadDataModule,
uPanel;
type
TCampo = class
Control: TDBText;
Field: TField;
Caption: string;
end;
TOnFoundControl = procedure (const container: TfrPanel; const control: TDBText; var accept: boolean) of... |
unit SingleRecordLookupUnbound;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxStyles, dxSkinsCore, dxSkinBlack, dxSkinBlue,
dxSkinBlu... |
unit RetornoNFe;
interface
type
TRetornoNFe = class
private
FCodigoNotaFiscal :Integer;
FStatus :String;
FMotivo :String;
private
function GetCodigoNotaFiscal :Integer;
function GetMotivo :String;
function GetStatus :String;
public
constru... |
{
http://code.google.com/p/delphi-httppool/
HTTPPool - Multithreaded HTTP request management library written with
OmniThreadLib and Synapse HTTPSend components.
JSON support using SuperObject.
Author: WILLIAM YZ YANG
Email: flyingdragontooth at gmail.com
Date: 2011.06.02
Features
* Does http request... |
unit LoyaltySaveMoney;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorDocument, cxGraphics,
cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxPCdxBarPopupMenu,
cxStyles, cxCustomData, cxFilter, cx... |
unit opendialog;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, AndroidWidget;
type
TOnFileSelected = procedure(Sender: TObject; path: string; fileName: string) of Object;
{Draft Component code by "Lazarus Android Module Wizard" [1/27/2017 22:26:55]}
{https://github.com/jmpessoa/lazandroidmodulewizar... |
unit NickStream;
interface
uses sysutils, classes, contnrs;
type
TNickStream = class(tstream)
public
procedure writeboolean(b: boolean);
function readboolean: boolean;
procedure writesmallint(i: smallint);
function readsmallint: smallint;
procedure writelongint(i: longint);
function readl... |
unit TSTOBsvIntf;
Interface
Uses Windows, Classes, SysUtils, HsInterfaceEx;
Type
IBsvImage = Interface(IInterfaceEx)
['{4B61686E-29A0-2112-9D7D-C3CE63792EF6}']
Function GetImageName() : AnsiString;
Procedure SetImageName(Const AImageName : AnsiString);
Function GetX() : Word;
Procedure SetX(... |
unit UTileManager;
interface
uses UTile,UDummyCube,UCubegrasstile,UWaterCube,UHeart,ImageLoader,pngimage;
type
TTileManager=class
private
imageLoader:TImageLoader;
public
function createTileAs(N:String):TTile;
function Bitmap(T:TTile):TPNGImage;
//function
constructor create;
... |
unit ThrdCopy_u;
interface
uses
Classes, Forms, SysUtils, Windows, Advanced, EncodeProgress_u, Dialogs;
type
TThrdCopy = class(TThread)
private
{ Private declarations }
aReplace:Boolean;
aFileList:TStringList;
aDestDir:String;
procedure CopyFileWithStream(InFile,OutFile:String);
procedu... |
unit ConditionalBranching;
{$mode objfpc}{$H+}
interface
uses
Classes,
StrUtils;
const PRICE_PER_GALLON = 6.5;
type
TfuelType = (Ethanol,Methanol,Gasoline,Diesel,NaturalGas,Hydrogen,Biodiesel);
Tperson = class
name : String;
phoneNumber : String;
age : Integer;
public
... |
{
Copyright (c) 2014 Daniele Teti, Daniele Spinetti, bit Time Software (daniele.teti@gmail.com).
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.o... |
// Inspired from
// https://github.com/catdad/canvas-confetti
unit Alcinoe.FMX.Confetti;
interface
uses
System.Math.Vectors,
System.types,
System.Classes,
system.Generics.Collections,
System.UITypes,
FMX.types,
FMX.controls,
FMX.Graphics,
Alcinoe.FMX.Ani;
Type
{*************... |
unit uBaseN;
{$ZEROBASEDSTRINGS ON}
interface
uses
System.SysUtils,
System.Math,
uBase,
uUtils;
type
IBaseN = interface
['{5D0520CF-2A5A-4B3F-9263-7C2F1F822E8B}']
function Encode(data: TArray<Byte>): String;
function Decode(const data: String): TArray<Byte>;
function EncodeString(const ... |
unit ExportTabularENTM;
uses ExportCore,
ExportTabularCore,
ExportJson;
var ExportTabularENTM_outputLines: TStringList;
function initialize(): Integer;
begin
ExportTabularENTM_outputLines := TStringList.create();
ExportTabularENTM_outputLines.add(
'"File"' //... |
{
Sobre o autor:
Guinther Pauli
Delphi Certified Professional - 3,5,6,7,2005,2006,Delphi Web,Kylix,XE
Microsoft Certified Professional - MCP,MCAD,MCSD.NET,MCTS,MCPD (C#, ASP.NET, Arquitetura)
Colaborador Editorial Revistas .net Magazine e ClubeDelphi
MVP (Most Valuable Professional) - Embarcadero Technologies - U... |
{
Description: vPlot setting class.
Copyright (C) 2017-2019 Melchiorre Caruso <melchiorrecaruso@gmail.com>
This source 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, o... |
// Developed using Delphi for Windows and Mac platforms.
// *** Ths source is distributed under Apache 2.0 ***
// Copyright (C) 2019-2020 Herbert M Sauro
// Author Contact Information:
// email: hsauro@gmail.com
{$DEFINE STACKCHECK}
unit uVM;
interface
Uses System.SysUtils, System.Diagnostics, System.TimeSpan, u... |
unit CallCenterLibrary;
interface
var
KeyCharsSet: set of Char = [ '.', ',', '''', ';', ':', '?', '>', ' ',#13,#10,#9,'´', '`','!'];
function TotalPalavras(const WordText:String):Integer;
implementation
function TotalPalavras(const WordText:String):Integer;
var
i: Integer;
F1,F2: boolean;
begin
result := 0;
fo... |
unit ReadStringFunction;
interface
Function ReadString(prompt : String):String;
Function ReadDouble(prompt: String): Double;
Function ReadInt(prompt : String):Integer;
Function ReadIntegerRange(prompt : String ; min, max : Integer):Integer;
implementation
uses
sysUtils;
Function ReadString(prompt : Strin... |
{ ***************************************************************************
Copyright (c) 2016-2019 Kike Pérez
Unit : Quick.ORM.Engine
Description : Rest ORM Engine
Author : Kike Pérez
Version : 1.5
Created : 02/06/2017
Modified : 08/05/2019
This file is part of QuickORM: htt... |
unit IdTestCoderHeader;
//http://www.faqs.org/rfcs/rfc1522.html
interface
uses
IdCoderHeader,
IdTest;
type
TIdTestCoderHeader = class(TIdTest)
published
procedure TestDecodeHeader;
end;
implementation
procedure TIdTestCoderHeader.TestDecodeHeader;
const
//bug, used to decode t... |
{$MODESWITCH RESULT+}
{$GOTO ON}
(*************************************************************************
Cephes Math Library Release 2.8: June, 2000
Copyright 1984, 1987, 1995, 2000 by Stephen L. Moshier
Contributors:
* Sergey Bochkanov (ALGLIB project). Translation from C to
pseudocode.
See s... |
unit AbstractReferenceFormController;
interface
uses
ReferenceFormViewModel,
ReferenceFormRecordViewModel,
ReferenceFormRecordViewModelMapper,
AbstractReferenceFormControllerEvents,
AbstractCardFormControllerEvents,
EventHandler,
Forms,
Controls,
EventBus,
Event,
unReferenceForm,
AbstractForm... |
unit dmDataComunSesion;
interface
uses
SysUtils, Classes, DB, IBCustomDataSet, IBQuery, Controls;
type
EDataComunSesion = class(Exception);
TSesion = record
OIDSesion: integer;
Fecha: TDate;
end;
TDataComunSesion = class(TDataModule)
qSesionFecha: TIBQuery;
qSesionFechaOID_SESION: TSmalli... |
//WinDuForm
//
//MIT License
//
//Copyright (c) 2020 ottigeda
//
//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... |
{*****************************************************************************
* The contents of this file are used with permission, 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
* ht... |
program SortComparison;
{$mode objfpc}{$H+}
uses {$IFDEF UNIX} {$IFDEF UseCThreads}
cthreads, {$ENDIF} {$ENDIF}
Classes, sysutils { you can add units after this };
procedure BubbleSort(var X: array of integer);
var
Temp: integer;
i: integer;
Changed: boolean;
begin
repeat
... |
unit Client.Controller;
interface
uses
System.Classes,
System.SysUtils,
Client.VO;
type
TClientController = class(TPersistent)
private
{ private declarations }
class var FInstance: TClientController;
constructor CreatePrivate;
class function StrToEnumerado(out ok: boolean; const s: string;... |
Program P121502; {IOI 94}
Const Test = true;
Var inp,out: text;
Procedure Init;
Begin
If Test then Writeln('IOI''94 - Day 1 - Problem 2: The Castle');
Assign(inp,'input.txt'); Reset(inp);
Assign(out,'output.txt'); ReWrite(out);
If Test then Writeln('Initialized')
End;
Procedure Fini;
Begin
Close(inp); Close(... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, MyUtils,
Winapi.ShellAPI, DragControl;
type
TForm1 = class(TForm)
edt1: TEdit;
btn1: TButton;
btn_CRK: TButton;
btn_R... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
unit uLoginControle;
interface
uses
uUsuario, Vcl.Dialogs, System.SysUtils, uLogHelper;
type
TLoginControle = class
private
FgravarLog: Boolean;
function buscaUsuarioPorEmail(_email: string): TUsuario;
function verificarSenhaCorreta(_usuario: TUsuario; senha: string): Boolean;
public
function... |
object DM_Tab: TDM_Tab
OldCreateOrder = False
Height = 532
Width = 771
object Arquivo: TUniQuery
SQLInsert.Strings = (
'INSERT INTO arquivo'
' (id, arquivo_departamento_id, arquivo_categoria_id, arquivo_su' +
'bcategoria_id, arquivo_tipo_id, arquivo_nome, arquivo_exten... |
unit PlgTSTOPluginDemo;
interface
uses
TSTOPluginIntf,
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, PlgTSTOCustomPlugin, ImgList, TB2Item, SpTBXItem;
type
TTSTOPluginDemo = class(TTSTOCustomPlugin)
SpTBXBItemContainer1: TSpTBXBItemContainer;
SpTbxPluginDemo: TSp... |
unit IPCamViewerVCL;
interface
uses
Windows,
Messages,
SysUtils,
Variants,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
StdCtrls,
ExtCtrls,
jpeg,
IdBaseComponent,
IdComponent,
IdTCPConnection,
IdTCPClient,
IdHTTP,
IdAuthentication,
IdIOHandler,
IdIOHandl... |
unit AccountGroupTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TAccountGroupTest = class (TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TAccountGroup = class(TObjectTest)
function InsertDefault: integer; override;
publi... |
unit MockServer;
interface
uses
Server;
type
TMockServer = class(TServer, IServer<string, Boolean>)
public
function SendMessage(msg : string): Boolean;
function ReceiveMessage: string;
end;
implementation
{ TMockService }
function TMockServer.ReceiveMessage: string;
begin
Result := 'This is the ... |
{$R+} {$I+} {$X-}
{$S+} {$Q+}
PROGRAM Pr3A;
USES Crt;
CONST
bola = chr (9);
bloque = chr (178);
FILAS = 8;
COLUMNAS = 5;
TYPE
TFilas = 1..FILAS;
TColumnas = 1..COLUMNAS;
TTablero = ARRAY [TFilas, TColumnas] OF char;
TDireccion = (N, S, E, O, NE, NO, SE, SO);
VAR
opcion: integer;
Tablero: ... |
Unit GenUtilities;
{$IFDEF FPC}
{$MODE DELPHI}
{$ENDIF}
Interface
Uses SysUtils;
Const
Tab = #9;
PathSeparator = '\';
CrLf = #13#10;
Type
Stream = Class
Protected
_Buffer:PByte;
_Size:Cardinal;
_Pos:Cardinal;
Function GetEOF:Boolean;Virtual;
Public
... |
unit FrogTrace;
interface
uses
FrogObj, Numerics, SignalField, Func1D, TimeFreq;
type
TFROGTrace = class(TFrogObject)
private
mN: integer;
mDelT: double;
mDelLam: double;
mLam0: double;
mDelF: double;
protected
function GetMax: double;
public
Vals: PArray;
fu... |
unit TBlokTrat;
{
Definice a obsluha technologickeho bloku Trat
tento blok by se ve skutecnosti na panelu nemel vyskytnout - slouzi pouze jako
rodic dvou uvazek.
U bloku trati je zajisteno, ze existuji a jsou typu TBlkTU
Bloky, ktere tomuto nevyhovuji, jsou po startu odstraneny.
}
interface
uses IniFiles, TBlo... |
unit unitFormExportProjectAsTemplate;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, StdCtrls,
Buttons;
type
{ TFormExportProjectAsTemplate }
TFormExportProjectAsTemplate = class(TForm)
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
EditTheme: TEdit;
... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
Unit CRCControl; {Implements 32Bit CRC Routines}
{Information:
* Data Size = 1024
* Code Size = 268
* Stack Size = 0
* Number of Lines = 92}
Interface
Type String8=String[8];
Const
CRCSeed = $ffffffff;
CRC32tab : Array[0..255] of LongInt = (
$00000000, $77073096, $ee0e612c, $9909... |
unit Unit11;
interface
uses
Classes,Windows, Messages, SysUtils, Variants, Graphics, Controls, Forms,
Dialogs, StdCtrls, FileCtrl,ComCtrls, Buttons, ShellAPI;
type
TForm11 = class(TForm)
DriveComboBox1: TDriveComboBox;
DirectoryListBox1: TDirectoryListBox;
FileListBox1: TFileListBox;
Button1: ... |
unit frmQrcode;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseForm, QRGraphics, Vcl.StdCtrls,
Vcl.ComCtrls, Vcl.ExtCtrls, DelphiZXIngQRCode, QR_Win1251, QR_URL, System.IOUtils,
VGCore_TLB, SVGImage, Cap... |
unit libojconst;
interface
type
TExceptionRec=record
ExceptionCode: cardinal;
Text: string;
end;
const
ProductName = 'SXKDZ Cena';
ProductVersion = '0.8.1';
ProductVersionCode8 = '00080100';
HomepageURL ... |
unit MiscUtils;
interface
uses
SysUtils, Windows;
const
cTab = #9;
type
TLogStaff = (lsSeparator, lsBigError);
TSetOfChar = set of Char;
const
White = FOREGROUND_BLUE or FOREGROUND_GREEN or FOREGROUND_RED or FOREGROUND_INTENSITY;
clInformation = FOREGROUND_GREEN or FOREGROUND_INTENSITY;
clError ... |
unit UListReports;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
// V6.8.0 modified 052709 JWyatt
// Moved the btnOpenClone, btnOpen and btnClose objects left 9 pi... |
unit uControlsTunning;
interface
uses DBCtrls, Graphics, uGlobais, Dialogs;
type
TDBEdit = class(DBCtrls.TDBEdit)
private
{ Private declarations }
FOldColor : TColor;
protected
procedure DoEnter; override;
procedure DoExit;override;
end;
type
TDBLookupComboBox = class(DBCtrls.T... |
unit Queen;
interface
uses Simulation;
type
TQueen = class(Coroutine)
strict protected
{ Private Declarations }
procedure Run; override;
public
Col : Byte;
Row : Byte;
constructor Create(ACol : Byte);
end;
implementation
uses Board;
{ TQueen }
constructor TQueen.Create(ACol : Byte);
beg... |
unit ksAutoUpdater;
interface
type
TksUpdateAvailableEvent = reference to procedure(Sender: TObject; AETag: string);
IksAutoUpdater = interface
function GetETag: string;
function GetUpdateUrl: string;
procedure SetUpdateUrl(const Value: string);
function UpdateAvailable: Boolean;
procedure Do... |
unit XMLMenuTranslation;
interface
uses xmldom, XMLDoc, XMLIntf;
type
{ Forward-Deklarationen }
IXMLMENUType = interface;
IXMLENTRYType = interface;
{ IXMLMENUType }
IXMLMENUType = interface(IXMLNode)
['{8F36F5E2-834F-41D9-918F-9B1A441C9074}']
{ Zugriff auf Eigenscha... |
unit fmAltSenha;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses,
uniGUIClasses, uniGUIForm, uniSpeedButton, uniButton, uniBitBtn,
uniGUIBaseClasses, uniPanel, uniGroupBox, uniEdit, uniDBEdit, uniLabel, DB,
ZAbstr... |
unit DtDBEdit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, strutils, Controls, Graphics, Dialogs, DbCtrls, LSRegEx, MaskEdit, LCLStrConsts, LMessages, LCLType, db;
type
//todo: implement RecoverMode
//TRecoverMode = (rmNone, rmClear, rmRestore);
TValidateDataEvent = procedure(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.