text stringlengths 14 6.51M |
|---|
program Minimum (input, output);
{calculates lowest number of integer input}
var
number,
min : integer;
begin
writeln('enter numbers to determine lowest number.');
writeln('end with 0');
readln(number);
min := number;
if number <> 0 then
repeat
writeln('enter number');
if number < min then
min :=... |
{*
* Copyright 2013 Artur Mkrtchyan
*
* 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 required by applicable law or agree... |
{ ******************************************************************
Broyden method for system of nonlinear equations
****************************************************************** }
unit ubroyden;
interface
uses
utypes, ulinminq, ucompvec, umachar, uConstants;
procedure Broyden(Equations: TEqu... |
unit FrameCardHand;
{$MODE DELPHI}
{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, ExtCtrls, CardTypes,
CardClasses;
type
{ TCardHandFrame }
TCardHandFrame = class(TFrame)
Shape1: TShape;
private
FSize: TPoint;
FAllowChange: Boolean;
FYOffs,
FLrgHeight: Integer;
FCa... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.1.2-5, FILE=DEV002, CLA... |
unit AggSpanImageResampleRgb;
////////////////////////////////////////////////////////////////////////////////
// //
// Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') //
// Maintained by Christian-W. Budde (Christ... |
{
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/
*
* Copyright (C) 2004-2014, Peter Johnson (www.delphidabbler.com).
*
* $Rev$
* $Date$
*
* Enhanced string pro... |
{ ******************************************************************
Correlation coefficient
****************************************************************** }
unit ucorrel;
interface
uses
utypes, uConstants;
function Correl(X, Y: TVector; Lb, Ub: Integer): Float;
{ Correlation coefficient betwe... |
unit uSPService;
interface
uses
SysUtils, Classes, uGlobal, uCommon, IdCustomHTTPServer, uSMS, EncdDecd, uHik,
uLockVio, uVehPass, uAnalysisPic, uImportVio, uRmService, qjson, uSurveilVio,
Generics.Collections, StrUtils, uTokenManager, ActiveX, uExamService;
type
TSPService = Class
private
class funct... |
unit uspQuery;
interface
uses
SysUtils, Classes, FireDAC.Comp.Client, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt,
Data.DB, FireDAC.Comp.DataSet,FireDAC.Phys.FB;
type
TspQuery = class(TFDQ... |
(*
* Ecuacion
* Este Programa determina si se cumple una ecuacion dada
* Autor: Jose Pena
* Ultima fehca de modificacion: 31/01/2013
*)
Program Ecuacion;
Var a,b,c : integer; // Valores enteros
d : boolean; // Variable booleana
Begin
(* Lectura de Datos *)
Writeln( ' Ingrese 3 enteros A, B y C para determinar si s... |
unit ufilter;
{$mode objfpc}{$H+}{$R+}
interface
uses
Classes, SysUtils, sqldb, db, FileUtil, Forms, Controls, Graphics, Dialogs,
DBGrids, ExtCtrls, Buttons, StdCtrls, metadata;
type
{ TCondition }
TCondition = record
Caption: string;
QueryFormat: string;
ParamFormat: string;
end;
{ TList... |
{ ******************************************************************
Plotting routines for TP/FPC/GPC (based on the Graph unit)
****************************************************************** }
unit uplot;
interface
uses
{graph,} utypes, umath, uround, uinterv, ustrings,umachar;
function InitGra... |
unit unitResourceDialogs;
interface
uses Windows, Classes, SysUtils, unitResourceDetails, DialogConsts;
type
TDialogResourceDetails = class (TResourceDetails)
public
class function GetBaseType : string; override;
procedure InitNew; override;
procedure BeginInit (x, y, cx, cy : Integer; Style, ExSt... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.3-7, FILE=CONF061, CLAS... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.6.2-15, FILE=DEV157, ... |
{
This demo application accompanies the article
"How to call Delphi code from scripts running in a TWebBrowser" at
http://www.delphidabbler.com/articles?article=22.
This unit defines a class that extends the TWebBrowser's external object.
This code is copyright (c) P D Johnson (www.delphidabbler.com)... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.7-3, FILE=LEV1F08, ... |
unit EthKeyGen;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Clipbrd, Buttons;
type
TForm1 = class(TForm)
Generate: TButton;
AlwaysOnTop: TButton;
KeyBox: TEdit;
BitBtn1: TBitBtn;
procedure GenerateClick... |
{
*******************************************************************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
unit uInputQuery;
interface
uses
System.SysUtils, System.Classes, System.Types, System.Math,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
Vcl.Graphics, uInputQueryForm;
resourcestring
SValidatePromptArray = 'La longitud de la matriz de valores debe ser> = longitud de la matriz de so... |
unit fSetupForm;
// Create a stadnard new form, use the form designer to build it and Create it in the Dll
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ShellAPI,
StdCtrls, ExtCtrls;
type
TSetupForm = class(TForm)
Image1: TImage;
OKButton: TButton; // ModeRe... |
{==============================================================================|
| Project : Delphree - Synapse | 001.001.000 |
|==============================================================================|
| Content: SNMP client ... |
unit Unit2;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, IdBaseComponent, IdComponent,
IdTCPConnection, IdTCPClient, IdHTTP, Vcl.StdCtrls, CallCenterNewClient,
superobject, System.Actions, Vcl.ActnList;
t... |
unit LPTControllerSetBitStatusRequestHandler;
interface
uses
Winsock, Classes, SysUtils, Log4D,
LPTControllerRequestHandler, LPTControllerRequestHandlerBag;
type
TLPTControllerSetBitStatusRequestHandler = class (TInterfacedObject, ILPTControllerRequestHandler)
protected
class function Log: TLo... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.5-13, FILE=DEV085, ... |
unit uMDX;
interface
uses uMD3, classes, SysUtils, u3DTypes;
// http://remont.ifrance.com/model_et/files/mdm&mdx.htm
const
MDX_DEG = 360.0/65536.0;
MDX_RAD = 2*Pi/65536.0;
IDMDX = $5758444D; // 'MDXW' cardinal
DEFAULT_BONE_NAMES: array[0..52] of string = ('Bip01 Pelvis','Bip01 Spine','Bip01 Spine1','Bip01 Sp... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.2.3-1, FILE=DEV199, C... |
unit ORList;
// TORDb shromazduje vsechny oblasti rizeni
// ostatni casti programu se ho pak muzou na ORs ptat
interface
uses SysUtils, StrUtils, Classes, Generics.Collections;
type
TORDb = class
private
public
db: TDictionary<string, string>;
db_reverse: TDictionary<string, string>;
constructor... |
namespace RedisClassLibrary;
uses
StackExchange.Redis, System. Collections. Generic;
type
ExpiryService = public class(IDisposable)
private
_connectionMultiplexerFactory:IConnectionMultiplexerFactory;
_options:ConfigurationOptions;
_connectionMultiplexors : List<IConnectionMultiplexer> := new Li... |
unit AQConfigBuilder;
interface
uses
AQConfig, System.Generics.Collections, Consumer;
type
/// <summary>A builder for a previous version of TAQConfig. It is moved into a separate file
/// as a candidate for removal or transforming into something else.</summary>
TAQConfigBuilder = class
strict private
F... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.4-5, FILE=DEV133, C... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.2-1, FILE=CONF051, CLAS... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.1.5-2, FILE=CONF010, CLASS=... |
{*
* Copyright 2013 Artur Mkrtchyan
*
* 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 required by applicable law or agree... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.2-8, FILE=IMDEFB12,... |
unit ZapMQ.Queue;
interface
uses
Generics.Collections,
ZapMQ.Message;
type
TZapQueue = class
private
FMessages : TObjectList<TZapMessage>;
FName: string;
FLastRemovedMessage : TDateTime;
procedure SetName(const Value: string);
public
property Name : string read FName wri... |
// Copyright (c) 2020 Tomsk, Marat Shaimardanov
// Protocol buffer Generator for Delphi
unit Oz.Pb.Parser;
interface
uses
System.Classes, System.SysUtils, System.Character, System.IOUtils, System.Math,
Oz.Cocor.Utils, Oz.Cocor.Lib, Oz.Pb.Scanner, Oz.Pb.Options, Oz.Pb.Tab, Oz.Pb.Gen;
type
{$Region 'TpbParser'}... |
{
MIT License
Copyright (c) 2017 Jamie Geddes
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, copy, modify, merge, publish, di... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.1-6, FILE=CONF146, CLASS=... |
unit VamMultiLineTextBox;
interface
uses
Controls, WinApi.Windows, RedFoxTextBuffer,
Classes, RedFox, RedFoxColor, RedFoxWinControl, VamWinControl;
type
TVamMultiLineTextBox = class(TVamWinControl)
private
FTextPadding: TPadding;
fColor: TRedFoxColorString;
fTextVAlign: TRedFoxAlign;
fText: ... |
unit Basics;
{
This unit is responsible for the implementation of basic/trivial
tasks, such as process execution, registry manipulation, object
types, etc.
}
interface
uses
SysUtils, Classes,
Windows, Registry, ShellApi,
DProcess, uTPLb_CryptographicLibrary, uTPLb_Codec;
type
TOptions = Record
Bas... |
unit uEntity;
interface
uses
System.Generics.Collections, Classes;
type
TVehInfo = record
code: string; // 返回编码
msg: string; // 返回信息
rownum: string; // 返回记录数
HPHM: string; // 车牌号码
HPZL: string; // 号牌种类
syr: string; // 所有人
sfzmhm: string; // 身份证号码
syq: string; // 所有权,对应字典
clsb... |
unit TDlgMotionTag;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, AnimationSeekBarImpl1, ExtCtrls, AnimationSeekBarProj1_TLB;
type
TMotionTagDialog = class(TForm)
Label_TagType: TLabel;
Combo_TagType: TComboBox;
Button_Delete:... |
unit uMyClassHelpers;
{实现窗体自适应调整尺寸以适应不同屏幕分辩率的显示问题。
陈小斌,2012年3月5日
}
interface
Uses
SysUtils,Windows,Classes,Graphics, Controls,Forms,Dialogs, Math,
typinfo;
Const //记录设计时的屏幕分辨率
OriWidth=1600;
OriHeight=857;
Type
TfmForm=Class(TForm) //实现窗体屏幕分辨率的自动调整
Private
fScrResolutionRateW: Double;
... |
unit utils;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Graphics;
function ForwardSlash(Path : String) : string;
function GetAlpha(colour : string) : byte;
function HexToTColor(colour : string) : TColor;
function TColorToString(colour : TColor; alpha : byte) : String;
implementation
function ForwardSl... |
PROGRAM BillOfSale (input, output);
{Erick Nave
2-3-93 ICS 9:00
program #14, page 83
BillOfSale (billsale.pas) is to retreive input from a "customer" in order to
fill out a bill of sale of computer items to be purchased. Output is
designed to give a listing of the items, the price, and the total amount
... |
unit unitSetupValue;
interface
uses inifiles;
type
TSetupValue = record
bPrintSNLabel : boolean;
bPrintCartonLabel : boolean;
bPrintPalletLabel : boolean;
bPrintCustSNLabel : boolean;
iQtySNLabel : integer;
iQtyCartonLabel : integer;
iQtyPalletLabel : integer;
iQtyCustSNLabel : inte... |
{
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/
*
* Copyright (C) 2001-2014, Peter Johnson (www.delphidabbler.com).
*
* $Rev$
* $Date$
*
* Classes which provi... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.9.1-16, FILE=DEV242, CL... |
// Language Bath - Common
// Copyright (c) 2020 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the MIT License
// https://raw.githubusercontent.com/barendgehrels/langbath/main/LICENSE
// This unit contains a decorator for BASS, the 3rd party mp3 playing library
// - It... |
unit LuaDialogs;
interface
Uses Controls, Dialogs, Sysutils,
{$IF Defined(LUA54)}
Lua54
{$ELSEIF Defined(LUA53)}
Lua53
{$ELSE}
LuaPas
{$ENDIF}
;
function LuaShowMessage(L: Plua_State): Integer; cdecl;
function LuaMessageDlg(L: Plua_State): Integer; cdecl;
implementation
Uses LConvEncoding, Lua... |
unit FrmPrincipal;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
Vcl.ExtCtrls,
FrmEditar, FrmAdicionar, ClienteController, ClienteModel,
System.Generics.Collections;
type
... |
unit AudioPlugin.Defaults;
interface
uses
VamVst2.DAEffect,
VamVst2.DAEffectX,
VamVst2.MidiEvent,
AudioPlugin.Types,
AudioPlugin.PlugMain,
AudioPlugin.Globals,
AudioPlugin.Vst2Adapter;
type
TDefaultPlug = class(TAudioPlug)
private
public
procedure SetPrivateParameter(const ParIndex : integer;... |
unit EditOperacao;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Mask, ToolEdit, CurrEdit, Buttons,
VirtualTrees, CSDVirtualStringTree, dbObjects, IBQuery, ComCtrls, Menus;
type
TUpdateOperacaoEvent = procedure (Sender: TObj... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ PRETEST 6.9.3.1-7, FILE=ERR85P... |
unit ASN1;
interface
uses System.SysUtils;
type
TInt64Helper = record helper for Int64
function ToBigEndian: TBytes;
end;
TASN1_DataType = (
asnBoolean = $01,
asnInteger = $02,
asnBitString = $03,
asnOctetString = $04,
asnNull = $05,
asnObj... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.9.4-1, FILE=CONF206, CLASS=... |
program alg005;
{
#-------------------------------------------#
# Autor: Samuel T. C. Santos #
# Data: 24-04-2014 #
# Free Pascal Compiler #
#-------------------------------------------#
}
const
PI = 3.14;
var
raio, area, comprimento: real;
begin
write('Rai... |
unit ufrmItem;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, UBase, Data.DB, Vcl.Menus, Vcl.Grids,
Vcl.DBGrids, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls, uModelItem, uDMItem, Vcl.DBCtrls,
uModelProduto, uCo... |
{
MIT License
Copyright (c) 2017 Jamie Geddes
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, copy, modify, merge, publish, di... |
unit UCL.RadioButton;
interface
uses
Classes,
Messages,
Windows,
Controls,
StdCtrls,
Graphics,
UCL.Classes,
UCL.Types,
UCL.Utils,
UCL.Graphics;
type
TURadioButton = class(TUCustomControl)
private var
ActiveColor, TextColor: TColor;
IconRect, TextRect, FocusRect: T... |
(*
Ita IDE Plugin
Copyright (c) 2014-2018 Lyna
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including ... |
unit cameraunit;
{$INCLUDE defines.inc}
interface
uses enums;
Var
Camera : TPoint = (X:0.0; Y:0.0);
CamMove : Array[TDir] of Boolean = (False,False,False,False);
Const
ZOOM_KEYBOARD = FALSE; ZOOM_MOUSE = TRUE;
Procedure CameraZoom(Const Change:sInt;Const Mouse:Boolean);
Procedure MoveCam... |
unit ProfileSettings;
interface
uses Classes, SysUtils, StdCtrls, JsonWrapper;
const
JSON_NONE = 'none';
JSON_PROFILE_PROPERTIES = 'profile';
JSON_VERSION = 'version';
JSON_NAME = 'name';
JSON_SCRIPT_PATH = 'scriptPath';
JSON_DEFAULT_CONNECTOR = 'connector.defaultConnector';
... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.3-4, FILE=CONF058, CLAS... |
PROGRAM StringBuilderTest;
USES
StringBuilders;
VAR
strBuilder: StringBuilder;
tabSStrBuilder: TabStringBuilder;
stringJoiner: StringJoiner2;
PROCEDURE AssertEquals(expected: STRING; actual: STRING);
BEGIN
IF expected <> actual THEN
Writeln('Assert error: expected (', expected, '), actual... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.4-10, FILE=DEV180, ... |
unit KeyStroke;
interface
uses
ConsumerController, System.Generics.Collections;
const
KEEP_ON = 1;
STOP = 0;
DEFAULT_COLOR = 7;
WARNING_COLOR = 12;
type
IKeyStrokeAction = interface(IInvokable)
['{771C36F5-7A57-4F1F-BC1F-21E7B08A4584}']
/// <summary>Execute an action. If returns 0, no further ac... |
unit PrestamosPagoDM;
interface
uses
System.SysUtils, System.Classes, _StandarDMod, System.Actions, Vcl.ActnList,
Data.DB, Data.Win.ADODB, Vcl.Dialogs, System.UITypes;
resourcestring
StrSelectInfo = 'Existen estos prestamos en el periodo ¿Deseas generar sus movimientos?';
type
TdmPrestamosPago =... |
unit USetup;
interface
uses
System.IniFiles, uGlobal, system.SysUtils, uEntity, uRequestItf, uJsonUtils;
type
TLZsetup = class
private
class function ReadIni: TSetup; static;
class procedure WriteIni(Value: TSetup); static;
class function GpyReadIni: TGPY; static;
// class procedure GpyWriteIni(... |
inherited BillingDialogframe: TBillingDialogframe
Caption = 'Billing'
ClientHeight = 575
ClientWidth = 978
ExplicitWidth = 994
ExplicitHeight = 613
PixelsPerInch = 96
TextHeight = 13
inherited pnlBase: TPanel
Width = 978
Height = 575
ExplicitWidth = 978
ExplicitHeight = 575
object Sp... |
unit AppUserFriend_DataOut;
interface
uses
AppData, Classes, Variants, uBaseIntf;
type
TItemData = record
Code: String;
Name: String;
end;
TAppUserFriend_DataOut = class(TAppData)
var
FItems1, FItems2: TStringList;
private
function GetItems(Index: Integer): TItemData;
published
public... |
unit xcbxproto;
{$mode fpc}{$PACKRECORDS C}{$MACRO ON}{$CALLING CDECL}
interface
uses
ctypes, xcb_types;
(*
/**
* Get the next element of the iterator
* @param i Pointer to a xcb_char2b_iterator_t
*
* Get the next element in the iterator. The member rem is
* decreased by one. The member data points to the ne... |
unit itfUploadVioTo61;
interface
uses
uGlobal, SysUtils, ADODB, System.Classes, IdHttp, IdFtp, IdFTPCommon,
IdGlobal, Vcl.ExtCtrls, Vcl.Graphics, Vcl.Imaging.pngimage, uEntity,
Vcl.Imaging.GIFImg, Vcl.Imaging.jpeg, Soap.EncdDecd, uCommon, StrUtils;
type
TDealLockVioClass = Class
private
FLockVio: TLock... |
{ ******************************************************************
Compute an appropriate interval for a set of values
****************************************************************** }
unit uinterv;
interface
uses
utypes, umath, uConstants;
procedure Interval(X1, X2: Float; MinDiv, MaxDiv: Int... |
unit SetForm;
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.ExtCtrls,
Vcl.DBGrids, Datasnap.DBClient, Vcl.DBCtrls, Vcl.Mask, Vcl.Grids, Vcl.Menus;
type
TTSetForm = class(TForm)
... |
unit AggLineAABasics;
////////////////////////////////////////////////////////////////////////////////
// //
// Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') //
// Maintained by Christian-W. Budde (Christian@savi... |
unit HugeString;
{$I Compiler.inc}
interface
type THugeChar=longword;
THugeString=array of THugeChar;
function HugeStringCompare(const a,b:THugeString):longint;
function HugeStringConcatChar(var a:THugeString;const b:THugeChar;var Len:longint):longint;
function HugeStringConcat(const a,b:THugeStrin... |
unit UOrdemServico;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.DBCtrls, Vcl.ComCtrls,
Vcl.StdCtrls, Vcl.Buttons, Vcl.Mask, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, Fi... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.5.3-22, FILE=CONF128, CLA... |
unit controller.dto;
{$mode delphi}
interface
uses
Classes, SysUtils;
type
{ TErrorResponse }
(*
common error response structure
*)
TErrorResponse = record
strict private
FMsg: String;
public
const
PROP_ERROR = 'error';
public
property Message : String read FMsg write FMsg;
... |
(* Copyright (c) 2017. Cary Jensen, Jensen Data Systems, Inc.
This code sample is intended for the readers of
"Delphi in Depth: FireDAC"
by Cary Jensen
ISBN-13: 978-1546391272
ISBN-10: 1546391274
No guarantees or warranties are expressed or implied concerning
the applicability of techniques or... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.1-2, FILE=CONF093, CLASS=... |
{
MIT License
Copyright (c) 2017 Jamie Geddes
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, copy, modify, merge, publish, di... |
// Marcello Mello
// 28/09/2019
unit lps.GenerateAst;
interface
uses
Generics.Collections;
type
TAstItem = class
Name: string;
Fields: string;
end;
TAstGrupo = class
Nome: string;
Items: TObjectList<TAstItem>;
public
constructor Create;
destructor Destroy; override;
end;
proc... |
program main;
{$mode objfpc}{$H+}
const
LETTER = 'a';
type
TStringArray = array of string;
var
i: integer;
counter: integer = 1;
text: string = 'we`re having a problem billing your account';
sWord: string = '';
symbol: char;
hasLetter: boolean = false;
shift: integer = 0;
begin
// Откликаемся..... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.9.2-1, FILE=CONF197, CLASS=... |
unit clipper;
(* ******************************************************************************
* *
* Author : Angus Johnson *
* Version : 4.9.7 ... |
unit LibXL;
{$Z4}
interface
uses SysUtils;
type
AlignH = (ALIGNH_GENERAL, ALIGNH_LEFT, ALIGNH_CENTER, ALIGNH_RIGHT, ALIGNH_FILL, ALIGNH_JUSTIFY,
ALIGNH_MERGE, ALIGNH_DISTRIBUTED);
type
AlignV = (ALIGNV_TOP, ALIGNV_CENTER, ALIGNV_BOTTOM, ALIGNV_JUSTIFY, ALIGNV_DISTRIBUTED);
type
BorderStyle = (BOR... |
unit Error;
{$i Compiler.inc}
interface
uses Globals,StringList;
type TErrorPosition=record
FileName:ansistring;
Line:longint;
Column:longint;
end;
TError=class
private
Options:TOptions;
procedure AddError(S:ansistring);
procedure AddWarning(S:... |
unit PacketBuilding;
interface
uses
Windows;
Const
WS_BUFFER_SIZE = 1024*64;
A9_BUFFER_SIZE = 1024*16;
type
Tpkt=object
pktLen: word;
procedure Init(var Buf: array of byte; pkt_len: word);
procedure InitCmd(var Buf: array of byte; OpCode: word);
procedure AddCmd(var Buf: array of byte; OpCo... |
unit clsGlobal;
interface
uses clsDataConnect, clsUser, Forms, SysUtils, classes;
type
TGlobal = class(Tobject)
public
objDataConnect: TDataConnect;
objUser: TclsUser;
constructor create;
destructor destroy; override;
{// for CheckInOut from bar code reader
// --------------------------------... |
unit vam.StringUtils;
interface
// This function converts a string to a PAnsiChar
// If the output is not the same, an exception is raised
// Author: nogabel@hotmail.com
// Source: http://stackoverflow.com/questions/283759/convert-string-to-pansichar-in-delphi-2009
function StringToPAnsiChar(stringVar : str... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO do cabeçalho da venda.
The MIT License
Copyright: Copyright (C) 2010 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
fil... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.2-18, FILE=DEV173, ... |
Unit ESoft.Launcher.UI.BackupRestore;
Interface
Uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Vcl.ActnList,
System.Zip,
ESoft.Utils,
System.Actions;
Type
TFo... |
unit uCrudPedidos;
interface
uses
Windows, SysUtils, Classes, Controls, Forms, DBXCommon,
ComCtrls, uDados, Datasnap.DBClient, Data.DB, Vcl.StdCtrls;
type
TPedidoCrud = class
private
FCodigo: Integer;
FReferencia: String;
FNum_Pedido: String;
FData_Emissao: TDatetime;
FCod_Cli... |
unit AddPersonForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TAddUserForm = class(TForm)
btnAdd: TButton;
edtFIO: TEdit;
lblName: TLabel;
lbNumber: TLabel;
edtNumber: TEdit;
lblSalary: TLabel;
edtSalary: TEdit;... |
//############################################################################//
unit mgs_util;
interface
uses asys,sysutils,strval,mgs_net,log
,mgrecs,mgunievt,mgl_common,mgl_json,mgl_attr
,mgunits,mgproduct
;
//############################################################################//
const lf=#$0A;
//###########... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.