text stringlengths 14 6.51M |
|---|
unit Aurelius.Drivers.Parse;
{$I Aurelius.inc}
interface
uses
Classes, DB, Variants, Generics.Collections,
{
gmORMot,
mORMotInterface,
gSynCommons,
}
REST.Backend.ParseProvider,
REST.Backend.ServiceComponents,
Aurelius.Drivers.Base,
Aurelius.Drivers.Interfaces;
type
TProjectSettings = class //... |
{
ID: hoangducv1
PROG: preface
LANG: PASCAL
}
var fi,fo: text;
n: longint;
function transDigit(x:integer; c1,c5,c10: char): string;
var i: integer;
r: string;
begin
//
if (x = 4) then exit(c1+c5);
if (x = 9) then exit(c1+c10);
//
r:= '';
if (x >= 5) then begin r:= c5; x:= x-5; end;
for i:= 1 to... |
unit PropertiesTest;
interface
uses
TestFramework,
Properties;
type
TPropertyDefTableTest = class(TTestCase)
private
FDefTable: TPropertyDefTable;
public
procedure SetUp; override;
procedure TearDown; override;
published
procedure TestConstruction;
procedure TestFindDef;
end;
TPr... |
{$include kode.inc}
unit kode_osc_blamp;
interface
implementation
end.
{
http://www.kvraudio.com/forum/viewtopic.php?p=6107378#p6107378
double poly_blamp(double t, double dt)
{
if (t < dt)
{
t = t/dt - 1;
return (double)-1/3 * t*t*t;
}
else if (t > 1 - dt)
{
t = (t - 1)/d... |
unit EnabEdit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TEnabEdit = class(TEdit)
private
fEnabChars: set of Char;
procedure SetEnabChars(Value: string);
function GetEnabChars: string;
protected
procedure KeyPress(... |
{$include kode.inc}
unit kode_widget_pages;
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_flags,
kode_rect,
kode_widget;
type
KWidget_Pages = class(KWidget)
private
FActivePage : Lon... |
unit LoggerInit;
interface
uses LoggerInterface;
var
vLoggerFunct : pLoggerFunct=nil;
procedure Init;
procedure Done;
implementation
procedure Init;
begin
New(vLoggerFunct);
try
if not vLoggerFunct.Init then
begin
Dispose(vLoggerFunct);
vLoggerFunct := nil;
end;
except
Dispose(vL... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
unit uLogging;
interface
uses Classes,SysUtils, Variants;
type TLogger = class
private
log: Text;
public
constructor Create(Filename : string);
destructor Destroy;override;
procedure Logg(const logtext: array of Variant);
end;
var Logger: TLogger;
implementation
{ TLogger }
constructor TLogger... |
unit uCustomerAdapter;
interface
type
TDateOfBirth = record
Month: integer;
Day: integer;
Year: integer;
end;
IOldCustomer = interface
['{14C3F1DB-0901-4AB7-8F6E-346C4BBA2E43}']
function GetName: string;
procedure SetName(aName: string);
function GetDateOfBirth: TDateOfBirth;
pro... |
unit uTheme;
interface
uses
SysUtils, Classes, uSharedGlobals, uDomainObject, Graphics;
type
TTheme = class(TDomainObject)
private
FASMSymbolAttriFG: TColor;
FApiFG: TColor;
FCommentFG: TColor;
FCommentStyle: TFontStyles;
FDirectivesFG: TColor;
FDirectivesStyle: TFontStyle... |
unit SKColorSpace;
interface
uses
SKMatrix;
type
SKColorSpacePrimaries = packed record
private
fRX, fRY: Single;
fGX, fGY: Single;
fBX, fBY: Single;
fWX, fWY: Single;
constructor Create(rx, ry, gx, gy, bx, by, wx, wy: Single);
property RX: Single read fRX write fRX;
property RY: Single read fRY w... |
{ ***************************************************************************
Dannyrooh Fernandes | https://github.com/dannyrooh | Licença MIT
1) Classe para realizar a busca do cotação do dólar
08/2021 - created
*************************************************************************** }
unit Cotacao.Dolar.Pro... |
{ Invokable interface IUpdateService }
unit UpdateServiceIntf;
interface
uses Soap.InvokeRegistry, System.Types, Soap.XSBuiltIns, System.Contnrs;
const
IS_OPTN = $0001;
IS_UNBD = $0002;
IS_NLBL = $0004;
IS_REF = $0080;
type
ApplicationManifestEntry = class(TRemotable)
private
FL... |
unit welcomepageviewmodel;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, AbstractViewModel, welcomepagemodel, AbstractModel;
type
IWelcomePageViewModel = interface(IViewModel)
{Returns caption of text on welcome page}
function GetWelcomeCaption: string;
{Returns content of welcome paged}
... |
{
Code by VanDamM // [WRC]
}
Program Check_Point_In_Poly;
Uses Crt;
Type Point = Record { тип точка }
x, y : integer;
End;
Var PointXY : Point; { проверяемая точка }
Poly : array[0..24] of Point; { массив вершин многоугольника }
C : integer; { кол-во ... |
unit Basic;
interface
uses
StdCtrls, SysUtils;
type
TChemicalElements = class
private
name: string;
number: integer;
mass: real;
memo:TMemo;
public
Constructor Init(aname: string; anumber: integer; amass: real);
Function get_name(): string;
Function get_number(): integer;
... |
{ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: QuickReport 4.0 for Delphi and C++Builder ::
:: ::
:: QRCompEd - COMPONENT EDITOR ::
:: ::
... |
unit MD.Checkbox;
interface
uses
System.Classes, FMX.Objects, System.SysUtils, MD.ColorPalette, FMX.Graphics,
MD.Classes, FMX.Types, FMX.Controls, System.Types, System.UITypes, FMX.Ani, Data.Bind.Components;
type
TCheckAlign = (After, Before);
[ObservableMember('IsChecked')]
TMDCheckbox = class(TControl)... |
unit xe_WORA1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, System.StrUtils,
Dialogs, System.Math, IniFiles, MSXML2_TLB, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxContainer, cxEdit, Vcl.Menus, Vcl.ComCtrls, dxCore,
cxDateUtils, cxPCdxBarPopup... |
unit uEmail;
interface
uses
System.SysUtils,
IdSMTP,
IdMessage,
IdSSLOpenSSL,
IdExplicitTLSClientServerBase,
IdAttachmentFile;
type
TEmail = class
private
FIdSMTP: TIdSMTP;
FIdMessage: TIdMessage;
FIdSSLIOHandlerSocketOpenSSL: TIdSSLIOHandlerSocketOpenSSL;
procedure Addlist(const pLi... |
(*
* Copyright (c) 2008-2009, Lucian Bentea
* 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 ... |
unit frameAttributesOfGroup;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, fdac.framedoc, DBGridEhGrouping, ToolCtrlsEh, DBGridEhToolCtrls,
DynVarsEh, System.Actions, Vcl.ActnList, Vcl.Menus, Vcl.ImgList, Dat... |
unit uExportImport;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uForm, ICSLanguages, Vcl.StdCtrls,
Vcl.ExtCtrls, Vcl.Buttons, PngBitBtn, System.Actions, Vcl.ActnList,
System.ImageList, Vcl.ImgList... |
unit Spieler;
interface
uses sysutils, graphics,
Spielerfeld, spielfeld, schieber, config, VE, zeichnen;
type Ttaste = Word;
Ttasten = record
rechts , links : Ttaste;
end;
Tpunkte = Integer;
TSpieler = class(Tobject)
public
spielfeld : Tspielfeld;
Spielerfeld ... |
uses character;
function toInteger(s:string; base:integer): integer;
var
n:integer=0;
c:char;
d:integer; // digit
begin
for c in s do begin
if isDigit(c) then
d := ord(c)-ord('0')
else
d := ord(c)-ord(a)+10;
n:= base*n+d;
end;
exit(n);
end;
function toString(n:integer; base:integer): string;
var
s:... |
unit uFrmUsuarios;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, Buttons,
StdCtrls, DBCtrls, DBGrids, uFrmDataModule, db;
type
{ TFrmUsuarios }
TFrmUsuarios = class(TForm)
BtnAltUsuario: TBitBtn;
BtnCanUsuario: TBitBtn;
BtnConfUsuario: TBit... |
{ Program TEST_PPDAT [options]
*
* This program provides a command line interface for the debug protocol of
* the data port of a USBProg PIC programmer. The USBProg serial port must be
* configured as a data port, not as another source of programming commands.
}
program test_ppdat;
%include 'base.ins.pas';
%in... |
program CircleSquare;
{
Вычисление площади круга по заданному радиусу R
}
const
MY_PI = 3.14; // Константа MY_PI, её значение не может быть изменено
var
R: Real; // Переменная для значения радиуса
S: Real; // Площадь круга
begin
Write('Input radius: '); // Вывод подсказки для пользователя (что вводим)... |
{-------------------------------------------------------------------------------
Bug workaround for 'The DecisionCube capacity is low' bug
________________________________________________________________________________
BUG DESCRIPTION
If you have a lot of physical memory or a large page file, you may find... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics,
Dialogs, StdCtrls, httpmanager, fphttpserver;
type
{ TForm1 }
TForm1 = class(TForm)
ButtonRequest: TButton;
Memo1: TMemo;
procedure ButtonRequestClick(Sender: TObject);
procedure ... |
unit USpace;
interface
uses UxlClasses, UxlWinControl, UxlList, UxlExtClasses, UPageSuper, UPageFactory, UTypeDef, UxlRichEdit, Resource, UBrowseHistory;
type
TSpace = class (TxlInterfacedObject, ICommandExecutor, ISaver, IPageObserver) // single instance
private
FHistory: THistory;
FSel... |
program square100;
var
i: integer;
begin
i := 1;
while i <= 100 do
begin
write (i, ' * ', i, ' = ');
writeln (i*i, ' ');
i := i + 1
end
end.
|
(* @file Tetris.pas
* @author Willi Schinmeyer
* @date 2011-10-30
*
* This is my second take on a simple Tetris game. This time with no OOP. (And no hard line breaks, but that's a different story.)
*)
program Tetris;
uses crt, UConstants, UFunctions;
var
running : boolean = true;
key : char;
begin
//hide cu... |
object EditAccountForm: TEditAccountForm
Left = 0
Top = 0
BorderStyle = bsSingle
Caption = 'Edit account'
ClientHeight = 299
ClientWidth = 521
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
Padding.... |
unit BigNum;
{ BigNum v2.0, 32-bit for Delphi by Jes R. Klinke
Implements calculations on integers of arbitrary size.
All operations necessary for cryptographic applications are provided,
for functions generating large prime numbers look in BigPrime.pas.
You may use this unit for whatever you want. But if you m... |
unit ExportTableData;
interface
uses
Winapi.Windows, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, BCControls.PageControl,
Vcl.StdCtrls, Vcl.Mask, JvExMask, ComCtrls, JvExComCtrls, JvComCtrls, Vcl.ExtCtrls, JvSpin, CheckLst, ActnList, Ora,
DB, DBAccess, BCControls.Edit, BCDialog... |
unit frmClient_u;
// Craig Stroberg
// 70854
// Client form allows the user to interact with the data
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.StdCtrls, Data.DB, Vcl.Menus, Client_u, Vcl.Samples.Spin... |
Unit FHIRRestServer;
{
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 s... |
{*******************************************************************************
Title: T2Ti ERP
Description: Classe DataSnap.
The MIT License
Copyright: Copyright (C) 2014 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "... |
unit FhirOpBase;
{
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 mu... |
{
PONTEIROS
Variaveis Estaticas >> ocupa espa‡o permanente enquanto o
programa ou procedimento estiver ativo.
Variaveis Dinamicas >> caracterizados pelo tipo "Ponteiro"
as quais alocam um espa‡o e qdo nĆo mais necessario desalocam
este espa‡o
Declara‡Ćo:
p:^tipo {inteiro / real / string...
In... |
{********************************************************************}
{ }
{ Extention for }
{ Developer Express Visual Component Library }
{ from http://pyatochkin.blogs... |
unit chmcontentprovider;
{
Graphical CHM help content provider.
Responsible for loading TOC, providing search etc.
}
{$mode objfpc}{$H+}
{$Note Compiling lhelp with search support}
{$DEFINE CHM_SEARCH}
{$IF FPC_FULLVERSION>=20400}
{$Note Compiling lhelp *with* binary index and toc support}
// CHMs... |
unit HibernateModel;
interface
uses
InfraValueTypeIntf, InfraValueType, InfraCommonIntf,
HibernateModelIntf;
type
TAccount = class(TInfraObject, IAccount)
private
FID: IInfraInteger;
FAccountNumber: IInfraString;
FName: IInfraString;
FInitialBalance: IInfraDouble;
FCurrentB... |
unit HJYStoreProcParams;
interface
uses DB;
type
THJYStoreProcParam = class(TParam)
private
FParamId: Integer;
FDataTypeStr: string;
public
property ParamId: Integer read FParamId write FParamId;
property DataTypeStr: string read FDataTypeStr write FDataTypeStr;
end;
THJYStoreProcParams = ... |
(**
* $Id: dco.rpc.jsonrpc.Encoder.pas 840 2014-05-24 06:04:58Z QXu $
*
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for the specific language governing rights and limitations under the License.
*)
unit dco.... |
unit DispatcherModbusClasses;
{$mode objfpc}{$H+}
interface
uses Classes,
MBDefine,
DispatcherModbusItf,
DispatcherModbusSlaveProxyClasses,
DispatcherDictionaryesClasses,
DispatcherModbusSetThreadClasses,
LoggerItf;
type
{
Класс реализует объект диспетчера производ... |
unit datamodel;
interface
uses
cwCollections
;
const
cPasswordLen = 9;
cMinUserCount = 3;
cMaxUserCount = 10;
cStartPasswordChar = 48;
cPasswordCharRange = 42;
cGameRounds = 5;
cCardsPerHand = 6;
const
cNullString = '';
cGeneratePasswordFlag = 'Generate';
cQuestToke... |
unit Logging.Logger;
interface
uses
Logging.Interfaces;
type
TLogger = class (TInterfacedObject, ILogger)
private
FWarningCount : integer;
FErrorCount : integer;
FLogWritter : ILogWritter;
function getWarningCount: integer;
function getErrorCount: integer;
public
... |
{ *********************************************************************** }
{ }
{ AriaNg WKE 自动化浏览器项目单元 }
{ }
{ 设计:Lsuper 2017.09.11 ... |
unit Unit1;
interface
type TCar = class
Protected
reserve: real;
consuption: real;
tank: real;
model: string[20];
km: real;
empty: boolean;
public
constructor init(m: string; r, c, t, k: real);
Function refuel(l: real): real;
Function get_model():string;
Function get_tank():real;
Functi... |
unit dao.Produto;
interface
uses
UConstantes,
classes.ScriptDDL,
model.Produto,
System.StrUtils, System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
Data.DB, FireDAC.Comp.Client, FireDAC.Comp.DataSet,
FMX.Graphics;
type
TProdutoDao = class(TObject)
strict... |
unit MDFeAPI;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, IdHTTP, IdIOHandler, IdIOHandlerSocket,
IdIOHandlerStack,
IdSSL, IdSSLOpenSSL, ShellApi, IdCoderMIME, EncdDecd;
// Assinatura das funções
function enviaConteudoParaAPI(conteudo... |
unit unitClipExRegistry;
interface
uses Windows, Classes, Sysutils, unitExRegistry;
type
TCopyFormat = (cfRegEdt, cfText);
TCopyFormats = set of TCopyFormat;
TClipExRegistry = class (TExRegistry)
public
procedure CopyKeyToClipboard (const keyName : string);
procedure CopyValuesToClipboard (values :... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [FIN_EXTRATO_CONTA_BANCO]
The MIT Lic... |
unit uAutoKeyFobCommands;
interface
uses
uAutoKeyFobInterfaces;
type
// Local Radio for Fob Key
TLocalCarLocker = class(TInterfacedObject, ISimpleCommand)
procedure Execute;
end;
TLocalCarUnlocker = class(TInterfacedObject, ISimpleCommand)
procedure Execute;
end;
TLocalEmergencyHorn = class(T... |
unit Controller.Usuario;
interface
uses
System.SysUtils, Classes.ScriptDDL, Model.Usuario, FireDAC.Comp.Client, Data.DB;
type
TUsuarioController = class
strict private
class var _instance : TUsuarioController;
private
FDDL : TScriptDDL;
FModel : TUsuarioModel;
proc... |
unit Marvin.VCL.GUI.Cadastro.TipoCliente;
interface
uses
{ sistema }
Marvin.AulaMulticamada.Classes.TipoCliente,
Marvin.AulaMulticamada.Listas.TipoCliente,
Marvin.VCL.GUI.Cadastro.Base,
{ embarcadero }
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
System.Acti... |
unit uListDemo;
interface
procedure DemoList;
implementation
uses
Generics.Collections
;
type
TIntegerList = TList<integer>;
procedure OutputList(aMessage: string; aIntegerList: TIntegerList);
var
i: integer;
begin
Write(aMessage, ', the list is: ');
for i in aIntegerList do
begin
Wr... |
unit SetBtn;
interface
uses
Windows, ShellAPI, SysUtils, Classes, Forms, ShlObj, pidl, Dialogs, SetInit;
type
TButtonDataClass = class of TButtonData;
// ボタンのデータ全般
TButtonData = class(TObject)
Name: string;
ClickCount: Integer;
constructor Create; virtual;
destructor Destroy; override;
... |
unit LUX.Marcubes.FMX;
interface //#################################################################### ■
uses System.Classes, System.Math.Vectors, System.Generics.Collections,
FMX.Types3D, FMX.Controls3D, FMX.MaterialSources,
LUX, LUX.D3, LUX.Marcubes;
type //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
unit RRManagerEditBedStructureFrame;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, RRManagerMainTreeFrame, StdCtrls, ComCtrls, Buttons, RRManagerBaseObjects,
RRManagerObjects, RRManagerLoaderCommands, ImgList, ClientCommon, RRManagerBaseGUI;
type
// TfrmBed... |
unit MMCFactory;
interface
uses ComObj, Snapins;
type
TMMCObjectFactory = class (TComObjectFactory)
private
fAboutClassID : TGUID;
fProvider : string;
public
constructor Create(ComServer: TComServerObject; ComClass: TComponentDataClass;
const ClassID: TGUID; SnapinAboutClass : TSnapinAboutClas... |
unit uBowling;
interface
type
IBowlingGame = interface(IInvokable)
['{D4A292B6-BC15-48ED-AE04-2D34759017CB}']
procedure Roll(aPins: integer);
function Score: integer;
end;
function NewBowlingGame: IBowlingGame;
implementation
uses System.SysUtils, System.Math, System.Generics.Collections;
typ... |
unit uLogin;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxContainer, cxEdit, dxSkinsCore, dxSkinBlack,
dxSkinBlue, dxSkinBlueprint, ... |
{
Copyright 2023 Ideas Awakened Inc.
Part of the "iaLib" shared code library for Delphi
For more detail, see: https://github.com/ideasawakened/iaLib
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 ... |
function LHEXFN (decimal : longint) : string;
const hexDigit : array [0..15] of char = '0123456789ABCDEF';
var i : byte;
s : string;
begin
FillChar (s, SizeOf(s), ' ');
s[0] := chr(8);
for i := 0 to 7 do
s[8-i] := HexDigit[(decimal shr (4*i)) and $0F];
lhexfn := s;
end; (* lhexfn *... |
unit MyFunction;
interface
uses SysUtils, Windows, Variants, Forms, ADODB, Classes;
function SaveSetting(strHead, strSet: String; vValue: Variant; strIniFile: String = ''): Boolean;
function GetSetting(strHead, strSet: String; DefaultValue: String = ''; strIniFile: String = ''): string;
function DelayTime(nSe... |
{$include kode.inc}
unit syn_s2_config;
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_control,
kode_editor,
kode_flags,
kode_object,
kode_plugin,
kode_rect,
kode_types,
kode_voice,
... |
program testint;
{ This example demonstrates how to chain to a hardware interrupt. }
{$ASMMODE ATT}
{$MODE FPC}
uses
go32;
const
{ Keyboard interruption. }
KbdInterruption = $9;
var
KeyScanCode: Byte;
{ holds old PM interrupt handler address }
OldKbdHandlerInfo: tseginfo;
{ new PM interr... |
unit uCanvasDemo;
interface
uses
Windows, Classes, Graphics, Controls, Forms, System.Types;
type
TfrmGraphics = class(TForm)
public
procedure Paint; override;
procedure Resize; override;
end;
var
frmGraphics: TfrmGraphics;
implementation
{$R *.dfm}
const
HB = 10; //Horizontal border
V... |
{ -------------------------------------------------------------------------------
DBXtoUD
Copyright (c) 2016 Alessandro Savoiardo - EcoSoft
www.ecosoft.it
------------------------------------------------------------------------------- }
unit DU.Main.Form;
interface
uses
Winapi.Windows, Winap... |
unit DbFormUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, StdCtrls, ExtCtrls, DB, DBCtrls;
type
{ TDbFormForm }
TFormDataLink = class;
TDbFormForm = class(TForm)
PostBtn: TButton;
CancelBtn: TButton;
CloseBtn: TButton;
Bevel... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [NFE_TRANSPORTE_REBOQUE]
The MIT Lice... |
program testwrite02(output);
{test explicit use of output in the write/writeln command}
begin
write(output, 'hi');
writeln(output, ' bye');
end.
|
//------------------------------------------------------------------------------
//
// Voxelizer
// Copyright (C) 2021 by Jim Valavanis
//
// 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;... |
unit test_ucLogFileAnsi;
interface
{$I hrefdefines.inc}
uses
{$IFDEF MSWINDOWS}
Windows,
{$ENDIF}
SysUtils, Classes,
DUnitX.TestFramework,
ucLogFileAnsi;
type
[TestFixture]
TTest_ucLogFileAnsi = class(TObject)
private
function TestFileName: string;
procedure DeleteTestFile;... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
StdCtrls, Buttons;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
Panel1: TPanel;
CloseButton: TButton;
RadioGroup1: TRadioGroup;
PerimeterRadioButton: TRa... |
unit uFrmGenericoPgto;
interface
uses
Sistemas.Controller, Sistemas.Dados, Sistemas.PagamentoUnico,
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, Vcl.ExtCtrls, Vcl.ComCtrls, Vcl.StdCtrls;
type
TFPgto... |
object WedgeModeSetupForm: TWedgeModeSetupForm
Left = 276
Top = 97
BorderStyle = bsDialog
Caption = 'Wedge Mode Settings'
ClientHeight = 205
ClientWidth = 691
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font... |
{Ä Fido Pascal Conference ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PASCAL Ä
Msg : 505 of 536
From : Bernie Pallek 1:247/128.0 21 Apr 93 18:26
To : Stephen Cheok
Subj : STARFIELD
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
SC> H... |
{********************************
Autor: Dumitru Uzun (DUzun)
Data: 01.06.2009
********************************}
Unit Fig3D;
interface
USES CRT, Graph, UFig, UCalcVec, UCalc3D;
CONST Unu = 5;
VAR GD, GM : integer; {Pentru initierea modului grafic}
MidX, MidY : word; {Mijlocul ecranului... |
{
ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi
Copyright (c) 2016, Isaque Pinheiro
All rights reserved.
GNU Lesser General Public License
Versão 3, 29 de junho de 2007
Copyright (C) 2007 Free S... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls,SMXM7X, ComCtrls;
type
TForm1 = class(TForm)
ViewFrame: TPanel;
btRun: TButton;
trExp: TTrackBar;
Label1: TLabel;
cbCameraNo: TComboBox;
Label2: TLabel;
... |
{
ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi
Copyright (c) 2016, Isaque Pinheiro
All rights reserved.
GNU Lesser General Public License
Versão 3, 29 de junho de 2007
Copyright (C) 2007 Free S... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
unit UPliki;
interface
uses
System.Classes, System.SysUtils, jpeg, pngimage, Vcl.Graphics;
type
TPliki = class
class function dajListePlikowZFolderu(const sciezka: String): TStringList;
class procedure przekonwertujBitmape(const sciezka, zapis: String; const format: Byte);
class procedure przekonwert... |
unit imaq1394;
// -----------------------------------------------
// National Instruments IMAQ 1394 firewire cameras
// -----------------------------------------------
// 24-5-4 Working but not fully tested
// 20-3-5 Camera gain can now be set
// 15-10-6 Updated to work with IMAQ-1394 V2.02
// 24-07-07 GetImage updated... |
unit uViewForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Spin, uAntWorld, uAnt, Math;
type
TfmTurmites = class(TForm)
tmrSim: TTimer;
tmrRandomizeRule: TTimer;
Panel1: TPanel;
GroupBox1: TGroupBox;
btnRandom: TBut... |
{ License: wtfpl; see /copying or the Internet }
{ Code scanner/lexer. Eats substrings and poops tokens (tree nodes) }
unit scanner;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, as_tree;
function ExtractToken(buffer: string; var position: longint): k_as_node;
function scan(buffer: string): k_as_node;
... |
unit metaunit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Dialogs;
Type
TField = class
Name, Caption, RefTable, KeyField, ListField: string;
constructor create (AName, ACaption, ARefTable, AKeyField, AListField: string);
function GetFieldName(): string;
end;
TTable = class
Name, ... |
unit TestViewInfoData;
interface
uses
DevMax.Types, DevMax.Types.ViewInfo,
FMX.Types;
function TestJsonString: string;
function GetViewInfoData: TViewInfo;
implementation
function TestJsonString: string;
var
s: string;
begin
s := '';
s := s + '{';
s := s + ' "VIEW_ID":"V00000000001",';
s := s + ' "... |
unit uForEachElseTests;
interface
uses
Bott.ForEachElse,
Classes,
system.Generics.Collections,
DUnitX.TestFramework;
type
TTest = class(TCollectionItem)
private
ftest: string;
public
property test: string read ftest write ftest;
end;
[TestFixture]
TForEachElseTests = class
private
pu... |
{$MODE OBJFPC} { -*- delphi -*- }
{$INCLUDE settings.inc}
{$IFNDEF DEBUG} {$FATAL This unit should only be included in debug mode.} {$ENDIF}
unit debug;
interface
const
HeapInfoSize = 16;
type
PHeapInfo = ^THeapInfo;
THeapInfo = String[HeapInfoSize];
procedure HexDump(var Data; const Size, SubSize: Cardina... |
//delphi本身并不提供当前记录的数据封包,但我们有一个途经可以获取,通过TDataSetProvieder的GetRecords获取。 GetRecords虽然简单,但不能排除Blob字段、只取唯一主键字段等。通过研究CDS的RefreshRecord方法,提取了当前记录的封包。
Unit ClientDataSetEx;
interface
Uses
DBClient,Variants,DSIntf;
type
TMyCDS = class(TCustomClientDataSet);//由于引用了Protected的一些方法和变量
function GetRecordOleVar(CDS:TClie... |
{******************************************************************}
{ GDI+ Class }
{ }
{ home page : http://www.progdigy.com }
{ email : ... |
unit JPP.ColorComboBox;
{ My old ColorCombo from 2006 }
interface
uses
Winapi.Windows, System.SysUtils, System.Classes, Winapi.Messages, System.Types,
Vcl.Controls, Vcl.StdCtrls, Vcl.Graphics, Vcl.Dialogs, Vcl.Buttons, Vcl.Clipbrd, Vcl.ExtCtrls,
JPP.BasicSpeedButton, JPP.Graphics,
JPP.Types
;
type
TRG... |
{ Collection of routines that convert floating point numbers to strings.
* All the conversion is actually done in the low level routine STRING_F_FP.
* The remaining routines are convenient wrappers.
}
module string_f_fp_eng;
define string_f_fp_eng;
%include 'string2.ins.pas';
var
umult: array[-5 .. 5] of char ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.