text stringlengths 14 6.51M |
|---|
program ej1;
type
planta = record
nombre : string;
t_vida : real;
tipo : string;
clima : string;
pais : string;
end;
max_vida = record
nombre1 : string;
nombre2 : string;
max1 : real;
max2 : real;
end;
procedure leerPlanta(var planta:planta);
begin
with planta d... |
{$A+,B-,D+,E+,F-,G+,I+,L+,N-,O-,P-,Q-,R-,S+,T-,V+,X+}
(***************************************************************)
{ }
{ Turbo Pascal Mouse Interface, Version 1.0 }
{ Developed by Tanescu A. Horatiu }
{ December 1996 }
{ }
(***************************************************************)
... |
unit fMainForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, ActnList, TarFTP.MVC, ExtCtrls, XPMan;
type
TfrmMainForm = class(TForm, IView, IMainView)
Label1: TLabel;
edFtpServer: TEdit;
Label2: TLabel;
edUserName: TEdit;... |
{
Description: vPlot gcode unit.
Copyright (C) 2014-2018 Melchiorre Caruso <melchiorrecaruso@gmail.com>
This source is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (... |
program scroll;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNITPATH ../../../Base/Trinity}
{$UNITPATH ../../../Base/Sugar}
{$IFDEF AMIGA} {$UNITPATH ../../../Sys/Amiga} {$ENDIF}
{$IFDEF AR... |
unit core_material_library;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,dglOpenGL,core_types,fgl,core_camera,VectorGeometry,
core_forward_shaders,core_shader_program,core_defered_shaders;
type
{ TShaderSelectionCube }
TShaderSelectionCube = class (TProgram)
unifColor:glint;
unifWorldToCam... |
unit uCustomSimulation;
interface
uses
System.Diagnostics;
type
TCustomSimulation = class
protected
FStopwatch: TStopwatch;
FStartTime,
FLastTime: Double;
procedure Initialize; virtual; abstract;
procedure Step(deltaTime: Double = 1/60); virtual; abstract;
procedure Final... |
unit Model.Entities.Order;
interface
uses
System.SysUtils;
type
TModelEntitiesOrder = class
private
FNumero: integer;
FValorTotal: Currency;
FDataEmissao: TDate;
FCodigoCliente: Integer;
procedure SetCodigoCliente(const Value: Integer);
procedure SetDataEmissao(const Value: TDate);
... |
{******************************************************************************}
{ }
{ Icon Fonts ImageList: An extended ImageList for Delphi/VCL }
{ to simplify use of Icons (resize, colors and more...) ... |
{*
Name: types.pas
Programmers: Kevin Masterson (k.m.masterson@gmail.com), Rob Close (rob0229@gmail.com)
*}
unit types;
interface
type
variable_info = record
var_name: string;
var_type: string;
var_value: string;
end;
function_info = record
func_name: strin... |
program Felder (input,output);
const FELDMAX = 20;
type
tIndex = 1..FELDMAX;
tFeld = array[tIndex] of integer;
var
a : tFeld;
eingabe : integer;
zeiger : integer;
procedure alleDrucken(zuDrucken: tFeld);
var
zeiger: integer;
begin
zeiger := 1;
writeln();
while zeiger <= FELDMAX ... |
unit uCrtCanvas;
interface
uses
SmartCL.System, System.Colors, SmartCL.Graphics;
type
TConsoleColour = (black, blue, green, cyan, red, magenta, brown, lightgray,
darkgray, lightblue, lightgreen, lightcyan, lightred, lightmagenta, yellow, white);
TCharacter = record
Letter: ... |
unit uTJSONTools;
interface
uses DBXJSONReflect, DBXJSON, sysutils, IOUtils;
type
TJSONTools = class
public
{ Public declarations }
class function saveFileJSON<T :class>(obj: T; const filePath: string): Boolean;
class function loadFileJSON<T : class>(const filePath: string): T;
end;
implementation... |
{******************************************************************************}
{ }
{ IPGeoLocation }
{ ... |
unit frameBuscaNCM;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, NcmIBPT, StdCtrls, Buttons, Mask, ToolEdit, CurrEdit, Math;
type
TBuscaNCM = class(TFrame)
edtCodigo: TCurrencyEdit;
btnBusca: TBitBtn;
StaticText1: TStaticText;
edtNCM: TEdit... |
unit MobileGfxSetupMain;
//=== File Prolog ============================================================
// This code was developed by RiverSoftAVG.
//
//--- Notes ------------------------------------------------------------------
//
//--- Development History ---------------------------------------------------... |
{ -------------------------------------------------------------------------------
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/M... |
unit QuickList_double;
interface
uses
QuickSortList;
type
{---------------------------------------}
PALDoubleListItem = ^TALDoubleListItem;
TALDoubleListItem = record
FDouble: Double;
FObject: TObject;
end;
{------------------------------------------}
TALDoubleList = class(TALBaseQuickSortList... |
unit Ao01;
{
ULAO01.DPR****************************************************************
File: AO01.PAS
Library Call Demonstrated: cbAOut()
Purpose: Writes to a D/A Output Channel.
Demonstration: Sends a digital output to D/A 0
... |
unit KM_RenderControl;
{$I KaM_Remake.inc}
interface
uses Classes, Controls, ExtCtrls, Forms, KromOGLUtils, Types
{$IFDEF MSWindows} , Windows, dglOpenGL {$ENDIF}
{$IFDEF Unix} , OpenGLContext, dglOpenGL {$ENDIF}
{$IFDEF WDC}, Messages {$ENDIF}
;
type
TResizeEvent = procedure(aWidth, aHeight: Integer) of ... |
{hint: Pascal files location: ...\AppLocationForGpsDemo\jni }
unit unit1;
{$mode delphi}
interface
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, SysUtils, AndroidWidget, linearlayout, Laz_And_Controls, location;
type
{ TAndroidModule1 }
TAndroidModule1 = class(jForm)
... |
unit uResUsers;
// EMS Resource Module
interface
uses
System.SysUtils, System.Classes, System.JSON,
EMS.Services, EMS.ResourceAPI, EMS.ResourceTypes,
UDMUSers;
type
[ResourceName('resUsers')]
TresUsers = class(TDataModule)
procedure DataModuleCreate(Sender: TObject);
procedure DataModuleDestroy(Se... |
unit models.uGrupoAtivo;
interface
uses
System.Generics.Collections,
interfaces.uModGrupoAtivo,
interfaces.uModGrupoAtivoFilho;
type
ModGrupoAtivo = class(TInterfacedObject, IModGrupoAtivo, IModGrupoAtivoFilho)
private
FListaGrupoAtivoFilho: TList<IModGrupoAtivo>;
FDescricao: string;
FC... |
unit PTEndpointBlok;
{
Endpoint PTserveru /blok/id.
}
interface
uses IdContext, IdCustomHTTPServer, JsonDataObjects, PTEndpoint, SysUtils,
Generics.Collections;
type
TPTEndpointBlok = class(TPTEndpoint)
private const
_ENDPOINT_MATCH_REGEX = '^/bloky/(\d+)/?$';
public
procedure OnGET(ACont... |
unit crypt;
interface
uses Windows, SysUtils, Classes,
rsa, sha1, sha256, sha512, md5, base64, aes,
rand, alacnfuncs, utils, xml;
function RsaGenerateKeyPair(
bits: integer;
var privatekey,
publickey,
fingerprint: string
): boolean;
function MsgPrivateSign(
const rsakey, msg: string;
var outsign... |
unit uSaxBase;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Windows, fgl, Sax;
{$REGION Константы}
resourcestring
// Теги и аттрибуты XML - словарь входных символов
sHoldings = 'holdings';
sDate = 'date';
sModule = 'module';
sUid = 'uid';
sHolding = 'holding';
sName = 'na... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
program untitled;
const
valorAlto = 9999;
type
registro = record
cod: integer;
mes: integer;
anio: integer;
dia: integer;
tiempo: integer;
end;
archivo = file of registro;
procedure leer(var a: archivo; var r: registro);
begin
if (not eof(a)) then
read(a,r)
else
r.anio := valorAlto;
... |
{ ============================================================================ }
{ DELPHI CONFERENCE 2012 - 23/10/2012 }
{ José Mário Silva Guedes - mario.guedes@arrayof.com.br }
{ ... |
unit uPhotoManager;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, jpeg,uDrag, RzTabs,Contnrs, uContainer,uLKJSON,
uMobile_Utils, ComCtrls, ImgList;
type
TPhoto = Class(TObject) //checked
private
FType: Integer; ... |
unit EspecificacaoItensDaNotaFiscal;
interface
uses
Especificacao,
NotaFiscal;
type
TEspecificacaoItensDaNotaFiscal = class(TEspecificacao)
private
FCodigoNotaFiscal :Integer;
public
constructor Create(NotaFiscal :TNotaFiscal);
public
function SatisfeitoPor(Objeto :TObject): Boolean; overr... |
unit RepositorioEntradaSaida;
interface
uses DB, Auditoria, Repositorio;
type
TRepositorioEntradaSaida = class(TRepositorio)
protected
function Get (Dataset :TDataSet) :TObject; overload; override;
function GetNomeDaTabela :String; override;
function GetIde... |
unit UCwMessageEditor;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, UTextEditor, System.Actions,
Vcl.ActnList, Vcl.StdCtrls, Vcl.ExtCtrls;
type
TCwMessageEditor = class(TTextEditor)
procedure buttonOKClick(Sender: TOb... |
unit SmartDesigner;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, ProjectIntf, Forms, AndroidWidget,
process, math, SourceChanger, propedits, LCLClasses;
//tk min and max API versions for build.xml
const
cMinAPI = 14;
cMaxAPI = 34;
// end tk
type
{ TLamwSmartDesigner }
... |
unit uDivisao;
interface
type
TDivisao = class
function executar(valor1, valor2: Double): Double;
end;
implementation
uses
uExceptions;
{ TSoma }
function TDivisao.executar(valor1, valor2: Double): Double;
begin
if valor2 = 0 then
raise TExceptionDivisaoPorZero.Create('Valor 2 deve ser diferente... |
unit TrackItems;
interface
uses ManagedItem, Windows, Classes, Intersect, TrackPainter, UndoEngine;
type
TteTrack = class;
// *** BASE CLASS FOR ALL TRACK MEMENTOS ***
TteMemento = class( TunMemento )
end;
// *** BASE CLASS FOR ALL EDITABLE ITEMS ***
TteTrack = class
protected
// size w... |
unit PDBLookupEdit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
stdctrls, dbtables, extctrls, RxCtrls, dbctrls, db, SelectDlg, PLabelPanel
,buttons, LookupControls;
type
TPDBLookupEdit = class(TPLookupControl)
private
{ Private declarations }
... |
unit NtUtils.Registry.HKCU;
{
The module provides functions for opening HKEY_CURRENT_USER key relative to a
token.
}
interface
uses
Ntapi.WinNt, Ntapi.ntdef, Ntapi.ntseapi, Ntapi.ntregapi, NtUtils;
// Get user's hive path. Uses the effective token by default.
function RtlxFormatUserKeyPath(
out Path: String... |
unit ExportTabularNPC_;
uses ExportCore,
ExportTabularCore,
ExportJson;
var ExportTabularNPC__outputLines: TStringList;
function initialize(): Integer;
begin
ExportTabularNPC__outputLines := TStringList.create();
ExportTabularNPC__outputLines.add(
'"File"' // Name of the or... |
object PrefDocOperation: TPrefDocOperation
Left = 0
Top = 0
Width = 501
Height = 434
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
ParentFont = False
TabOrder = 0
object lblCommentsForm: TStaticText
Left = 22
Top = ... |
{**********************************************************************}
{ }
{ "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 comp... |
unit Helper.TStrings;
interface
uses
System.Classes, System.Types;
type
TStringsHelper = class helper for TStrings
// due to compatibility:
// Delphi 10.3 Rio:
// ... - TStringDynArray = TArray<string>;
// ... - function TStrings.ToStringArray: TArray<string>;
// Delphi XE8:
// ... - TStr... |
{$optimize 7}
{---------------------------------------------------------------}
{ }
{ Gen }
{ }
{ Generates native code from intermediate code instructions. }
{ ... |
unit SimOptions;
{ SimThyr Project }
{ A numerical simulator of thyrotropic feedback control }
{ Version 3.3.3 (Gaia) }
{ (c) J. W. Dietrich, 1994 - 2014 }
{ (c) Ludwig Maximilian University of Munich 1995 - 2002 }
{ (c) Ruhr University of Bochum 2005 - 2012 }
{ This unit supports a small dialog with add... |
unit uPerro;
interface
uses
uAnimal;
type
TPerro = class(TAnimal)
private
FEspecie: string;
public
constructor Create; override;
function Hablar: string; override;
property Especie: string read FEspecie;
end;
implementation
constructor TPerro.Create;
begin
inherited;
FEspecie := 'Cani... |
{
Purpose:
Browse the results of a query
Classes:
TFormSQLMgrBrowse - The form
TthrdSQLMgr - A thread to run the query in
}
unit FSQLMgrBrowse;
{$I tiDefines.inc}
interface
uses
Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
tiDBConnectionPool, tiSQLMgr_BOM, ActnList,... |
PROGRAM PrintHelloName(INPUT, OUTPUT);
USES
DOS;
VAR
Name: STRING;
FUNCTION GetQueryStringParameter(Key: STRING): STRING;
VAR
QueryString, S: STRING;
N: INTEGER;
BEGIN
QueryString := GetEnv('QUERY_STRING');
Insert('&', QueryString, 1);
N := Pos(('&' + Key + '='), QueryString);
IF N = 0
THEN
S := ... |
program WhileLoop;
{$mode objfpc}{$H+}
uses {$IFDEF UNIX} {$IFDEF UseCThreads}
cthreads, {$ENDIF} {$ENDIF}
Classes { you can add units after this };
var
Num: integer;
Fac, i: Integer;
begin
Write('Input a number: ');
Readln(Num);
while Num > 0 do
begin
Writeln('From inside loop: I... |
unit Celestial_body_lib;
interface
uses math,table_func_lib,graphics,classes;
type
TCelestialBody=class(TPersistent)
private
// _filename: string;
// procedure write_filename(fn: string);
public
spectrum: table_func; //спектр
vmag: Real; //зв. величина
title: string; //название
description: s... |
unit uConsts;
interface
uses
Windows, Classes, SysUtils, Graphics;
const
CST_SYSINFOFILE = 'sysinfo.CSV';
CST_CHANNELFILE = 'channels.csv';
CST_DEFJOBINFOFILE = 'defjobinfo.CSV';
CST_JOBINFOFILE = 'jobinfo.CSV';
X_AXIS = 0;
Z_AXIS = 1;
TCP_NONE = 0;
LABEL_PRINT_INFO = 1;
VID_DATA_INFO = ... |
unit JLDataBase;
(* DataBase関連 *)
(* aiwota Programer *)
interface
uses
Windows, JLSqlite, SysUtils;
type
ENotFileNameErr = class(Exception);
EHandleErr = class(Exception);
TJLSQLiteNotifyEvent = procedure (Sender: TObject) of Object;
TJLSQLite = class(TObject)
private
FSqlite: P... |
unit NinePatchPNG;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Graphics, IntfGraphics;
type
{ T9PatchPNG }
T9PatchPNG = class(TPortableNetworkGraphic)
private
FIs9Patch: Boolean;
FPadding: TRect;
FRealWidth, FRealHeight: Integer;
FResizeBox: TRect;
FBGMargi... |
{Unit of routines for 1-D transmission and reflection probabilities. }
{Used by Scattr1D.pas. }
{ }
{Author: John R. Hiller }
{Version: 1.0 11/... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
unit UConfigDialog;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, Dialogs, StrUtils,
ConfigManager, ConfigState, PCRE;
type
TConfigDialog = class(TForm, IConfigObserver)
OKBtn: TButton;
CancelBtn: TButton;
AutoSaveGroup: TGroupBox... |
unit Interf.EnvironmentController;
interface
uses
System.Classes;
type
IRFUEnvironmentController = interface
['{A53012B2-303C-4E12-8891-B8B18DAB4487}']
function GetFullMatch(const SearchString: string): TStringList;
function PasExists(PasName: string): Boolean;
function AreDependenciasReady: Bool... |
unit StorageLocations;
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,System.UITypes, frmLogWindow, _dm,ADODB;
type
TFormStorageLocations = class(... |
unit depscan.ScanProgress;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Generics.Collections, PEHeaders, Depscan.Db;
type
TExportData = record
ord: integer;
name: string;
... |
unit astar3d_breadCrumb;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, astar3d_point3d, VectorTypes, VectorGeometry;
type
{ TSearchNode }
TSearchNode = class
public
preserve:boolean;
position: TPoint3D;
cost: Integer;
pathCost: Integer;
fnext: TSearchNode;
prev: TSearchNode... |
unit FormMain;
interface
uses
System.DateUtils,
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls;
type
TFrmMain = class(TForm)
Label1: TLabel;
cbbInterval: TComboBox;
dtpDate: TDateTim... |
unit TestMVCBr.View;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework, system.SysUtils, system.Clas... |
unit uUser;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types;
Type
TUser = class
private
FipAddress: String;
fPort: WORD;
FErrMsg: String;
FErrType: String;
FSmsMsg: String;
FPassword: String;
FLogin: String;
FComment... |
UNIT ConstsUnit;
{ unit for static, const data }
INTERFACE
TYPE
Tree = ^NodeType;
NodeType = RECORD
Word: STRING;
Count: INTEGER;
OverflowCount: BOOLEAN;
LLink, RLink: Tree
END;
Str50 = STRING[50];
CONST
... |
unit uCommon;
interface
uses
System.SysUtils,
System.Generics.Collections;
type
TTipsRec = record
Subject: string;
TipsType: Integer;
mDate: TDate;
mTime: TTime;
Body: string;
Receivers: string;
public
class function JSONFileToList(const AFileName: string;
AList: TList<TTip... |
// =============================================================================
// Module name : $RCSfile: ConnBase.pas,v $
// description : This unit implements a basis methodes and properties of a class
// for connection FlashRunner. The types of connection includes Jtag
// RS232, USB... |
unit uClienteModel;
// unit uConexao;
interface
uses
ZAbstractConnection, ZConnection, DB,ZAbstractRODataset,ZAbstractDataset,
SysUtils,ZDataset,uEnumerado;
type
TClienteModel = class
private
FCodigo: Integer;
FNome: string;
FTpAcao: TAcao;
procedure SetCodigo(const Value: Integer);
proc... |
unit stacklib;
interface
uses listlib;
type TStack = TNode;
procedure StackInit;
procedure StackClr;
function StackPush(a: TData): boolean;
function StackPop(): TData;
function StackSize: integer;
implementation
var
top: TNode;//указатель на вершину стека
stsize: longint;// размер стека
procedure StackInit;
be... |
unit JSONComparerTests;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
TJSONComparerTests = class(TObject)
public
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
[Test]
procedure TestBasicComparison;
end;
implementation
uses
JSONComparer, System.JSON;
procedu... |
unit Rel_Clientes_Valor_Vendido_00;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, Mask;
type
TRelClientesValorVendido00 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
edtDataInicial: T... |
unit Builder.SQL.DML;
interface
uses
System.SysUtils,
Data.DB, StrUtils,
Generics.Collections,
RegisterVariable.ConnDB,
Util.Constantes,
Util.Types,
Vcl.Dialogs,
Util.RS;
type
EBuilderSQLDML = class( Exception );
{$REGION 'Classe base do Builder SQL'}
TBuilderSQLDML = class
strict private
... |
unit DeepLinkAnalyzer.Link;
interface
type
ILink = interface
function ToString(): string;
end;
TLink = class sealed
public
class function FromString(link: string): ILink;
end;
implementation
type
TLinkImpl = class(TInterfacedObject, ILink)
strict private
fLink: string;
... |
(*
fmifs.dll, which are used to format fixed or removable
disk drives and perform disk checks on Windows NT4 and later.
It supports any local disk drive that has been assigned a
drive letter by Windows, just like the normal format and
check disk tools in Windows.
Chkdsk := GetProcAddress (MagFmifsib, 'Chkdsk'... |
{*********************************************************************************}
{ }
{ XML Data Binding }
{ ... |
unit FBankAccountLookup;
interface
uses
ActnList
, Classes
, Controls
, Forms
, FrBankAcctIDSearchGrid
, FrSearchGrids
, FTransactViewForms
, Menus
, omBankAccountLookupModels
, omComponentGroupManagers
, omSecureActions
, omStatusBars
, StdCtrls
, System.Actions
, S... |
unit tmbToolEdicaoLista;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, ToolWin, ComCtrls, Buttons, DBClient, DB;
type
TtmbEdicaoLista = class(TPanel)
private
{ Private declarations }
Bevel3,
Bevel4 : TBevel;
SpeedButton1 ... |
unit TadGraph;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
TeeShape, TeEngine, Series, ExtCtrls, TeeProcs, Chart, Func1D, Menus;
type
TfrmTadGraph = class(TForm)
Chart1: TChart;
Series1: TLineSeries;
Series2: TLineSeries;
PopupMenu1: TPopupMenu;
... |
program trees;
type treePtr = ^treeRecord;
treeRecord = record
data : string;
left, right : treePtr;
end;
procedure itAddtoTree(var tree : treePtr; s : string);
var tmp : treePtr;
begin
tmp := tree;
while(tree <> nil) do
if s < tree^.data then tree := t... |
unit DynamicArraysForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.ScrollBox,
FMX.Memo, FMX.Controls.Presentation, FMX.StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: T... |
unit MeDocXML;
interface
uses xmldom, XMLDoc, XMLIntf;
type
{ Forward Decls }
IXMLZVITType = interface;
IXMLTRANSPORTType = interface;
IXMLORGType = interface;
IXMLFIELDSType = interface;
IXMLCARDType = interface;
IXMLDOCUMENTType = interface;
IXMLROWType = interface;
{ IXMLZVITType }
IXMLZVITTyp... |
{
Классы работы с INI файлами
Версия: 0.0.3.1
}
unit inifunc;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, INIFiles, StrUtils, dictionary;
type
{
TIniDictionary - Словарь словарей для хранения содержимого INI файла
с разделением данных по секциям.
}
TIniDictionary = class(TStrDicti... |
unit Core.Helpers;
interface
uses
FMX.Graphics, Aurelius.Types.Blob;
procedure Bitmap2BlobAs(aBmp: TBitmap; const aBlob: TBlob; const aType: string);
procedure Blob2bitmap(const aBlob: TBlob; aBMP: TBitmap);
implementation
uses
FMX.Surfaces, System.Classes, System.SysUtils;
procedure Bitmap2Blo... |
Unit HardwareTools; {General Hardware Detect Tools}
{Information
* Code Size = 4978
* Data Size = 130
* Heap Size = 0
* Number of Lines = 951}
Interface
Type Str25=String[25];
Str12=String[12];
Str7=String[7];
Str8=String[8];
Str42=String[42];
Str3=String[3];
Str4=Str... |
unit RepositorioItemDeletado;
interface
uses DB, Auditoria, Repositorio;
type
TRepositorioItemDeletado = class(TRepositorio)
protected
function Get (Dataset :TDataSet) :TObject; overload; override;
function GetNomeDaTabela :String; override;
function GetIde... |
unit uUDPConnection;
interface
uses
Windows, WinSock, SysUtils, Dialogs, Classes, Controls,
Messages,
AnsiStrings;
const
WM_SOCKET = WM_USER + 1;
MessageBufferLength_Max = 65535;
INADDR_ANY_asstring = '0.0.0.0';
type
TNotifyReceive = procedure(Sender: TObject; TextMsg: string) of object;
TUDPConnec... |
unit tm_wrapper;
// {$mode objfpc}{$H+}
interface
uses Classes, tm_constants, tm_lexer, tm_parser, tm_interpreter, tm_error_reporting;
function tm_execute(s: String; errorlist: TStringList): Double;
implementation
uses SysUtils;
function tm_execute(s: String; errorlist: TStringList): Double;
var x... |
unit DBAHelper;
interface
uses Windows, Classes, IntfUtils, DBAIntf, Listeners;
const
lcDBAIntfHelper = 8;
type
EDBAIntfHelper = class(EDBAccessError);
TDBAIntfHelper = class(TVCLInterfacedObject,IDBAccess)
private
procedure SetConnected(const Value: boolean);
procedure DoConnect;
procedure... |
uses Arrays;
// Создание типа данных - "студент"
type student=record
fio: record
surname: string;
name: string;
patronymic: string;
end;
group_num: integer;
marks: array of integer;
end;
// Вывод записи студента на экран
procedure print_student(stud:student);
begin
writeln('Фамилия: ',stud.fio.... |
//****************************************************************************
//
// Program Name : - AT Library -
// Program Version: 1.00
// Filenames : AT.Windows.Graphics.GradientDraw.pas
// File Version : 1.00
// Date Created : 28-JAN-2014
// Author : Matthew S. Vesperman
//
// Descriptio... |
// Personally developed string-handling routines
unit JMOStr;
{$MODE Delphi}
interface
USES
FileCtrl, SysUtils, Dialogs, Math;
PROCEDURE StrLeftTrim(VAR S : STRING; Delimiter : STRING);
PROCEDURE StrRightTrim(VAR S : STRING; Delimiter : STRING);
FUNCTION WordCount(S : STRING; Delimiter : STRING) : Integer;
FUNCT... |
{
This is part of Vortex Tracker II project
Version 2.0 and later
(c)2017-2021 Ivan Pirog, ivan.pirog@gmail.com
https://github.com/ivanpirog/vortextracker
}
unit TrackInf;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, RichEdit, ShellAPI, tr... |
unit ssjsonReflect;
interface
uses
SysUtils,
Classes,
Rtti,
TypInfo,
DateUtils,
Generics.Collections,
ssjson;
type
// EConversionError = class(Exception);
TJSONMarshal = class;
TJSONUnmarshal = class;
TJsonConverter = reference to function(ctx: TJSONMarshal; var jo: TJSON; const value: TValue)... |
Unit KeyTestControl;
Interface
Uses
System.SysUtils, System.Classes, Vcl.Controls, Winapi.Messages, Winapi.Windows,
Winapi.GDIPAPI, Winapi.GDIPOBJ;
Type
TOnTestMessage = Procedure(Var Msg: TMessage) Of Object;
TKeyTest = Class(TWinControl)
Private
{ Private declarations }
FOnTestMessage: TOnTestMessage;
... |
unit uSettingForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TSettingForm = class( TForm )
edtCapacity : TEdit;
Label4 : TLabel;
btnOK : TButton;
btnCancel : TButton;... |
unit ExtendedDatabaseAuthentificationFormController;
interface
uses
DatabaseAuthentificationFormController,
ExtendedDatabaseAuthentificationFormViewModel,
DatabaseAuthentificationFormViewModel,
unExtendedDatabaseAuthentificationForm,
SystemAuthentificationFormViewModel,
AuthentificationData,
ServiceInf... |
{*******************************************************************************
This file is part of the Open Chemera Library.
This work is public domain. Enjoy.
********************************************************************************
Author: Ludwig Krippahl
Date: 16.7.2011
Purpose:
Surface calculations for ... |
unit cwebsocketclient;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, {And_jni_Bridge,} AndroidWidget;
type
TWebSocketClientOnOpen=procedure(Sender:TObject) of object;
TWebSocketClientOnTextReceived=procedure(Sender:TObject;msgContent:string) of object;
TWebSocketClientOnBinaryReceived=procedure(Sende... |
unit UFStatistic;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls;
type
TFStatistic = class(TForm)
Memo1: TMemo;
Panel2: TPanel;
procedure FormCanResize(Sender: TObject; var NewWidth, NewHeight: Integer; var Resize: Boolean);
pri... |
PROGRAM PointerDemo;
TYPE IntPtr = ^SMALLINT;
PROCEDURE Swap(VAR a, b: SMALLINT);
VAR temp: SMALLINT;
BEGIN
temp := a;
a := b;
b := temp;
END;
PROCEDURE SwapPtr(a, b: IntPtr);
VAR temp: SMALLINT;
BEGIN
temp := a^;
a^ := b^;
b^ := temp;
END;
VAR
i: SMALLINT;
p: ^SMALLINT;
a0, a1: SMALLINT;
BEGIN
i := 18;... |
Program ElectricBill(Input, Output);
uses wincrt;
var KWUsed, SubTotal, Surcharge, Tax, Total : real;
procedure GetInput(var KWUsed : real);
begin
clrscr;
write('KW hours used: ');
readln(KWUsed);
end;
procedure Calc(KWUsed : real;
var SubTotal, PriceSurcharge,
... |
program A_3_6;
var r,a,c:real;
begin
writeln('Enter the radius of a circus to find it''s area and circumference');
readln(r);
a:=sqr(r)*pi;
c:=2*pi*r;
writeln('the area of the circle is ',a:0:2);
write(' and the circumference is ',c:0:2);
end. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.