text stringlengths 14 6.51M |
|---|
unit Troco4D.Troco;
interface
type
TCedula = (ceNota100, ceNota50, ceNota20, ceNota10, ceNota5, ceNota2,
ceMoeda100, ceMoeda50, ceMoeda25, ceMoeda10, ceMoeda5, ceMoeda1);
TCedulaHelper = record helper for TCedula
function GetCedula : String;
function GetValorCedula : String;
end;
TTroc... |
unit classCliente;
interface
uses
ClassPessoa, ClassEndereco;
type
TCliente = class(TPessoa)
private
FEndereco: TEndereco;
FValorCredito: Currency;
procedure SetEndereco(const Value: TEndereco);
procedure SetValorCredito(const Value: Currency);
public
constructor Create; overload;
con... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
// Apply metadata meshes adjsutments
unit SkyblivionMetadata;
const
sMetadataFile = 'worldspace.metadata';
var
slMeta, slv: TStringList;
//============================================================================
function Initialize: integer;
var
slFile, sl: TStringList;
i: integer;
s: s... |
unit fm_alert;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Buttons;
const
WM_DEFAULT = WM_USER+ 1013;
type
PParamAlert = ^RparamAlert;
RParamAlert = record
aFontName: String;
aFontSize: Integer;
aFontStyle:TFontStyles;
... |
program z20(input, output);
var x, y, Result: integer;
procedure gcd(x, y: integer);
var nextY, tmp: integer;
begin
if x < y then
begin
tmp := x;
x := y;
y := tmp
end;
if y = 0 then
begin Result := x end
else begin
nextY := x mod y;
gcd(y, nextY)
end
end;
begin
wri... |
unit uTipoAcrescimoModel;
interface
{
CREATE TABLE TIPO_ACRESCIMO (
ID_TIPO_ACRESCIMO VARCHAR(36) NOT NULL,
ID_ORGANIZACAO VARCHAR(36) NOT NULL,
ID_HISTORICO VARCHAR(36),
DESCRICAO VARCHAR(20)
);
}
uses
Windows, Messages, Classes, SysUtils, uHistoricoModel;
type
TTipoAcrescimo... |
unit JQObjects;
{$mode objfpc}{$H+}
interface
uses Classes, SysUtils;
type TFPListPtr = ^TFPList;
{
!!!!!!!!!!!!!!!!
JQPair<T,T2> [GENERIC]
Die Klasse JQPair ist ein Generic, welches zwei Variablen unterschiedlichen Typs speichern kann.
Ich habe sie dafür erstellt, dass ich bei einer Funktion einfach... |
unit GDIPComponents;
interface
uses
Windows, Classes, SysUtils, Graphics, Controls, Messages, ActiveX,
GDIPOBJ, GDIPAPI;
type
TCustomTransparentControl = class(TCustomControl)
private
FInterceptMouse: Boolean;
protected
procedure WMNCHitTest(var Message: TWMNCHitTest); message WM_NCHITTEST;
pr... |
unit ScannerKeywordsHash;
interface
uses SysUtils;
procedure IdentifierProc;
procedure InitKeywords;
implementation
uses Dialogs, Scanner, Tokens, HashExplorer, ComCtrls;
const
HashTableSize = 80;
type
TKeywordHashEntry = record
Node: TTreeNode;
Keywords: array [0..1] of PAnsiChar;
Tokens: array ... |
unit qsocket_base;
interface
uses classes, sysutils, qstring, qworker, syncobjs;
type
TQBaseConnection = class;
TQConnectionNotifyEvent = procedure(ASender: TQBaseConnection) of object;
TQConnectionCallback = procedure(ASender: TQBaseConnection; AParam: IntPtr)
of object;
TQBaseConnection = class
pro... |
unit BrvExtenso;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TBrvExtenso = class(TComponent)
private
{ Private declarations }
Unidade : array[0..9] of string[7];
Dezena : array[0..9] of string[10];
Centena : array[0..9] of strin... |
unit SpeedTests;
{ Requires kanjidic, EDICT2 in the same folder }
interface
uses SysUtils, Classes, TestFramework, JWBIO;
type
TSpeedTests = class(TTestCase)
protected
procedure KanjidicRead;
procedure EdictRead;
procedure KanjidicLoad;
procedure EdictLoad;
published
procedure ... |
unit uConfigServiceImplementation;
interface
uses
XData.Server.Module,
XData.Service.Common,
uServerSettings,
uServerStatus,
uConfigService;
type
[ServiceImplementation]
TConfigService = class(TInterfacedObject, IConfigService)
function GetSettings: TServerSettings;
procedure UpdateSettings(... |
unit uSequencer;
interface
uses
System.Classes;
const
CMD_UPDATE_SEQUENCE = 'UPDATE_SEQUENCE';
CMD_SUCCESS_RESPONSE = 'OK';
CMD_CHECK_STATUS = 'CHECK_STATUS';
CMD_CHECK_STATUS_RESPONSE = 'ACTIVE';
CMD_UPDATE_MODE_TO_PRIMARY = 'UPDATE_MODE_TO_PRIMARY';
CMD_GET_SEQUENCE = 'GET_SEQUENCE';
type
{$METHOD... |
unit UpgraderRunner;
interface
uses
DbUpgraderRunnerTarget;
type
TUpgraderRunner = class(TObject)
private
FTargetDbIntf: IDbUpgraderRunnerTarget;
public
// function GetExistingDbVersion(const ADbFilePathName: string): Integer;
constructor Create(const ATargetDbIntf: IDbUpgraderRunnerT... |
unit CAdotools;
interface
uses AdoInt, Contnrs, Classes, Variants;
function GetRowsAsObjectList(ARecordset: _Recordset): TObjectList;
function GetRowsAsString(ARecordset: _Recordset; AFieldDelimeter: String; ANoHeader: Boolean = False): String;
function GetRowsAsXml(ARecordset: _Recordset): String;
function GetField... |
program demouncaughtexception;
uses sysutils;
Type
EMyError = class(Exception);
begin
Raise EMyError.Create('This can be shown in an alert by setting rtl.setUncaughtException=true');
end.
|
unit Definitions;
// Assuming finding Minimum of functions thus far
interface
Const
//search space
INT = 0;
REAL = 1;
BIN = 2;
//crossover types
ONEPT = 0;
TWOPT = 1;
UNIPT = 2;
//population identifiers
PA = TRUE;
PB = FALSE;
//problem type
ORI = 0;
ORIF = 1;
RAST = 2;
SCHW = 3... |
unit NotaFiscal.DTO;
interface
uses
NotaFiscal.Status.Entity;
type
TNotaFiscalDTO = class
private
FDestinatario: String;
FUUID: String;
FNumeroNfe: String;
FEmitente: String;
FStatus: TStatusNFe;
procedure SetDestinatario(const Value: String);
procedure SetEmitente(const Value: Stri... |
unit tables;
{$MODE OBJFPC}
{$LONGSTRINGS ON}
interface {════════════════════════════════════════════════════════════════════}
uses
SysUtils, Classes;
const
FilterOperations: array[0..5] of String = ('=', '<>', '>', '>=', '<', '<=');
FilterLogic: array[0..1] of String = ('AND', 'OR');
{ –=───────────────────... |
{*_* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: François PIETTE
Description: TBuffer is an object wich buffers data in a single dynamically
allocated memory block. It is a kind of FIFO wich manages
characters in blocks of various sizes.
Crea... |
unit login_form;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Edit, FMX.Objects, zhyk_component, main, IdBaseComponent,
IdThreadComponent;
type
TLoginForm = class(TForm)
... |
unit MIDIEditorForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ResourceEditorForm, cmpBarControl, cmpPianoRoll, ExtCtrls, cmpKeyboard,
cmpMidiPlayer, cmpTrackOutputs, StdCtrls, ActnList, ComCtrls, ToolWin,
ImgList, Grids, cmpMidiGrid, cmpMidiData, unitMid... |
unit BidsByApp;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
System.Threading,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, F... |
unit uMainService;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs, uMain, Vcl.Forms;
type
TDRS = class(TService)
procedure ServiceCreate(Sender: TObject);
procedure ServiceStart(Sender: TService; var Starte... |
unit CO2Meter;
//
// COM port component from http://sourceforge.net/projects/comport/files/comport/
//
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, DateUtils,
cport;
type
TCO2Meter = class
private
FPort: TComPort;
FComPortActive: boolean;
pro... |
unit DBThreeGridUn;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DBTwoGridUn,
cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, dxBar,
dxBarExtItems, cxClasses, ActnList, cxSplitter, cxGridLevel, cxControls, cxGridCus... |
unit uTRBaixaACModel;
interface
{
CREATE TABLE TITULO_RECEBER_BAIXA_AC (
ID_TITULO_RECEBER_BAIXA_AC VARCHAR(36) NOT NULL,
ID_ORGANIZACAO VARCHAR(36) NOT NULL,
ID_TITULO_RECEBER_BAIXA VARCHAR(36),
ID_TIPO_ACRESCIMO VARCHAR(36),
VALOR NUMERIC(10,2) ... |
{
Copyright (c) 2016, Vencejo Software
Distributed under the terms of the Modified BSD License
The full license is distributed with this software
}
unit ooFS.Entry.Scan_test;
interface
uses
ooFS.Entry, ooFS.Directory, ooFS.Entry.Scan,
ooFSUtils,
{$IFDEF FPC}
fpcunit, testregistry
{$ELSE}
TestFramework
{... |
unit convert;
{$INCLUDE defines.inc}
interface
uses Values;
Const CASE_UPPER = True; CASE_LOWER = False;
Function NumToStr(Int:QInt;Const Base:LongInt = 10;Const Digs:LongInt = 0):TStr;
Function IntToStr(Const Int:QInt;Const Digs:LongInt=0):TStr;
Function HexToStr(Const Int:QInt;Const Digs:LongInt=0... |
unit datamodulegcpj_trabalhistas;
interface
uses
SysUtils, Classes, DB, ADODB, inifiles, forms, datamodulegcpj_baixados, datamodulegcpj_recuperados;
type
Tdmgcpj_trabalhistas = class(TDataModule)
adoConn: TADOConnection;
dts: TADODataSet;
adoCmd: TADOCommand;
procedure DataModuleCreate(Sender: TO... |
unit GTypes;
interface
uses
Classes, SysUtils, Windows, Math;
type
TGCustomBlock = class;
TGCustomScript = class;
TGCustomVariant = class;
TGCustomModule = class;
PGArrayKey = ^TGArrayKey;
TGArrayKey = record
Key: string;
Index: Cardinal;
end;
TGArray = class(TPersistent)
private
FK... |
// Created on: March 21, 2008
// Return Pets Records
unit recPet;
interface
uses AVITyp,
uaviTypes,
uDefs;
// Declaration of Function and Procedures
function ExpPet(pContext : pointer;
sPracticeID : PChar;
enumFunc : PetCodeEnumFunc;
... |
unit ViewModel.Main;
interface
uses
Model.Contact, Generics.Collections, ViewModel.Contact, ViewModel.Company,
Model.Company, MVVM.ViewModel, ViewModel.Sub.Contacts, ViewModel.Sub.Companies;
type
TActiveViewModel = (Contacts, Companies);
TMainViewModel = class
private
FContactsViewModel : TCo... |
unit UFrmParecer;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX.StdCtrls, FMX.Objects, FMX.ScrollBox, FMX.Memo,
FMX.DateTimeCtrls, FMX.ListBox, FMX.Edit,
UTipos,
U... |
UNIT WordStatistic;
INTERFACE
USES
WordType, TreeUtils;
PROCEDURE GetStatistic; { Соберает статистику из файла 'in.txt' и записывает результат в файл 'out.txt' }
IMPLEMENTATION
VAR
FIn, FOut: TEXT;
Root: Tree;
AllScore: INTEGER;
PROCEDURE GetStatistic;
VAR
Word: WordString;
BEGIN { GetStatistic }... |
unit UserUtil;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, uLkJSON;
type
TUser = class(TObject)
id: integer;
login: string;
pass: string;
ip: string;
port: integer;
status: integer;
date: string;
public
function toString: String;
functi... |
unit RentalView;
// Controls view of Rental section of Bookings Tab
interface
uses classAccom, classRental, classResultsArray, Misc,
FMX.ListBox, System.SysUtils, System.UITypes, DateUtils;
const
AddRental : String = 'Add Accomodation';
EditRental : String = 'Edit Accomodation';
var
AddRentalTotalBeingCh... |
program gerenciaEstoque;
var
estoque, vendeEstoque: integer;
Begin
writeln('Esse algoritmo recebe a quantidade de itens em estoque e o estoque atualizado após saida.');
write('Informe a quatidade de itens em estoque: ');
read(estoque);
write('Informe a quantidade itens que serão comprados: ');... |
unit fm_find;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, DBGridEh, Mask, DBCtrlsEh,db;
type
// TFindEvent = procedure (Sender:TObject; bContinue:Boolean) of object;
TFmFind = class(TForm)
CbText: TComboBox;
Label1: TLabel;
BtnCanc... |
unit uClasses;
interface
uses REST.Authenticator.Basic, REST.Client, System.JSON, System.Classes,
System.Generics.Collections, FireDAC.Comp.Client, REST.Response.Adapter,
Data.DB;
Type
ICadastro = interface
function Adicionar: Boolean;
function Deletar: Boolean;
end;
TMailChimp = ... |
{$G+}
Unit SVGA;
Interface
Type
RGB = Record
Red, Grn, Blu : byte
End;
PaletteRegister = Array[0..255] of RGB;
SetTypes = ( FutureFont, StandardFont );
ResType = ( VGA, SVGA6440, SVGA6448, SVGA8060, SVGA1076 );
YPtr = ^YType;
YType = Record
Col1, Col2, Col3, Col4 ... |
// -----------------------------------------------------------------------------
// IP <- -> String
// (c) Michael Nixon 2005.
// -----------------------------------------------------------------------------
unit ipstrings;
interface
uses sysutils, classes;
function zip_ipstrtoint(s: string): longint;
function ipstr... |
unit listparams;
interface
uses
SysUtils, Classes, variants;
type
PParamDescription = ^RParamDescription;
RParamDescription = record
name: String;
value: Variant;
end;
TListParams = class(TObject)
private
List:Tlist;
function GetItem(aI:Integer):PParamDescription;
function GetCount:I... |
unit MemBitmap;
{
/***************************************************************************
membitmap.pas
--------------
Easy-to-use memory bitmap 32-bit
8-bit for each channel, transparency
... |
{$I ..\Definition.Inc}
unit WrapFmxStdActns;
interface
uses
FMX.StdActns,
PythonEngine, WrapDelphi, WrapFmxControls, WrapFmxActnList, WrapDelphiClasses;
type
TPyDelphiHintAction = class(TPyDelphiCustomAction)
private
function GetDelphiObject: THintAction;
procedure SetDelphiObject(const Value: THintA... |
unit Configuration;
interface
uses
Classes, StrUtils;
type
TConfig = class
private
sPresetPath: String;
public
constructor Create;
function EnumCategory: TStringList;
function EnumModel(const ACategory: string): TStringList;
procedure LoadConfiguration(const ACategory: string; const AMode... |
{-------------------------------------------------------------------------------
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/
Software... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
unit BCCommon.Frame.Options.Editor.Options;
interface
uses
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,
BCControl.Edit, BCCommon.Options.Container, BCCommon.Frame.Options.Base,
BCControl.Panel, acSlider, sLabel, sEdit, Vcl.ExtCtrls, sPanel, sFrameAdapter;
type
T... |
unit StAverages;
interface
uses StCalendarUtil;
{
Sick CalculateType
1 Расчёт пособия по общему заболеванию
2 Расчёт пособия по уходу за больным
3 Расчёт пособия при бытовой травме
4 Расчёт пособия по беременности и родам
5 Расчёт пособия при рож... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
unit fCompressFilePicker;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, VirtualTrees, fjWinFontForm;
type
TFrmCompressPicker = class(TJWinFontForm)
lblCaption: TLabel;
VTFiles: TVirtualStringTree;
BtnOK: TButton;
BtnCancel: TButton;... |
unit ConfigurarTabelaForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Actions, Vcl.ActnList,
Vcl.StdCtrls, Vcl.Buttons, Vcl.Grids, Data.DB, Vcl.DBGrids, FireDAC.Stan.Intf,
FireDAC.Stan.Option, Fir... |
unit untfrmConfAudio;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, sPanel, sSkinManager,
Vcl.StdCtrls, sEdit, sLabel, sButton, Vcl.CustomizeDlg, ShellApi, RotinasGerais, System.Zip,
sGroupBox... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
unit XRClasses;
interface
uses Classes, Comctrls;
type
NodeType = (nFile, nDirectory, nDrive);
PRedirect = ^TRedirect;
TRedirect = record
Parent: TTreeNode;
OFound, OReplaced: LongInt;
SourceFileName: string;
TargetFileName: string;
... |
// *************************************************************************** }
//
// Delphi MVC Framework
//
// Copyright (c) 2010-2018 Daniele Teti and the DMVCFramework Team
//
// https://github.com/danieleteti/delphimvcframework
//
// ***************************************************************************
//
/... |
{*
ChartFunction.pas
------------------
Begin: 2005/03/15
Last revision: $Date: 2011-01-17 06:48:44 $ $Author: areeves $
Version number: $Revision: 1.18 $
Project: APHI Delphi Library for Simulation Modeling
Website: http://www.naadsm.org/opensource/libaphi/
Author: Aaron Reeves <Aaron.Reeves@colostate.edu>
-----------... |
unit uHookData;
interface
uses
System.SysUtils,windows,winsock2;
const
DATA_DIRECTION_SEND=1; //数据方向:发送的数据;
DATA_DIRECTION_RECV=0; //数据方向:接收到的数据;
type
stSocketConnectInfo=record //socket连接信息;
s:TSocket; //保存旧连... |
unit dorm.Mappings.Strategies;
interface
uses
Classes,
Rtti,
Generics.Collections,
superobject,
dorm.Mappings;
type
{$RTTI EXPLICIT
FIELDS([vcPrivate, vcProtected, vcPublic, vcPublished])
METHODS([vcPrivate, vcProtected, vcPublic, vcPublished])
PROPERTIES([vcPrivate, vcProtected, vcP... |
(**
* section: xmlReader
* synopsis: Parse an XML file with an xmlReader
* purpose: Demonstrate the use of xmlReaderForFile() to parse an XML file
* and dump the informations about the nodes found in the process.
* (Note that the XMLReader functions require libxml2 version later
* than ... |
// ###################################################################
// #### This file is part of the mrimageutils project, depends on
// #### the mathematics library project and is
// #### offered under the licence agreement described on
// #### http://www.mrsoft.org/
// ####
// #### Copyright:(c) 2012, Micha... |
// ###################################################################
// #### This file is part of the mrimageutils project, depends on
// #### the mathematics library project and is
// #### offered under the licence agreement described on
// #### http://www.mrsoft.org/
// ####
// #### Copyright:(c) 2012, Micha... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
unit uAdicionar;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons,
PngBitBtn, Vcl.ExtCtrls, uADStanIntf, uADStanOption, uADStanParam,
uADStanError, uADDatSManager, uADPhysIntf, uADDAp... |
unit FormOptions;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, Buttons, ExtCtrls;
type
TfmOptions = class(TForm)
PageControl1: TPageControl;
TabSheet1: TTabSheet;
Panel1: TPanel;
BitBtn1: TBitBtn;
BitBtn... |
unit uBairroModel;
interface
{ CREATE TABLE BAIRRO (
ID_BAIRRO VARCHAR(36) NOT NULL,
ID_CIDADE VARCHAR(36),
BAIRRO VARCHAR(50)
); }
uses
Windows, Messages, Classes, SysUtils, uCidadeModel;
type
TBairroModel = class(TObject)
private
FFID : string;
FFIDcidade : string;
FFb... |
unit Analytics;
interface
uses HitType, REST.Client, Vcl.Forms, System.Classes;
type
TAnalyticsTracker = class
private
FTrackingID: string;
FClientID: string;
FHttpClient: TRESTClient;
FAppName: string;
FAppVersion: string;
FFiels: TStringList;
const PROTOCOL_VERSION = '1';
const ... |
unit Redis.Cache.Service;
interface
uses
System.SysUtils,
System.Generics.Collections,
Cache.Interfaces,
ConnectionServices.Interfaces,
Redis.Commons,
Redis.Client,
Redis.NetLib.INDY,
Redis.Values;
type
TRedisCacheService = class(TInterfacedObject, iCache)
private
class var FInstance: iCach... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
unit dw.vcl.FluidForm;
interface
uses
System.Classes, dw.vcl.InputForm, DWTypes, DWElementTag;
type
TDWFormEncType = (iwbsfeDefault, iwbsfeMultipart, iwbsfeText);
TDWFluidForm = class(TDWCustomInputForm)
private
FEncType: TDWFormEncType;
FOnSubmit: TDWInputFormSubmitEvent;
procedure DoSubmit(aP... |
program Const2;
type
TRgb = record
r, g, b: Byte;
end;
const
I: Integer = 123;
S: String = 'hej';
A: array[0..3] of Word = (1, 16, 256, 4096);
HEX10 = $10;
HEX3f = $3f;
HEX3F = $3F;
BLACK: TRgb = (r:$00; g:$00; b:$00);
begin
WriteLn('I = ', I);
WriteLn('S = ', S);
WriteLn('A[1] = ', A[1]);
... |
unit uContainerDataHandler;
interface
uses
iContainers;
const
vtSmallAnsiString = 255;
type
{$IFNDEF DELPHIXE}
// We must define NativeInt for platforms lesser than DelphiXE
// to make things even worse, in Delphi 2007 NativeInt is a 64 bits integer when on later
// versions this type mutates depending ... |
// ###################################################################
// #### This file is part of the mrimageutils project, depends on
// #### the mathematics library project and is
// #### offered under the licence agreement described on
// #### http://www.mrsoft.org/
// ####
// #### Copyright:(c) 2014, Micha... |
unit uFrmInfoUpdate;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Buttons, ShellApi,
IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL, IdSSLOpenSSL, uUtil,
IdBaseComp... |
unit UCL.DragReorder;
interface
uses
Classes, SysUtils, Controls, CommCtrl, Graphics, Types, Windows, Variants,
TypInfo, StdCtrls, ExtCtrls;
type
TUDragObject = class(TDragObjectEx)
private
FDragImages: TDragImageList;
FControl: TWinControl;
protected
function GetDragImages: TDragIma... |
unit ksAwsHash;
interface
function GetHashSHA256Hex( HashString: string): string;
function CalculateHMACSHA256(const AValue: string; const AKey: TArray<Byte>): TArray<Byte>;
function CalculateHMACSHA256Hex(const AValue: string; const AKey: TArray<Byte>): string;
implementation
uses System.Hash;
function Get... |
unit RefAutoBlockPhoneNoContract;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, Grids, DBGrids, CRGrid, MemDS, DBAccess, Ora, StdCtrls, Buttons,
ExtCtrls, ComObj;
type
TRefAutoBlockPhoneNoContractForm = class(TForm)
Panel1: TPanel;
GroupBox1: T... |
unit FormStacks;
////////////////////////////////////////////////////////////////////////////////
// Scalable Controls - Demo //
// for Delphi Magazine //
// ... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
FileUtil,
OpenGLContext,
Forms,
Controls,
Graphics, GraphType,
Dialogs,
ExtCtrls,
StdCtrls, Menus, IntfGraphics,
dglOpenGL,
oglShader,
oglMatrix;
type
{ TForm1 }
TForm1 = class(TForm)
Imag... |
unit ClientUnit;
interface
uses
Config, ClientUnitInterface, Protocols,
DeskZipUtils, DeskZipUnit, DeskUnZipUnit,
RyuLibBase, DebugTools, SuperSocketUtils, SuperSocketClient, JsonData,
Windows, SysUtils, Classes, TypInfo;
type
TClientUnit = class (TInterfaceBase, IClientUnitInterface)
private
// 지금 처... |
{ Judul }
Program BetweenDays;
{I.S. : User memasukkan hari pertama dan kedua}
{F.S. : Menampilkan jumlah hari antara hari pertama dan kedua}
{ Kamus }
Var HariAwal, HariAkhir, Hari, Bulan, Tahun, SisaHari : integer;
{ Algoritma }
begin
{ Masukkan Pertama }
Write('Masukkan Hari Pertama : '); Readln(Hari);
Write(... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
unit DirectoryDialog;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, FileCtrl, Buttons, ExtCtrls;
type
TfmDirectoryDialog = class(TForm)
sbOk: TSpeedButton;
sbCancelar: TSpeedButton;
laDiretorio: TLabel;
dlbDiretorio: TDirectoryListBox;
dc... |
{$B-,D+,H-,I-,J+,P-,Q-,R-,S-,T-,V+,W-,X+,Z-}
{&AlignCode+,AlignData-,AlignRec-,Asm-,Cdecl-,Comments-,Delphi-,Frame-,G5+}
{&LocInfo+,Open32-,Optimise+,OrgName-,SmartLink+,Speed+,Use32+,ZD-}
{$M 32768}
UNIT DRVBASE;
INTERFACE
{******************************************}
{* *}
{* ... |
unit cxDateEditConverter;
interface
uses
CompConverterTypes,
ObjectTextParser,
CompConverter, System.SysUtils, System.Classes, Vcl.Forms;
type
TConvertercxDateEdit = class(TConverter)
private
FParser: TObjectTextParser;
protected
function FindComponentInDfm(AData: TConvertData): Boolean; overrid... |
(*//////////////////////////////////////////////////////////////////////
WExecLib (Windows Execute Library)
(c) copyright 1997 Santronics Software Inc.
Version 1.1
WEXECLIB is a non-visual component library (VCL) for processing external
command... |
unit URBLinkSummPercent;
interface
{$I stbasis.inc}
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
URBMainGrid, Db, IBCustomDataSet, IBQuery, DBCtrls, StdCtrls, Buttons,
ExtCtrls, dbgrids, IBDatabase, IB, Menus, tsvDbGrid, IBUpdateSQL;
type
TfmRBLinkSummPercent = class(TfmRBMa... |
{*******************************************************************************
Title: T2Ti ERP
Description: Controller do lado Servidor relacionado à tabela [COMPRA_COTACAO_DETALHE]
... |
{
Translation of the DTS headers for FreePascal
Copyright (C) 2006 by Ivo Steinmann
}
(*
* dts.h
* Copyright (C) 2004 Gildas Bazin <gbazin@videolan.org>
*
* This file is part of dtsdec, a free DTS Coherent Acoustics stream decoder.
* See http://www.videolan.org/dtsdec.html for updates.
*
* dtsdec is free so... |
//////////////////////////////////////////////////
// TSQLite //
// Delphi SQLite3 wrapper //
// //
// https://github.com/stijnsanders/TSQLite //
//////////////////////////////////////////////////
unit S... |
////////////////////////////////////////////////////////////////////////////////
//
// Przyklad jak wykorzystac procedure callback systemu ograniczenia czasowego
//
// Wersja : PELock v2.0
// Jezyk : Delphi/Pascal
// Autor : Bartosz Wójcik (support@pelock.com)
// Strona domowa : https://www.p... |
{*------------------------------------------------------------------------------
Data Shredder / Free Space Wiper
Description :
This application uses direct pointer to files for owerwriting content via
threading that speedup process and don't let app going to be freez.
Copyright 2020 MIT License.
... |
unit U_BlobImageFB;
interface
uses
Jpeg,
Graphics,
ExtDlgs,
Classes,
DB,
SysUtils,
ExtCtrls,
Dialogs,
Consts;
const
OffsetMemoryStream : Int64 = 0;
type
TTipoImagem = (tiBitmap, tiJpeg);
procedure ExibeFoto(DataSet : TDataSet; BlobFieldName : String; ImageExibicao :
TImage);
procedure GravaF... |
unit USintatico;
interface
uses UConstants, UToken, ULexico, USemantico, USyntaticError, UAnalysisError, classes;
type
TSintatico = class
public
constructor create;
destructor destroy; override;
procedure parse(scanner : TLexico; semanticAnalyser : TSemantico); //raises EAnaliserErro... |
unit fAllskyWatchdog;
(* Ausgangsversion von Ulli Finke
Checkt alle 5 Minuten die
Status-Datei
'lastLAST_AUTO_TESTS.txt' und
schreibt die letzten 3 Zeilen in eine
Datei ins Web: meteo/safstat.txt
Wenn eine Station zu alt ist, wird eine
email geschickt.
Überarbeitet von Holger Schilke 12.11.2008
- Di... |
unit UConexoes;
interface
uses 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.VCLUI.Wait,
FireDAC.Comp.UI, FireDAC.Phys.IBBase, FireDAC.Phys.FB, System.SysUtils,
... |
unit ThreadedDevice;
{$ifdef FPC}
{$mode objfpc}{$H+}
{$endif}
interface
uses
Classes, SysUtils, SyncObjs, Device;
type
TThreadedDevice = class(TDevice)
private
fStreamMutex: TCriticalSection;
public
constructor Create(aOwner: TComponent); override;
destructor Destroy; override;
//... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.