text stringlengths 14 6.51M |
|---|
program Maximum(input, output);
{reads integers into an array and gives maximum}
const
fieldarea = 5;
type
tIndex = 1..fieldarea;
tnumberarray = array[tIndex] of integer;
var
i : tindex;
field : tnumberarray;
max : integer;
begin
writeln('enter ', fieldarea, ' numbers');
for i := 1 to fieldarea do
read... |
unit TimeServiceStub;
interface
uses
TimeService;
type
TTimeServiceStub = class(TInterfacedObject, ITimeService)
private
_time: TTime;
public
constructor Create(time: TTime);
function GetTime: TTime;
end;
implementation
{ TTestServiceStub }
constructor TTimeServiceStub.... |
unit enums;
interface
uses SDL;
Type
sInt = System.NativeInt;
uInt = System.NativeUInt;
TCreatureOrder = (
CROR_PATROL, CROR_STAND, CROR_WALK,
CROR_ATT_WALK, CROR_ATT_CREA, CROR_ATT_BLDG,
CROR_COL_CRYS, CROR_COL_TIMB, CROR_COL_META,
CROR_RET_CRYS, CROR_RET_TIMB, CR... |
program lab_2_3123;
procedure Output(kolCities: Integer);
var
outFile: Text;
begin
AssignFile(outFile,'output.txt');
Rewrite(outFile);
Write(outFile,kolCities);
Close(outFile);
end;
procedure Input;
var
inArray: array of array of Byte;
N,i,j,kolCities: Integer;
chek: Boolean;
inFile: Te... |
{
*******************************************************************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
unit ee3AddOn.ControlContextMenu.VstPar;
interface
uses
Menus,
ee3AddOn.MidiAutomation.VstPar;
type
TVstParContextMenuHandler = class
private
protected
MidiAutomation:TMidiAutomationController;
VstParIndex : integer;
VstParName : string;
procedure EventHandle_MidiLearn(Sender : TObject);
... |
{ ******************************************************************
This unit fits the integrated Michaelis equation:
p(t) = Km [x0 - W[x0 exp(x0 - k0 t)]]
with x0 = s0 / Km and k0 = Vmax / Km
W is Lambert's function (see ULAMBERT.PAS)
**************************************************************... |
unit NewProjectForms;
{**
* Mini Translator
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Zaher Dirkey <zaher at parmaja dot com>
*}
{$mode objfpc}{$H+}
interface
uses
LCLIntf, Messages, SysUtils, Classes, Graphics, Controls, Forms,
mnLangClasses,
Dialogs, StdCtr... |
unit SHA1;
(*************************************************************************
DESCRIPTION : SHA1 - 160 bit Secure Hash Function
REQUIREMENTS : TP5-7, D1-D6, FPC, VP (386+, undef BASM16 for 286)
EXTERNAL DATA : ---
MEMORY USAGE : ---
DISPLAY MODE : ---
REFERENCES : http://c... |
unit frmItemPlastik;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,
// Auto Create
frmItem, Menus, cxLookAndFeelPainters, dxSkinsCore, dxSkinsDefaultPainters,
cxGraphics, cxStyles, cxCustomData, cxFilter, cxData, cxDataStorage, cxEdit,
DB, cx... |
unit TestNullableTypes;
{
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, Variants, ... |
program Hanoi_iterative;
uses crt;
const size=50;
type t_tower = (gold,silver,cupper);
t_info = record source,target,help:t_tower; n:integer; end;
t_call = (first_call,second_call);
t_state = record call:t_call; x:t_info; end;
t_stack = record index:integer; e_array:array[1..size] of t_state; end;
v... |
{
MIT License
Copyright (c) 2019 Sven Barth
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, p... |
unit udmMyParksService;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs;
type
TMyParksIBService = class(TService)
procedure ServiceAfterInstall(Sender: TService);
procedure ServiceStart(Sender: TService; var Started: B... |
unit eeSmoothedParameter;
interface
type
// NOTE: TSmoothParameter uses a lowpass RC filter / leaky integer to smooth value changes.
TSmoothedParameter = record
CurrentValue : double;
TargetValue : double;
SmoothingCoefficient : double;
procedure Step; inline;
pro... |
unit uSfzParser;
interface
uses
{$IFDEF VER230}
RegularExpressionsCore,
{$ELSE}
PerlRegEx,
{$ENDIF}
Classes;
type
TOpcodeEvent = procedure(Sender:TObject; const Opcode, Value:string) of object;
TSfzToken = (stNil, stUnknown, stRegion, stGroup, stOpcode, stComment);
TSfzParser = c... |
unit eeThreadv2.Thread;
interface
uses
SysUtils, WinApi.Windows, System.Classes,
eeThreadv2.Sync;
type
TProcedureOfObject = procedure of object;
TeeTaskProcedure = reference to procedure(Data:Pointer; DoQuitTask:PBoolean);
TeeThread = class
private
FHandle: THandle platform;
FThre... |
unit HTTPSender;
// (c) Z.Razor | zt.am | 2012 - 2013
// For Delphi 2010 and Higher
interface
uses Windows, WinInet, Classes, Sysutils;
const
__ABOUT__ = '(c) Z.Razor 20.05.2013';
type
THTTPMethod = (hmGet, hmPut, hmPost, hmDelete, hmHead);
type
THTTPCookie = record
Domain: String;
Name: String;
... |
unit uMaquina;
interface
uses
uIMaquina, Classes, uTroco;
type
TMaquina = class(TInterfacedObject, IMaquina)
private
FTrocoControl: Double;
public
function MontarTroco(Troco: Double): TList;
function ExibirTroco(aTroco: TList): string;
constructor Create;
end;
implementation
uses math, S... |
unit ULookUpDataSource;
interface
uses FireDAC.Comp.Client, Data.DB, UDictionary, system.SysUtils,
Generics.Collections;
Type
TLookUpDataSource = Class
private
class var FMBdev: TFDMemtable;
class var FMBCJJG: TFDMemtable;
class var FMBSblx: TFDMemtable;
class var FMBwfxw: TFDMemtable;
clas... |
unit DecoratorMilk;
interface
uses
Decorator, Beverage;
type
TMilkDecorator = class(TDecorator)
public
FBevarage : TBeverage;
function getPrice: double; override;
function getDescription: string; override;
constructor Create(Bevarage : TBeverage);
destructor Destroy; override;
end;
impl... |
unit MGS;
interface
Uses ZlibEx, Windows, SysUtils, Classes, StrUtils;
Type
TDarFile = Packed Record
FileName: String;
FileSize: Integer;
FileData: Pointer;
end;
TDar = Array of TDarFile;
TMGATextString = Packed Record
S: String;
Retry: Boolean;
RetryName: String;
RetryID: Intege... |
unit UnitTEditDeckView;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils,
System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids,
Vcl.StdCtrls, Vcl.Buttons, Vcl.Menus, UnitTDeck,
UnitTMainMenuView, UnitTEditCardView;
type
TEditDeckView = class(TForm)... |
unit FF8_CD;
interface
uses edc, ecc, Windows, SysUtils;
{
CD:
8050 - sector count, little endian
8054 - sector count, big endian
832D, 833E - date of creation / changing YYYYMMDDhhMMssgg$
80AE, B012, B042, B072, B0B0, B0EC:
1 number of years since 1900
1 month, where 1=January, 2=February, etc... |
unit prefs;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, ExtCtrls;
type
TPrefsFrm = class(TForm)
pcPrefs: TPageControl;
bOk: TButton;
bCancel: TButton;
TabSheet1: TTabSheet;
Label1: TLabel;
UpDown1: TUpDown;
e... |
unit frmPurchaseInvoice;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DateUtils,
// Auto Generate
frmUniTransactionEx, Menus, cxLookAndFeelPainters, cxGraphics, dxSkinsCore,
dxSkinsDefaultPainters, dxSkinsdxDockControlPainter, cxStyles, cxCust... |
unit uvalidator;
{$mode objfpc}
interface
uses
Classes, SysUtils, uHelperCalculator;
type
{ Validator }
TValidator = class(TInterfacedObject, IValidation)
private
function AnyNegativeNumbers(numbers: TIntegerList): Boolean;
public
function ValidateInput(numbers: TIntegerList): TIntegerList;
end;... |
{
* 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$
*
* Components that pro... |
unit LucidityParameterScaling;
interface
uses
Math;
type
// TParScaler is a class to centralise converting
// from 0..1 VST parameter range to the target parameter range.
TParScaler = class
private
public
class function ADSR_AttackTimeVstParToMS(const Value:single):single;
class fun... |
unit ReaderFactory;
interface
uses
Classes,ReaderInterface, CsvReader, XmlReader, JsonReader, Dados;
type
TTipoReader = (tpCsvReader, tpXmlReader, tpJsonReader);
TReaderFactory = class
private
FDados: TDmDados;
public
function CriarReader(const ATipoReader: TTipoReader): TBBReader;
constructor... |
unit Iocp.SimpleExt;
interface
uses
Winapi.Windows, System.Classes, System.AnsiStrings, Iocp.Winsock2, Iocp.TcpSocket, Iocp.Buffer;
type
TIocpLineSocketConnection = class(TIocpSocketConnection)
private
FLineText: TIocpStringStream;
public
constructor Create(AOwner: TObject); override;
destructor ... |
unit VamVst2.MidiEventInputBuffer;
interface
uses
VamVst2.DAEffectX,
VamVst2.MidiEvent,
VamVst2.VstEvent;
type
/// TMidiEventBuffer is a minimal event buffer class. It's been built
/// with the goal of using it as an input buffer. As such, it expects
/// the midi input to be well formed. No checks hav... |
{************************************************}
{ Simple SCR Player. }
{ Copyright (c) 1995, Carl Eric Codere }
{ Montreal, Canada - Febuary 1996. }
{ VERSION 1.50 }
{************************************************}
{ See license.... |
unit eeVstEditorAdapter;
interface
{$INCLUDE Defines.inc}
uses
{$IFDEF VER230}
Winapi.Windows,
{$ELSE}
Windows,
{$ENDIF}
ExtCtrls,
eePluginGui, eePlugin, eePluginGuiMeta,
VamVst2.DVstUtils,
VamVst2.DAEffect,
VamVst2.DAEffectX,
VamVst2.DAudioEffect,
VamVst2.DAudioEffectX,
... |
unit FarScape.PureInterfacedObject;
interface
type
// A non-reference-counted IInterface implementation.
TPureInterfacedObject = class(TObject, IInterface)
protected
function QueryInterface(const IID: TGUID; out Obj): HResult; stdcall;
function _AddRef: Integer; stdcall;
function _Release: Integer; ... |
{
* Any copyright in this file is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
}
unit TestPJIStreams;
{$UNDEF REQUIRES_TYPES_UNIT}
{$IFDEF CONDITIONALEXPRESSIONS}
{$IF CompilerVersion >= 24.0} // Delphi XE3 and later
{$LEGACYIFEND ON} // NOTE: this must come before all ... |
unit UnitMain;
interface
uses
Windows
, Messages
, SysUtils
, Variants
, Classes
, Graphics
, Controls
, Forms
, Dialogs
//, MMSystem
, ExtCtrls
, UnitSoundThread
, StdCtrls;
const
MAX_MINER = 3;
MAX_ITEM = 50;
MAX_WEAPON_EQUIPPED = 2;
MAP_ITEM_NUM = 3;
AREA_VIEW = 100;
TIME_QUA... |
//ejemplo de merge con 10 listas
//las listas han de estar ordenadas por el mismo criterio
procedure ejemploMerge;
const
valorAlto = 'zzz';
type
listaNombres = ^nodo;
nodo = record
dato : String;
sig : listaNombres;
end;
arrListas = array[1..10] of listaNombres;
//. . . . . . . . .
procedure iniciarLis... |
unit soFilter.BlueFilter;
interface
uses
Lucidity.Dsp,
eeDsp,
eeFastCode,
FilterCore.SimperSVF;
type
TBlueFilter = class
private
fSampleRate: single;
fFreq: single;
fInputGain: single;
fMix: single;
procedure SetMix(const Value: single);
protected
MixWet, MixDry : single;
Ga... |
unit PrintService;
interface
uses BasicService, ImprimirVO, System.Generics.Collections, MovimentoVO,
Classes, SysUtils, ImpressoraVO, Biblioteca, EmpresaVO, RecebimentoContaVO,
SangriaVO, SuprimentoVO, VendaVO,VendaItemVO, PrevendaImprimirVO,
PrevendaItemVO, ViewPrevendaVO, ViewPrevendaItemVO, System.StrUtils,... |
unit uParser;
{$mode objfpc}
interface
uses
Classes, SysUtils, uHelperCalculator;
type
{ TParser }
TParser = class(TInterfacedObject, IParserNumbers)
private
FDelimiterInitToken: string;
FDefaultDelimiter: char;
procedure SetValidDelimiter(var Numbers: string);
function CheckAddendsValues(co... |
unit EditPeca;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, Mask, ToolEdit, CurrEdit, StdCtrls, ExtCtrls;
type
TUpdateComponenteEvent=procedure (Sender:TObject;afkPeca,afkFichaTecnica,afkPecaMontagem,afkFichaTecnicaMontagem:Integer;aDescPe... |
unit uFont;
interface
uses Windows, OpenGL;
type
// tbv. regel indeling
TLineVAlignment = (laTop, laBottom {, laLeft, laRight});
const
// de verzameling characters in het OpenGL font
FirstCharacter = 32;
LastCharacter = 126;
N_Characters = LastCharacter - FirstCharacter + 1;
// tbv. regel indeling
... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, ufrmDbConnect,
uThiDB, Uni, RzPanel, RzButton, DB, CUni;
type
TfMain = class(TForm)
pnlButton: TPanel;
btnGetTa... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.2-19, FILE=ERR69T, ... |
Unit TCP_NFSWizard;
Interface
Uses
Classes, Forms, Graphics, StdCtrls, TabCtrls, Buttons, Dialogs, ExtCtrls,
EditList,PMWIN,menus,Messages;
Type
TNFSWizard = Class (TForm)
GroupBox1: TGroupBox;
Title: TLabel;
NoteBook1: TNoteBook;
BackButton: TButton;
NextButton: TButton;
Label0: TLabel... |
unit CadInscr;
{*************************************************************************}
{* *}
{* Author: Alcindo Schleder *}
{* Copyright: © 2003 by Alcindo Schleder. All rights reserved. ... |
{==============================================================================|
| Project : Delphree - Synapse | 006.006.001 |
|==============================================================================|
| Content: Library base ... |
{
Font info WDX plugin.
Copyright (c) 2015-2021 Daniel Plakhotich
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 pur... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ PRETEST 6.6.5.2-8, FILE=ERR22P... |
{******************************************************************************
Class to parse SQL statements from a string into a SQLFactory
@author Jeff Chaney
@author Guardian Industries, Inc., Auburn Hills, MI
@author Last Changed By: $Author: jchaney $ $Date: 2010/01/29 19:10:56 $
@group --TBD
@see SQL... |
unit BPModel;
interface
type
TBPModel = class
private
FMDesc: string;
FMGroup: string;
FMNo: string;
FMMac: string;
FMInterval: string;
procedure SetMDesc(const Value: string);
procedure SetMGroup(const Value: string);
procedure SetMMac(const Value: string);
procedure SetMNo(co... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, XPMan;
type
TForm1 = class(TForm)
OpenDialog1: TOpenDialog;
Panel1: TPanel;
ButHexBin: TButton;
ButBinHex: TButton;
ButExit: TButton;
procedu... |
unit ActiveQueueEntry;
interface
uses
System.Generics.Collections, JsonableInterface, System.JSON, ObjectsMappers;
type
/// <summary>An ADT that represents a single entry for the Active Queue server.</summary>
[MapperJSONNaming(JSONNameLowerCase)]
TActiveQueueEntry = class(TInterfacedObject, Jsonable)
str... |
unit B2.Lfo.Extra;
interface
function FrequencyToRate(Frequency, SampleRate:double):double; inline;
function SyncToRate(SyncFactor, BPM, SampleRate: double): double; inline;
implementation
uses
eeDsp;
function FrequencyToRate(Frequency, SampleRate:double):double;
begin
//NOTE: FrequencyToRate()... |
constructor FbException.create(status: Status);
begin
self.status := status.clone();
end;
destructor FbException.destroy;
begin
status.dispose();
end;
function FbException.getStatus: Status;
begin
Result := status;
end;
class procedure FbException.checkException(status: Status);
begin
if ((status.getState() and ... |
// Data class that represents Client table.
unit Client;
interface
uses
DBImportableData;
type TClient = class(TDBImportableData)
private
FClient_id: Int64;
FLast_name: string;
FFirst_name: string;
FMiddle_name: string;
FEmail_address: string;
FWork_place: string;
FSponsored_flg: Intege... |
unit djfxMoogLP;
interface
uses
eeGlobals, VamLib.MoreTypes, djfxBase, eeFilters;
type
TDJFXMoogLP = class(TDJFXCustomFX)
private
protected
MoogLp:TMoogLp;
procedure SetParValue(Index: integer; const Value: single); override;
public
constructor Create(aGlobals:TGlobals); override;... |
(*------------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.... |
{*
* Actividad1
* Este programa muestra los dias de semana por orden e ordinal, y tambien muestra
* los dias del fin de semana por orden e ordinal
* Autor: Jose Pena
* Última modificación: 22 / 01 / 2013
*}
program actividad1;
type dias_semana = (Lunes,Martes,Miercoles,
Jueves,Viernes,Sabado,D... |
unit unAtivacao;
interface
uses
System.IniFiles;
type
TCrypto = class
private
Const
C1 = 33598;
C2 = 24219;
Chave = 16854;
protected
{ protected declarations }
public
{ public declarations }
function Encode(dados: String): String;
function Decode(dados: String): String;
... |
Unit ESoft.Launcher.UI.ParamBrowser;
{ ---------------------------------------------------------- }
{ Developed by Muhammad Ajmal p }
{ ajumalp@gmail.com }
{ ---------------------------------------------------------- }
Interface
Uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.V... |
unit unitClient;
interface
uses classes,sysutils,windows;
type
TClientStatus=(cStatusOnLine,cStatusOffLine,cStatusUnknow);
TClient=class(TComponent)
private
m_ClientStatus : TClientStatus;
m_tsRsvData : TStrings;
m_CSData : TRTLCriticalSection;
procedure setStatus(f_ClientStatus : TClientStatu... |
unit PCUsersDeserializer;
interface
uses
Windows, Dialogs, SysUtils, Classes, UserClass;
type
PCUserDeserializer = class(TComponent)
private
{ Private declarations }
OpenFileDialog : TOpenDialog;
OpenFileName : string;
procedure SetFileName(NewFileName:string);
protected
... |
PROGRAM assignment1_2;
PROCEDURE printAry(VAR inputAry : ARRAY OF integer; size : integer);
{Passes in an array by refrence and prints out each value in order}
VAR
i : integer;
BEGIN
FOR i:=0 TO size-1 DO
BEGIN
write(inputAry[i], ' ');
END;
END;
PROCEDUR... |
unit uCommand;
interface
uses
WinApi.Windows, System.SysUtils, System.Classes, ManSoy.Encode,
uGlobal, uJsonClass;
function Cmd_Client_Send(AClient: Pointer; ACmd: string): Boolean;
function Cmd_Server_Send(AServer: Pointer; AConnId: DWORD; ACmd: string): Boolean;
//--发货机连接控制台
function Cmd_Conn(AClient:Pointer;... |
{********************************************************}
{ }
{ Zeos Database Objects }
{ Alternative TList implementation }
{ }
{ Copyright (c... |
{
Remove a script from the selected forms.
Limit of 512 scripts per form per run, but I seriously doubt you have
513 of the same script attached to a single form, so that shouldn't be
an issue.
Created by DavidJCobb.
}
Unit CobbSingleRemoveScript;
Uses 'Skyrim - Papyrus Resource Libra... |
unit AllObjectsCbxFilterFrame;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, Registrator;
type
TfrmAllObjectsFilter = class(TFrame)
GroupBox2: TGroupBox;
edtFilter: TEdit;
cbxAllObjects: TComboBox;
btnEditor: TBitBtn;
... |
unit GUIAnnotation;
interface
uses
GUIAnnotationIntf, InfraCommon, InfraCommonIntf, InfraValueTypeIntf, Controls,
ExtCtrls, LayoutManager, InfraValueType, List_Screen, Classes, SysUtils,
List_ScreenItem, List_CustomProperty;
type
TScreenItem = class(TElement, IScreenItem)
private
FCaption... |
// Copyright 2018 The Casbin Authors. All Rights Reserved.
//
// 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 a... |
{*******************************************************************************
作者: dmzn@163.com 2012-02-03
描述: 业务常量定义
备注:
*.所有In/Out数据,最好带有TBWDataBase基数据,且位于第一个元素.
*******************************************************************************}
unit UBusinessConst;
interface
uses
UBusinessPac... |
program inheritance;
{$MODE OBJFPC} { create class directive }
{$M+} { use constructors directive }
type
Books = Class
protected
title: String;
price: real;
public
constructor Create(t: String; p: real);
procedure setTitle(t: String);
function getTitle(): String;
procedure setPrice(p: real);
f... |
unit ray_SpriteEngine;
{$mode objfpc}{$H+}
interface
uses
ray_header;
type
RayCSprite2D = class;
RayCSEngine2D = class;
{ RayCSEngine2D }
RayCSEngine2D = class
protected
FCount : Integer;
FList : array of rayCSprite2D;
procedure SortByLayer( iLo, iHi : Integer );
procedure SortByID(... |
unit NummiTime;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
EMyTimeException = class(Exception);
TNummiTime = class(TComponent)
private
{ Private declarations }
fTime: TDateTime;
fTimeValue: Extended;
fNummiTime: String;
fYe... |
program checkCase;
var
a, b, c, d, f : integer;
begin
a := 1;
b := 2;
c := 3;
d := 4;
f := 5;
(* Case statement example*)
case (a) of
1 = writeln(a);
2 = writeln(b);
3 = writeln(c);
4 = writeln(d);
5 = writeln(f);
end;
end. |
unit CBSKrimsky;
interface
uses Classes, Sysutils, DB, DBCtrls, NativeXML;
type
TBoxPosition = (UL, UC, UR, CL, CC, CR, LL, LC, LR);
TCBSGridType = (CGTsc, CGTscprime, CGTcc, CGTccprime);
TKrimskyCellData = class;
TCBSCTGridData = class(TComponent)
private
FDataLink: TFieldDataLink;
protected
... |
unit Defence;
{
}
interface
uses Windows, Messages, SysUtils, Classes;
function MyFileCRC32(FileName: string; var CRC32: LongInt): Boolean; { Return True if ok }
var
TrueCRC32: longInt;
FCRC32: longInt;
implementation
uses CRC;
const
position = $58;
function MyFileCRC32(FileName: string; var CRC32: Lo... |
(************************************* Ext2D Engine *************************************)
(* Модуль : E2DSelect.pas *)
(* Автор : Есин Владимир *)
(* Создан : 21.10.06 ... |
unit sSplitter;
{$I sDefs.inc}
{.$DEFINE LOGGED}
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs{$IFNDEF DELPHI5}, Types{$ENDIF},
sCommonData, Extctrls{$IFDEF LOGGED}, sDebugMsgs{$ENDIF};
type
TsSplitter = class(TSplitter)
{$IFNDEF NOTFORHELP}
private
FCommonData:... |
unit RTTIForMiscTypes;
interface
procedure GetRTTIforMiscTypes;
type
TDemoRecord = record
private
PrivateField: Extended;
public
SomeString: string;
SomeInteger: integer;
procedure DoSomething;
end;
type
TThreeStringArray = array[0..2] of string;
implementation
uses
RTTI
, TypInf... |
unit fMain;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Rtti, System.Classes,
System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.Media,
FMX.Layouts, FMX.ListBox;
type
TForm1 = class(TForm)
MainLayout: TLayout;
ControlPlayLayout: TLayout;
TextLayout: TLa... |
{$mode objfpc}{$h+}
unit RGB24writer;
interface
uses FPImage, classes, sysutils, BMPComn;
type
PFastBitmapPixelComponents24Bit = ^TFastBitmapPixelComponents24Bit;
TFastBitmapPixelComponents24Bit = packed record
Blue: 0..255; // 8 bits
Green: 0..255; // 8 bits
Red: 0..255; // 8 bits
end;
TFPWrite... |
unit HbProcs;
interface
uses
MyDlg, HbTypes, MyStr, HbMisc,
DB, Registry,
SysUtils, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, ExtCtrls;
function FecharTodos: Boolean;
procedure FecharTodosOsForms;
function HbAcharFormName(Nome: String): TForm; overload;
function HbAcharFormNa... |
// Copyright 2018 The Casbin Authors. All Rights Reserved.
//
// 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 a... |
unit HelpContexts;
{
Copyright (c) 2017+, 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 must ret... |
unit EditVideoController;
interface
uses
Generics.Collections,
Video, MediaFile, Artist, VideoFormat,
Aurelius.Engine.ObjectManager;
type
TEditVideoController = class
private
FManager: TObjectManager;
FVideo: TVideo;
public
constructor Create;
destructor Destroy; overrid... |
unit ThorLabsUnit;
// ====================
// Thorlabs DCx Cameras
// ====================
// 5.09.14 Tested with DCC1240M (drops frames when operating above 17 MHz pixel clock)
// 8.10.14 is_DeviceFeature() now only called to set shutter mode for CMOS cameras
// to avoid call unsupported error with DCU223 and ... |
unit uQuery;
interface
uses SysUtils, uGlobal;
function QueryFamily(nInOutID: integer): String;
function QueryIntake(oInOut: TID): string;
function QuerySurvey1(oInOut: TID): string;
function QuerySurvey2(oInOut: TID): string;
function QueryCounseling(oInOut: TID): string;
function QueryTraining(oInOut: TID): string;... |
unit xe_JON01SPThread;
interface
uses
Windows, System.Classes, System.SysUtils, System.Math, ActiveX, Vcl.Dialogs, xe_gnl3, SmartSRXLib_TLB;
type
TJON01SPThread = class(TThread)
private
FiTag : Integer;
FiIndex : Integer;
gViaArrayLon, gViaArrayLat : Array [0..6] of integer;
giTotalTime: Integer;... |
{$include kode.inc}
unit midi_syncdelay;
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_const,
kode_types,
kode_plugin,
kode_parameter;
const
K_MAXEVENTS = 1024;
type
KMidiEvent = obje... |
{$REGION 'documentation'}
{
Copyright (c) 2018, Vencejo Software
Distributed under the terms of the Modified BSD License
The full license is distributed with this software
}
{
Greyscale of RGB color
@created(21/03/2018)
@author Vencejo Software <www.vencejosoft.com>
}
{$ENDREGION}
unit RGBGreyscale;
interf... |
{$MODE OBJFPC} { -*- delphi -*- }
{$INCLUDE settings.inc}
unit unixutils;
interface
var
Aborted: Boolean = False;
procedure HookSignalHandlers();
implementation
uses
sysutils, baseunix, exceptions;
procedure SigIntHandler(Signal: Longint; Info: PSigInfo; Context: PSigContext); cdecl;
begin
{$IFDEF DEBUG}... |
unit NTProcess;
interface
uses
Windows, SysUtils, Classes, psapi;
type
TWowModule = class
end;
TWoWTask = class
private
fThreadID : DWORD;
fHMod16 : WORD;
fHTask16 : WORD;
fModName : string;
fFileName : string;
public
property ThreadID : DWORD read fThreadID;
property HMod16... |
unit CidXeLib;
interface
uses
Windows, SysUtils, Registry, inifiles, Variants, comobj, ADODB, StdCtrls,
Forms, Classes, IdTCPClient, IdSocketHandle, IdTCPServer, xe_func;
{--------------------------------------------------------------------------------
CID XE DATA HEADER
-----------------------... |
unit Encrypt;
interface
uses Windows, Classes, SysUtils;
//计算CRC32 ABuffer:指向需要计算得缓冲区,ALen:缓冲区长度
function CalcCRC32(ABuffer: PChar; ALen: Integer): DWORD; overload;
function CalcCRC32(AStream: TStream; ALen: Integer): DWORD; overload;
function CalcCRC32(AFileName: string; ALen: Integer = 0): DWORD; overload;
//计算CR... |
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: Arno Garrels
Creation: June 22, 2010
Description: This source is part of WebAppServer demo application.
The purpose is to make a HTTP/HTTPS HEAD request to some
IPv4/IPv6 server and return ... |
(* Author: k-stz *)
program Loops;
{ Shows off the FOR, WHILE and REPEAT loop syntax }
var
i : integer;
procedure fact (number : integer );
{ careful, overflows quickly!
maxint is only 32767! }
var
i, accu : integer;
begin
accu := 1; { initialisation }
for i := 1 to number do
begin
... |
unit xe_msg;
interface
const
Loop = 3;
// BC_REFER = '조회';
// BC_ADD = '추가';
// BC_EDIT = '수정';
// BC_SAVE = '저장';
// BC_DEL = '삭제';
// MC_INFOMATION = '정보';
// MC_CAUTION = '경고';
// MC_CLOSE = '종료';
CDMSI = 'CDMSI';
CDMSE = 'CDMSE';
CDMSQ = 'CDMSQ';
CDMSW = 'CDMSW';
CM001 = '';
CM00... |
{*******************************************************************************
Title: T2Ti ERP 3.0
Description: Model relacionado à tabela [CONTAS_RECEBER]
The MIT License... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.