text stringlengths 14 6.51M |
|---|
unit uOptimizers;
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
//**************************************************************************//
// Данный исходный код является составной частью системы МВТУ-4 //
// Программисты: Тимофеев К.А., Ходаковский В.В. //
//*****************... |
unit cPedidoDeCompra;
interface
type
PedidodeCompra = class (TObject)
protected
codPedCompra : integer;
dataPedCompra : TDateTime;
valTotPedCompra : real;
statusCompra : string;
public
Constructor Create (codPedCompra : integer; dataPedCompra : TDateTime; va... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 1024,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
August '1999
Problem 8 O(N2) Dfs Method
}
program
ClosedSet;
const
MaxN = 50;
var
N : Integer;
A : array [1 .. MaxN, 1 .. MaxN] of Integer;
M : array [1 .. MaxN] of Boolean;
I, J : Intege... |
PROGRAM Penney;
TYPE
CoinToss = (heads, tails);
Sequence = array [1..3] of CoinToss;
Player = record
bet: Sequence;
score: integer;
end;
VAR
Human, Computer: Player;
Rounds, Count: integer;
Function TossCoin: CoinToss;
{ Returns heads or tails at random }
Begin
if random(2... |
//******************************************************************************
//*** LUA SCRIPT DELPHI UTILITIES ***
//*** ***
//*** (c) 2006 Jean-Fran輟is Goulet, Massimo Magnano, Kuma ... |
unit Threads.Base;
interface
uses Windows, Classes, SysUtils, GMGlobals, Math, Generics.Collections, SyncObjs;
type
TGMThread = class(TThread)
private
FTag: NativeInt;
FRestartOnError: bool;
FTermEvent: TEvent;
protected
procedure SleepThread(TimeoutMs: int);
procedure SafeExecute(); virtua... |
(**********************************************************************************)
(* Code generated with NexusDB Enterprise Manager Data Dictionary Code Generator *)
(* *)
(* Version: 3,0101 ... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ Dataset Designer }
{ }
{ Copyright (c) 1997,99... |
unit watermark;
interface
uses
{$IFNDEF FPC} jpeg, pngimage,{$ENDIF}
sysutils,graphics,dglOpenGL,define_types, textfx;
Type
TWatermark = record
X,Y,Ht,Wid: integer;
Texture2D: TGLuint;
Filename: string;
end;
procedure LoadWatermark(var W: TWatermark);
procedure DrawWatermark ( lX,lY,l... |
unit SrvrDM;
interface
{ This DataModule is the COM object that the TRemoteServer component will
connect to. Each remote connection gets a new DataModule that is used
during that clients session. When using a TDatabase on a Remote Data
Module, be sure to set it's HandleShared property to True. If you use
a... |
unit NtUtils.Processes.Memory;
interface
uses
NtUtils.Exceptions, Ntapi.ntmmapi;
// Allocate memory in a process
function NtxAllocateMemoryProcess(hProcess: THandle; Size: NativeUInt;
out Memory: TMemory; Protection: Cardinal = PAGE_READWRITE): TNtxStatus;
// Free memory in a process
function NtxFreeMemoryProce... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ Generic SQL Property Editor }
{ }
{ Copyright (c) 1999 Bo... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
{/*
* (c) Copyright 1993, ... |
{
License: modified LGPL with linking exception (like RTL, FCL and LCL)
See the file COPYING.modifiedLGPL.txt, included in the Lazarus distribution,
for details about the license.
See also: https://wiki.lazarus.freepascal.org/FPC_modified_LGPL
}
unit mvExtraData;
{$mode objfpc}{$H+}
interface
uses
Class... |
unit LittleTest12;
{ This unit compiles but is not semantically meaningfull
it is test cases for the code formatting utility
}
interface
function Foo(): String;
implementation
function Foo(): String;
begin
Result := 'Foo';
end;
end.
|
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit uGMV_Monitor;
interface
uses
Classes,
XMLIntf,
XMLDoc
;
type
TfReady = function: Boolean; stdcall;
TfReset = function: Boolean; stdcall;
TfgetBufferLength = function: integer; stdcall;
TfgetStatus = function: PAnsiChar; stdcall;
TResultRecord = record
Value: string;
UnitsName: string;
... |
{**************************************************************************************************}
{ }
{ Project JEDI Code Library (JCL) }
{ ... |
{---------------------------------------
Small shell utility to convert any texts file
into quoted pascal string variable which then
can be included as part of Pascal program using
directive $INCLUDE
@author irfanbagus
@link http://forum.lazarus.freepascal.org/index.php?topic=20706.0
----------------------------------... |
{$MODE OBJFPC}
program LongestIncreasingSubsequence;
const
InputFile = 'LIS.INP';
OutputFile = 'LIS.OUT';
max = Round(1E5);
maxV = Round(1E9);
var
a, t: array[0..max + 1] of Integer;
s: array[1..max + 2] of Integer;
n, m: Integer;
procedure Enter;
var
f: TextFile;
i: Integer;
begin
... |
{
Copyright (C) Alexey Torgashin, uvviewsoft.com
License: MPL 2.0 or LGPL
}
unit ATSynEdit_Cmp_CSS_Provider;
{$mode objfpc}{$H+}
interface
uses
SysUtils, Classes;
type
TATCssProvider = class abstract
public
procedure GetProps(L: TStringList); virtual; abstract;
procedure GetValues(const AProp: string;... |
unit OS.ProcessOpener;
interface
uses
SysUtils, Windows, Dialogs,
OS.SecurityDescriptor;
type
TProcessBuffer = reference to procedure (const CurrentBuffer: String;
var CurrentResult: AnsiString);
TProcessOpener = class
public
function OpenProcWithProcessFunction(const Path, Command: String;
... |
{
Mystix
Copyright (C) 2005 Piotr Jura
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 distributed i... |
unit DAOTest;
interface
uses
TestClasses, Generics.Collections;
type
TDAOTest = class
function GetList: TObjectList<TTest>;
procedure Add(Title: string);
procedure Delete(Index: Integer);
procedure Edit(Index: Integer; Title: string);
end;
implementation
uses
JoanModule;
{ TDAOTest }
proc... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit u_ext_info;
interface
uses Windows, u_obimp_const;
const
//============================================
//dll exported functions names
FUNC_NAME_EXTENSION_INFO = 'GetExtensionInfo_v2';
FUNC_NAME_CREATE_INSTANCE_PG = 'CreateExtenInstancePG_v2';
//============================================
//Av... |
{**********************************************}
{ TeeChart Office / TeeTree }
{ Inspector object. }
{ Copyright (c) 2001-2004 by David Berneda }
{**********************************************}
unit TeeInspector;
{$I TeeDefs.inc}
interface
Uses {$IFNDEF LINUX}
W... |
{
Maze builder class of the Lazarus Mazes program.
For more detais on the implementation, see wikipedia:
http://en.wikipedia.org/wiki/Maze_generation_algorithm#Recursive_backtracker
Copyright (C) 2012 G.A. Nijland (eny @ lazarus forum http://www.lazarus.freepascal.org/)
This source is free software; y... |
unit WGBase;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, ExtCtrls;
type
rVec2 = record
x, y: double;
end;
pVoxel = ^rVoxel;
rVoxel = record
Child: array [0..3] of pVoxel;
end;
tGrid = array of array of double;
tVectorArray = array[0..7] of rVec2;
{ cVectorGrid }
cVectorGr... |
unit IWTemplateProcessorHTML;
interface
uses
Classes,
IWApplication, IWLayoutMgr;
type
TIWTemplateProcessorHTMLTagType = (ttIntraWeb, ttBorland);
TIWUnknownTagEvent = procedure(const AName: string; var VValue: string) of object;
TIWTemplateFiles = class(TPersistent)
protected
FDefault: string;
F... |
unit ACBrEscPosChequeToshiba;
interface
uses Classes, ACBrPosPrinter, {$IFDEF MSWINDOWS} Dialogs, {$ENDIF} SysUtils;
type
TACBrEscPosChequeToshiba = class(TACBrEscPosChequeClass)
private type
TPrintStatus = (psChequePosicionado);
TPrintStatusSets = set of TPrintStatus;
function InternoChequeConcluido: ... |
unit MapLegalAddressSelectDialogUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, Buttons;
type
TMapLegalAddressSelectDialog = class(TForm)
OKButton: TBitBtn;
CancelButton: TBitBtn;
Label1: TLabel;
LegalAddressEdit: TEdit;
Num... |
unit classesArbeitsmittel;
interface
uses System.SysUtils, System.StrUtils, Vcl.Dialogs, System.UITypes, classes, classesPersonen, classesTelefonie,
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,... |
unit U_Tableaux;
interface
uses U_Element, SysUtils;
const
VALMAX = 100;
type
TABLEAU = array of ELEMENT;
// retourne un tableau comprenant des valeurs entre 1 et VALMAX
function tableauAleatoire (taille : CARDINAL) : TABLEAU;
// retourne un tableau comprenant des valeurs entre 1 et taill... |
unit pdv_confirma_qtde_peso;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters,
Menus, cxControls, cxContainer, cxEdit, dxSkinsCore, dxSkinBlack,
dxSkinBlue, dxSkinCaramel, dxSkinCoffee, dxSkinDarkRoom... |
unit Main;
interface
procedure Execute();
implementation
uses
Windows, Messages, SysUtils, Variants, Classes,
IniFiles, eStrings, eCmdLine, eFiles, eBackupSystemHelpers, DateUtils;
procedure DeleteOldHistoryFiles(const iDestinationFolder,iName:string);
var lSearch2:TSearchRec;
lOk:dword;
... |
{------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2009 hehf
// -----------------------------... |
unit Ex10Unit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, MTUtils, ComCtrls, ExtCtrls, StrUtils;
const
UM_PROGRESS_CHANGE = WM_USER + 2;
type
TProgressData = class
public
CurrValue: Integer;
CalcResult: Int64;
T... |
{*******************************************************}
{ }
{ Delphi LiveBindings Framework }
{ }
{ Copyright(c) 2012-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit Getter.TrimBasics.Factory;
interface
uses
SysUtils,
Getter.TrimBasics,
Getter.TrimBasics.FAT, Getter.TrimBasics.NTFS;
type
TMetaTrimBasicsGetter = class of TTrimBasicsGetter;
TTrimBasicsGetterFactory = class
public
function GetSuitableTrimBasicsGetter(const FileToGetAccess: String):
TTrim... |
unit u_J16LevelWithFilterImp;
interface
uses
Classes, SysUtils, StrUtils, u_ExamineImp, u_J08TaskIntf, u_J08Task, u_J16CommonDef;
type
TLevelWithFilterMeasure = Class(TCustomExamineItem, IStatText2XLS)
Private
FOption: TLevelWithFilterOption;
Procedure InternalCheck(const Value: Boolean; const ExceptionI... |
unit uPrincipal;
{
função CopyFile está presente na unit Windows que, portanto, precisa ser importada na cláusula uses da unit em que desejamos utilizar
essa função. Function CopyFile(lpExistingFileName:PWideChar; lpNewFileName: PWideChar; bFailIfExists: LongBool): LongBool;
ONDE:
1.lpExistingFileName: Caminho do a... |
unit LLVM.Imports.ExecutionEngine;
interface
//based on ExecutionEngine.h
uses
LLVM.Imports,
LLVM.Imports.Types,
LLVM.Imports.Target,
LLVM.Imports.TargetMachine;
procedure LLVMLinkInMCJIT; cdecl; external CLLVMLibrary;
procedure LLVMLinkInInterpreter; cdecl; external CLLVMLibrary;
type
TLLVMGenericValueR... |
unit main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, XPMan, filedrag, ComCtrls, Menus, PSVClass, ToolWin,
ImgList, BrowseForFolderU;
var
psvFile : TPSVFile;
initialSaveDir : string;
type
TForm1 = class(TForm)
XPManifest1: TXPM... |
unit Unit3;
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.Memo,
ClientModuleUnit1, FMX.Controls.Presentation, DBXJSON, System.JSON, Datasnap.DSCommon,
FMX.ScrollBox, FMX.Ed... |
unit Main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,
Vcl.ExtCtrls,
Data.DB, Vcl.Grids, Vcl.DBGrids, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC... |
(* PrimeVectorClass: MM, 2020-06-05 *)
(* ------ *)
(* Simple Class to store Prime Vectors in an IntArray *)
(* ========================================================================= *)
... |
program vectorordenado;
const
dimF = 8; {Dimensión física del vector}
type
vector = array [1..dimF] of integer;
dim = 0..dimF;
{-----------------------------------------------------------------------------
CARGARVECTORORDENADO - Carga ordenadamente nros aleatorios entre 0 y 100 en el
vector hasta que ... |
unit JACell;
{$mode objfpc}{$H+}
{$i JA.inc}
interface
uses
JATypes, JAList, JASpatial;
type
PJACell = ^TJACell;
TJACellLeaf = record
Cell : PJACell;
GridPosition : TVec2SInt16;
Neighbours : PJACell; {}
end;
PJACellLeaf = ^TJACellLeaf;
TJACell = record
Split ... |
unit Exceptions;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.Diagnostics,
System.Threading;
type
TfExceptions = class(TForm)
Memo1: TMemo;
Button1: TButton;
Memo2: TMem... |
{Twofish 'Monte Carlo Tests', we 06.2006}
program T_MCTFUL;
{$i STD.INC}
{$ifdef APPCONS}
{$apptype console}
{$endif}
{$ifndef FPC}
{$N+}
{$endif}
uses
{$ifdef WINCRT}
wincrt,
{$endif}
tf_base, tf_cbc, tf_ecb, BTypes, mem_util;
var
logfile: text;
const
IMAX = 399;
... |
(* StringSet: MM, 2020-05-30 *)
(* ------ *)
(* A simple class for StringSet Operations *)
(* ========================================================================= *)
... |
unit UHTTPGetThread;
//Download by http://www.codefans.net
interface
uses classes, SysUtils, wininet, windows;
type
TOnProgressEvent = procedure(TotalSize, Readed: Integer) of object;
THTTPGetThread = class(TThread)
private
FTAcceptTypes: string; //接收文件类型 *.*
FTAgent: string; //浏览器名 Nokia6610/1.0 (5... |
{ test ranges representation and I/O }
program ranges;
type
R1 = 'a' .. 'z'; // subset of chars
R2 = 1 .. 10; // int8
R3 = 100 .. 200; // uint8
R4 = 0 .. 300; // int16
R5 = 0 .. 65535; // uint16
R6 = -16384 .. 65536; // int32
var
v1, t1 : R1;
v2, t2... |
unit adot.Arithmetic;
interface
{
Implementation of IArithmetic for all basic types in Delphi:
class function TArithmeticUtils<T>.DefaultArithmetic: IArithmetic<T>;
- Used by TBox<T> to make possible arithmetic operations without type conversion.
- Can be used for calculations on generic types, for example ... |
unit uCefScriptClickElement;
interface
uses
//
//
uCefScriptBase, uCefScriptNavBase, uCefWebAction;
type
TScriptClickElement = class(TCefScriptNavBase)
private
FSpeed: Integer;
FTag: string;
FId: string;
FName: string;
FClass: string;
FAttrName: string;
FValueR... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 2010-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
{ ********************************************************************** }
{ }
{ Delphi Open-Tools API }
{ }
{ Copyright (C) 2000... |
{*********************************************}
{ TeeChart Delphi Component Library }
{ Cross-Hair demo }
{ Copyright (c) 1995-2001 by David Berneda }
{ All rights reserved }
{*********************************************}
unit ucrossh;
interface
uses
... |
unit uUsersOfTravelProgress;
interface
uses
Soap.InvokeRegistry, System.Types, Soap.XSBuiltIns, Soap.encddecd,
System.IOUtils, FMX.Dialogs, FMX.Forms, Classes, SysUtils, System.UITypes,
System.Variants,
FMX.Graphics, Data.DB, Data.DbxSqlite, Data.SqlExpr;
type
TUsersOfTravelProgress = class(TCol... |
unit ADAPT.UnitTests.Generics.Comparers;
interface
{$I ADAPT.inc}
uses
{$IFDEF ADAPT_USE_EXPLICIT_UNIT_NAMES}
System.Classes, System.SysUtils,
{$ELSE}
Classes, SysUtils,
{$ENDIF ADAPT_USE_EXPLICIT_UNIT_NAMES}
DUnitX.TestFramework;
type
[TestFixture]
TAdaptUnitTestGenericsComparer = class(TObject... |
/////////////////////////////////////////////////////////
// //
// FlexGraphics library //
// Copyright (c) 2002-2009, FlexGraphics software. //
// //
// FlexGraphics library fil... |
unit Unit_Test_Variable_Stream;
interface
{
Test a variable stream of Strings.
Do the test using in-memory streams, and file streams.
}
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
VariableStream,
Vcl.StdCtrls, System.IOUtil... |
unit iWVInterface;
{
================================================================================
*
* Application: TDrugs Patch OR*3*377 and WV*1*24
* Developer: doma.user@domain.ext
* Site: Salt Lake City ISC
*
* Description: Main interface unit for other applicat... |
unit UsuarioDataUn;
interface
uses
SysUtils, Classes, FMTBcd, Provider, osSQLDataSetProvider, DB, SqlExpr,
osCustomDataSetProvider, osUtils, osSQLDataSet;
type
TUsuarioData = class(TDataModule)
MasterDataSet: TosSQLDataset;
MasterProvider: TosSQLDataSetProvider;
MasterDataSource: TDataS... |
unit adot.Collections.Trees;
interface
{
TTreeArrayClass<T>
}
uses
adot.Types,
adot.Collections.Types,
adot.Collections.Vectors,
System.Generics.Collections,
System.Generics.Defaults;
type
{ Simple class to build/keep tree as array of nodes with FirstChild/NextSibling properties.
The tree is kept ... |
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit BrickCamp.service;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Classes,
Vcl.SvcMgr,
Spring.Container,
Spring.Logging,
BrickCamp.TService;
type
TsrvBrickCamp = class(TService)
procedure ServiceExecute(Sender: TService);
private
FService: TCbdService;
pub... |
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// 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... |
unit GeneralFunctions;
//Minor modifications:
// Added DetectCPUType from original MainUnit in FastCodeBenchmarkTool091
// Added GetCPUFrequence from original MainUnit in FastCodeBenchmarkTool091
{$mode delphi}
interface
uses
Windows, SysUtils, Classes;
type
TVersion = record
Major: integer;
Minor: integer;
... |
{****************************************************************}
{* *}
{* Unit Name: TeeFunnel *}
{* Purpose : The Funnel or Pipeline Series *}
{* Author : Marjan Slatinek, marjan@steema.com ... |
unit SIP_Call;
interface
uses SIP_Script, Classes, SIP_App ,SIP_Action, SIP_RingList, SysUtils, SyncObjs,
SIP_Env, pjsua, DTMF, Log4D, SIP_Event;
type
TStatusKind=(skBusy,skBusyRoute,skNoAnswer,skNoDTMF,skNotFound,skError,skSuccess,skFailDTMF,skFailAnnounce);
TDTMFState=(dNone,dNotDetected,dDetectedDigit,dDe... |
unit bolt_impl;
{$mode delphi} // for now
interface
uses bolt;
// Options represents the options that can be set when opening a database.
type
TOptions = record
// Timeout is the amount of time to wait to obtain a file lock.
// When set to zero it will wait indefinitely. This option is only
... |
{$R-}
{$Q-}
unit ncEncCrypt2;
// To disable as much of RTTI as possible (Delphi 2009/2010),
// Note: There is a bug if $RTTI is used before the "unit <unitname>;" section of a unit, hence the position
{$IF CompilerVersion >= 21.0}
{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
{$END... |
{*******************************************************}
{ }
{ Delphi VCL Extensions (RX) }
{ }
{ Added by Polaris Software }
{*****************************... |
unit EarthType;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, Buttons, DB, OleCtrls,
ExtCtrls, Mask, rxToolEdit, rxCurrEdit;
type
TEarthTypeForm = class(TForm)
lbl_qiymc: TLabel;
btn_ok: TBitBtn;
btn_cancel: TBitBtn;
Gbox: ... |
unit Bitmaps;
interface
uses
Windows, Messages;
type
Color = byte;
PAColor = ^AColor;
PColor = ^Color;
AColor = array [0 .. MaxInt div sizeof(Color)-1] of Color;
Bitmap = record
H : HWND;
DC : HDC;
sizeX, sizeY, stride : integer;
Pixels : PAColor;
end;
procedure CreateBitmap (va... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2014-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit SimpleScriptObj;
interface
uses Classes, Sample_TLB, SiteComp, HTTPProd, WebAuto;
type
TSimpleScriptObject = class(TComponent, IGetScriptObject, IWebVariableName)
private
FSampleValue: string;
protected
{ IWebVariableName }
function GetVariableName: string;
{ IGetScriptObject }
functio... |
unit uSalePromotionEditor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls, Buttons,uConst,uTC,ADODB,uDBuitls;
type
TEditor=(TESaleAdd,TESaleModify);
TfrmEditor = class(TForm)
lblStart: TLabel;
dtpStart: TDateTimePicker;
... |
{
Copyright (C) Alexey Torgashin, uvviewsoft.com
License: MPL 2.0 or LGPL
}
unit ATSynEdit_Cmp_RenderHTML;
{$mode objfpc}{$H+}
interface
uses
Graphics;
procedure CanvasTextOutHTML(C: TCanvas; X, Y: integer; const Text: string);
function CanvasTextWidthHTML(C: TCanvas; const Text: string): integer;
implementation... |
program triangle2;
uses crt;
{
//BUT : Fait un triangle2
//ENTREE : La taille du triangle2
//SORTIE : Un triangle de la taille désirée
VAR
taille, i, j : ENTIER
DEBUT
ECRIRE 'Entrez la taille du triangle'
LIRE taille //Récupération de la taille du triangle
POUR i DE 1 A taille FAIRE //Boucle pou... |
/////////////////////////////////////////////////////////
// //
// FlexGraphics library //
// Copyright (c) 2002-2009, FlexGraphics software. //
// //
// Path procedures and func... |
unit MainPageMod;
interface
uses
Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd, ReqMulti,
WebSess, WebDisp, WebAdapt, WebComp, WebUsers;
type
TMainPageModule = class(TWebAppPageModule)
PageProducer: TPageProducer;
WebAppComponents: TWebAppComponents;
ApplicationAdapter: TApplicat... |
unit UtNau;
interface
uses UtVaixell, Uterror, Vcl.Dialogs, System.SysUtils, System.Classes;
const
NUM_VAIXELLS = 50;
type
Tnau = class
private
v_vaixells: array [0..NUM_VAIXELLS -1] of TVaixell;
function primera_pos_lliure:integer;
procedure vaixell_averiat(id:int... |
unit fOrdersTS;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
fAutoSz, StdCtrls, ORCtrls, ORFn, ExtCtrls, rOrders, ORDtTm, mEvntDelay,uConst,
VA508AccessibilityManager, ORNet, Vcl.ComCtrls, Vcl.OleCtrls, SHDocVw, rCore, ShellApi;
type
TfrmOrdersTS = class(TfrmAutoSz... |
{***************************************************************
*
* Project : MailDemo
* Unit Name: Main
* Purpose :
* Version : 1.0
* Date : Sat 21 Apr 2001 - 15:54:11
* Author : Hadi Hari <hadi@pbe.com>
* History :
*
****************************************************************}
unit Main;
int... |
unit uSatellite;
//////////////////////////////////////////////////////////////////////////
//
// 参考資料
// 1.天体の位置計算 増補版 著者:長沢工氏 発行:地人書館
// 2. Calsat32のホームぺージ 作者:相田政則氏(JR1HUO)
// http://homepage1.nifty.com/aida/jr1huo_calsat32/index.html
//
/////////////////////////////////////////////////... |
unit untFCenterDM;
interface
uses
SysUtils, Classes, DB, DBAccess, Uni, MemDS;
type
TdmFCenter = class(TDataModule)
qryFOrderInfo: TUniQuery;
qryFOrderInfoso_id: TIntegerField;
qryFOrderInfoso_source: TStringField;
qryFOrderInfosource_no: TStringField;
qryFOrderInfom_id: TFloatField;
qryF... |
unit fNotePrt;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
fAutoSz, ORCtrls, StdCtrls, Mask, ORNet, ORFn, ComCtrls,
VA508AccessibilityManager;
type
TfrmNotePrint = class(TfrmAutoSz)
grpChooseCopy: TGroupBox;
radChartCopy: TRadioButton;
radWorkCopy: TRa... |
unit WaitForm;
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, dxSkinMetropolis,
cxLabel, dxActivityIndicator;
... |
unit UClient;
interface
type
TClient = class
private
// The data fields of this new class
ClientID : String;
CallbackID : String;
public
// Properties to read these data values
property UID : String
read ClientID;
property CID : String
read Callback... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
program max(input, output);
const
UNTEN = 0; { Array-Untergrenze }
OBEN = 10; { Array-Obergrenze }
type
tIndex = UNTEN..OBEN;
tFeld = array[tIndex] of integer;
var
auswahl : char;
Feld : tFeld;
Maximum : integer;
function FeldMaxA (
var inFeld : tFeld;
inUnten,
inOben : tIndex) : integer;
... |
unit Universe;
{$mode objfpc}{$H+}{$J-}
interface
uses
Node;
type
{ TUniverse }
TUniverse = class
private
FGenerationCount: UInt64;
FRoot: INode;
public
constructor Create;
procedure Clear;
procedure SetBit(const x, y: Integer);
procedure RunStep;
property Root: INode read FR... |
namespace RemObjects.SDK.CodeGen4;
interface
type
JavaScriptRodlCodeGen = public class(RodlCodeGen)
private
fKnownTypes: Dictionary<String, String> := new Dictionary<String, String>;
method _FixDataType(aValue: String): String;
begin
var l_lower := aValue.ToLowerInvariant;
if f... |
unit Classe_Empresa;
interface
uses Classes, Dialogs, SysUtils, IniFiles,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, FireDAC.Comp.DataSet,
FireDAC.Comp.Client,
FireDAC.Stan.Intf, FireDAC.Stan.Option,
Classe_Em... |
unit UPubFunLib;
interface
uses ComObj, ActiveX, SysUtils, Forms, Windows;
function CreateGUIDStr: string;
function ShowConfirm(Text, Caption: string): Boolean;
implementation
function CreateGUIDStr: string;
var
lGuid: TGUID;
begin
CoCreateGUID(lGuid);
Result := GUIDToString(lGuid);
Resu... |
PROGRAM Hello;
var text: string;
BEGIN (* Hello *)
text := 'Hello World';
Writeln(text)
END. (* Hello *) |
unit ufrmSysUserAccessRight;
interface
{$I ThsERP.inc}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls, StrUtils, Vcl.AppEvnts,
Vcl.Menus, Vcl.Samples.Spin,
Ths.Erp.Helper.Edit,
Ths.Erp.Helper.Memo,
Ths.Erp.Helper.ComboBox,
ufrmBas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.