text stringlengths 14 6.51M |
|---|
unit u_asm;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, u_common, u_consts, u_writers;
type
TCodeSection = class(TObject)
public
Lines: TStringList;
Constants: TConstantManager;
Outp: TMemoryStream;
Vars: TStringList;
constructor Create(sl: TStringList; vars_lst: TStringList; cns... |
unit Mmx;
{* MMX support unit. By Vladimir Kladov, 2003. }
interface
{$I KOLDEF.INC}
uses
Windows, Kol;
type
TCpuId = ( cpuNew486, cpuMMX, cpuMMX_Plus, cpu3DNow, cpu3DNow_Plus,
cpuSSE, cpuSSE2 );
{* Enumeration type to represent CPU type.
cpuOld486: Old 486 Processor and earlier
cpuNew4... |
program abc;
uses crt,dos;
const
p = 1;
m = 40;
n = 40;
type
arr = array[1..p, 1..m, 1..n] of integer; {Zadannya korystuvats'koho typu "masyv"}
vector=array [1..n*m] of integer;
proc=procedure(var A:arr);
vect=procedure(var C:vector);
TTime=record
Hours,Min,Sec,HSec:word;
end;
var A:arr... |
(*
Category: SWAG Title: DIRECTORY HANDLING ROUTINES
Original name: 0033.PAS
Description: Recursive Directory
Author: DAVE JARVIS
Date: 08-24-94 13:31
*)
{
On 05-25-94 ROBERT HARRISON wrote to ALL...
RH> I'm trying to obtain the source for searching for files in all
RH> directories and drives. Anyone... |
unit DPM.IDE.ProjectController;
interface
uses
System.Classes,
VSoft.CancellationToken,
DPM.IDE.Logger,
DPM.Core.Package.Interfaces,
DPM.IDE.ProjectTreeManager,
DPM.IDE.EditorViewManager,
DPM.Core.Package.Installer.Interfaces;
type
TProjectMode = (pmNone, pmSingle, pmGroup);
IDPMIDEProjectControll... |
unit Processor;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
TProcessor = class
private
FArchitecture: Integer;
FModel: String;
public
constructor Create();
property Architecture: Integer read FArchitecture;
property Model: String read FModel;
end;
implemen... |
var
str1 : string;
str2 : string;
begin
str1 := 'Hello';
str2 := 'world';
write(str1, ''#20'', str2, ''#33'', ''#10'');
end. |
unit IRCUtils;
{
-ooooooooooooooooooooooooooooooooooooooooooooooooooooooooo-
-o Título: IRCUtils o-
-o Descrição: Biblioteca para interpretação do protocolo o-
-o IRC o-
-o Autor: Waack3(Davi Ramos) o-
-o ... |
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ ... |
unit Common.Barcode.IBarcode;
interface
uses
FMX.Objects;
type
IBarcode = interface
['{866573A2-D281-48D3-9799-B7D218E6C6AC}']
function GetRawData: string;
procedure SetRawData(const Value: string);
function GetAddonData: string;
procedure SetAddonData(const Value: string);
function GetSVG: s... |
unit FileData;
interface
uses uColorTheme, SysUtils, Classes, uUtils, uArrayList, uScene, uPoint, uLine;
{
Used to store optional settings
}
type TSettings = class(TObject)
theme: ColorTheme;
builtinThemes, userThemes: ArrayList;
dropSettings, showBanner: boolean;
exitAction: String[255];
c... |
namespace com.example.android.lunarlander;
{*
* Copyright (C) 2007 The Android Open Source Project
*
* 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... |
unit fltReeUrzbUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxTextEdit, cxMaskEdit, cxDropDownEdit, cxCalendar, cxControls,
cxContainer, cxEdit, cxLabel, cxLookAndFeelPainters, ActnList, StdCtrls,
cxButtons, cxCheckBox, cxCurrencyEdit, cxGroupBox;
t... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TMain = class(TForm)
ParseBtn: TButton;
LogMemo: TMemo;
procedure ParseBtnClick(Sender: TObject);
private
{ Priv... |
unit Invoice.Model.Entity.User;
interface
uses System.SysUtils, Data.DB, Invoice.Model.Interfaces, Invoice.Controller.Interfaces, Invoice.Controller.Query.Factory;
type
TModelEntityUser = class(TInterfacedObject, iEntity)
private
FQuery: iQuery;
//
procedure PreparateFields;
... |
unit Interfaces.Controller.GUI;
interface
uses System.Generics.Collections, Classes, Sysutils, System.Types, FMX.Layouts;
type
TBird = class
private
FX: Double;
FY: Double;
FWidth: Integer;
FHeigth: Integer;
FAngle: Double;
FFlap: Boolean;
FLayout: TLayout;
public
funct... |
{
@abstract Implements @link(TNtDevExpressChecker) checker extension class that checks DevExpress controls.
To enable checking just add this unit into your project or add unit into any uses block.
@longCode(#
implementation
uses
NtDevExpressChecker;
#)
See @italic(Samples\Delphi\VCL\DevExpress\Checker) sa... |
unit feli_response;
{$mode objfpc}
interface
uses fpjson;
type
FeliResponse = class(TObject)
public
authenticated: boolean;
error, msg: ansiString;
resCode: integer;
function toTJsonObject(): TJsonObject; virtual;
function toJson(): ansiString; ... |
unit Objekt.SepaBSPos;
interface
uses
SysUtils, Classes, Objekt.SepaVZweck;
type
TSepaBSPos = class
private
fBetrag: Currency;
fIBAN: string;
fEmpfaenger: string;
fBIC: string;
fVZweck: TSepaVZweck;
fWaehrung: string;
fZahldatum: TDateTime;
fEndToEnd: string;
fSU_ID: Integer... |
// файл board.pas
unit board;
interface
uses Forms, Graphics, Types;
Type Tletter = ( _a, _b, _c, _d, _e, _f, _g, _h );
Type Tposition = record
x : Tletter; // координаты шахматных
y : 1..8; // фигур на доске;
end;
type Tfigcolor = ... |
unit RegistryCleaner_Msg;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, typinfo, PNGImage, StdCtrls, acPNG, Grids, AdvObj,
BaseGrid, AdvGrid, AdvGlowButton, sLabel, ExtCtrls, AdvGroupBox, IniFiles, Dialogs, ShellAPI, ImgList, acAlphaImageList, Registry,
AdvSpl... |
unit FormDataSet5b;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, DBGrids, DB, DBClient, DSConnect, ExtCtrls, DBCtrls, StdCtrls,
Mask, MasterForm, DBXCommon, DSClientProxy, DBXDBReaders, DBXJSON;
type
TFormDM5b = class(TFormMaster)
DSProvDM5b: T... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, SyntaxHighlighter, VirtualScrollingWinControl,
SyntaxHighlightMemo, Math, Pascal, COW_RunTime, StrUtils, ComCtrls,
TextEditorFooter;
type
TForm1 = class(TForm)
SyntaxHighlightMemo1... |
(***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* 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/
*
* Software... |
unit UnitDirectXSlideShowCreator;
interface
uses
Winapi.Windows,
System.Classes,
System.SysUtils,
System.SyncObjs,
System.Math,
Vcl.Graphics,
Vcl.Forms,
Dmitry.Graphics.Utils,
GraphicCrypt,
uGraphicUtils,
uMemory,
uDXUtils,
uConstants,
uDBThread,
uAssociations,
... |
unit frm_SearchPhrase;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, EasyTaskPanelForm, StdCtrls, MPCommonObjects, EasyListview, ExtCtrls,
ComCtrls, ShellCtrls, Mask, JvExMask, JvToolEdit, Buttons;
type
TfrmSearchPhrase = class(TEasyTaskPanelForm)
reTe... |
unit Nullpobug.Marubatsu;
interface
uses
System.SysUtils
;
type
EStateError = class(Exception);
EAleadyFilled = class(Exception);
EInvalidDiagonaltype = class(Exception);
EInvalidPlayerType = class(Exception);
// ゲームのプレイヤータイプ
TGamePlayerType = (gptPlayer, gptCPU);
// ゲームの勝者
TGameWinner = (gwNone... |
unit uFrmEstimatedNew;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, PaideTodosGeral, siComp, siLangRT, StdCtrls, Buttons, ExtCtrls,
DateBox, Mask, PowerADOQuery, ADODB, SuperComboADO, DB;
type
TFrmEstimatedNew = class(TFrmParentAll)
btOK: TButton;
... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [ECF_IMPRESSORA]
The MIT License ... |
unit UnitSetWGAttr;
// 欢乐幻灵·创招设置
interface
uses
Windows, Messages, SysUtils, Classes, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Math, frmTemplate;
type
TFormSetWGAttr = class(TfTemplate)
GroupBox1: TGroupBox;
Label7: TLabel;
EditWGName: TEdit;
Label10: TLabel;
Label11: TLabel;
Label1... |
namespace proholz.xsdparser;
interface
type
XsdAttributeGroupVisitor = public class(XsdAnnotatedElementsVisitor)
private
// *
// * The {@link XsdAttributeGroup} instance which owns this {@link XsdAttributeGroupVisitor} instance. This way this
// * visitor instance can perform changes in the {@link X... |
{Ingresar una matriz de MxN de enteros, escribir:
a. Los elementos junto con la fila cuya suma de componentes sea la mayor.
b. Los elementos junto con la columna cuya suma de componentes sea la menor.
c- El minimo elemento de la matriz.}
Program eje2;
Type
TM = array[1..4, 1..4] of integer;
TV = array[1..4] of intege... |
unit frmSelectPartition;
// Description:
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.SDean12.org/
//
// -----------------------------------------------------------------------------
//
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
... |
unit DreamChatStrings;
interface
uses Classes;
type
TDreamChatStringIDs =
(
//[Form]
I_COMMONCHAT, //'Общий'
I_PRIVATE, //'Приват'
I_LINE, //'Линия'
I_MESSAGESBOARD, //Доска объявлений
I_MESSAGESBOARDUPDATE, //Обновлена доска объявлений
I_USERCONNECTED, //... |
program RockPaperScissors;
{$R *.res}
uses
crt;
var
temp: string;
selection: char;
procedure backgroundColour(var colour: string); begin
if colour = 'Blue' then
textBackground(Blue);
clrScr;
end;
procedure waitKey; begin
repeat
until keyPressed;
end;
procedure ascii(var asciiType: string); beg... |
(*
* FPG EDIT : Edit FPG file from DIV2, FENIX and CDIV
*
*
* 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 v... |
//
// Generated by JavaToPas v1.5 20180804 - 082433
////////////////////////////////////////////////////////////////////////////////
unit android.net.wifi.hotspot2.PasspointConfiguration;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
Androidapi.JNI.os,
android.net.wifi.hotspot2.pps.HomeSp,
... |
{******************************************************************************}
{ }
{ Delphi PnHttpSysServer }
{ ... |
unit uMain;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.Edit, FMX.StdCtrls, FMX.Platform,
FMX.Notification, FMX.ListBox, FMX.Layouts;
type
TSettingBadgeNumberForm = class(TForm)
btnSetBadgeN... |
unit uRtHeadInfoReader;
interface
uses
uBytesStream,Classes,SysUtils,uLKJRuntimeFile,Math, Windows;
type
TOrgHeadReader = class
public
constructor Create();
destructor Destroy; override;
public
procedure read(orgFileName: string;var HeadInfo: RLKJRTFileHeadInfo);
private
m_BytesStream : TByte... |
unit UnitEditorFullScreenForm;
interface
uses
Windows,
Messages,
SysUtils,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
ExtCtrls,
Themes,
Vcl.PlatformDefaultStyleActnCtrls,
Vcl.ActnPopup,
Menus,
Dmitry.Utils.System,
uConstants,
uMemory,
uDBForm,
uBitmapUti... |
unit UnitFormCDExport;
interface
uses
Winapi.Windows,
Winapi.Messages,
Winapi.ShellApi,
System.SysUtils,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.ExtCtrls,
Vcl.ComCtrls,
Vcl.StdCtrls,
Vcl.Menus,
Vcl.ImgList,
Vcl.Buttons,
Vcl.PlatformDefaultStyleActnCt... |
unit UClassDef;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, XSBuiltIns, Hashes;
//base node class (abstract class) for default values
type
TNodeData = class
Caption:string;
ID:integer;
end;
rNodeData = record
NodeData: TNodeData;
end;
type
TBrokerNodeData = class(TNodeData)... |
unit uProduto;
interface
type
TProduto = class
strict private
FCODIGO: String;
FCONTROLE: String;
FPRECO: double;
FDESCRICAO: string;
procedure SetCodigo(val: String);
function GetCodigo: String;
procedure SetControle(val: String);
function GetControle: String;
procedure Se... |
Unit Utils;
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
Interface
Uses
Vcl.Graphics;
Procedure ErrorMessage(AMsg:WideString);
Procedure WarningMessage(AMsg:WideString);
Procedure InformationMessage(AMsg:WideString);
Procedure WinErrorMessage(AMsg:WideString; ACode:Cardinal);
Function BufferToHex(ABuffer:Pointer; ASize... |
{ The MIT License (MIT)
Copyright (c) 2014 FMXExpress.com
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, cop... |
unit uPrint;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, StdCtrls, cxControls, cxContainer, cxEdit, cxTextEdit,
cxMaskEdit, cxDropDownEdit, cxSpinEdit, cxCheckBox, ActnList,
cxLookAndFeelPainters, cxButtons, DateUtils, uMainPerem;
type
TPrintF... |
unit Objekt.DHLDeletionState;
interface
uses
SysUtils, Classes, geschaeftskundenversand_api_2, Objekt.DHLStatusInformation;
type
TDHLDeletionState = class
private
fStatus: TDHLStatusinformation;
fShipmentNumber: string;
public
constructor Create;
destructor Destroy; override;
property Sta... |
unit OthelloCounters;
interface
uses FMX.Objects3D, System.Classes, FMX.MaterialSources, FMX.Ani, FMX.Types, FMX.Types3D, FMX.Dialogs;
type
TOthelloBlackMaterial = class(TLightMaterialSource)
public
constructor Create(aOwner : TComponent); reintroduce;
end;
TOthelloWhiteMaterial = class(TLig... |
{ *****************************************************************}
{ Added Support for RoundRect (GraphicsPath + TGPGraphics) }
{ }
{ date : 05-11-2006 }
{ ... |
unit o_baselistobj;
interface
uses
SysUtils, Classes, Contnrs;
type
TBaseListObj = class
private
function GetCount: Integer;
protected
_List: TObjectList;
public
constructor Create; virtual;
destructor Destroy; override;
property Count: Integer read GetCount;
procedure Delete(aIndex... |
unit CustomAlphabetTest;
interface
uses
DUnitX.TestFramework,
uEnums,
uIntXLibTypes,
uIntX;
type
[TestFixture]
TCustomAlphabetTest = class(TObject)
public
procedure AlphabetNull();
[Test]
procedure CallAlphabetNull();
procedure AlphabetShort();
[Test]
procedure CallAlphabetSh... |
(*
Category: SWAG Title: MENU MANAGEMENT ROUTINES
Original name: 0010.PAS
Description: Another Pickable Litebar Menu
Author: KIM FORWOOD
Date: 05-31-96 09:16
*)
{============================================================================}
PROGRAM LightBar;
uses Crt;
const
UPARROW = #72;
DNARROW ... |
program SDLTypeChecker;
uses SDL, SysUtils;
procedure outputEnum_SDL_bool();
var
_SDL_bool : SDL_bool;
begin
WriteLn('Base Enum: SDL_bool Size: ', sizeof(SDL_bool));
for _SDL_bool := Low(SDL_bool) to High(SDL_bool) do
begin
try
WriteLn(_SDL_bool, ' Value: ', LongInt(... |
{******************************************************************************}
{ }
{ Internet Protocol Helper API interface Unit for Object Pascal }
{ ... |
unit tal_uguilauncher;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, tal_ilauncher, Forms;
type
{ TGUILauncher }
TGUILauncher = class(TInterfacedObject, ILauncher)
private
fMainForm: IMainForm;
protected
// ILauncher
procedure Launch;
protected
procedure BeforeLaunch; virtual;
... |
procedure PrintMemo;
// Imprime um campo memo
// Requer a unit Printers declarada na clausula uses da unit
var
i,col,lin:integer;
begin
col:=0; // posição da coluna
lin:=0; // posição da linha
printer.begindoc;
for i := 0 to memo1.Lines.Count-1 do
begin
printer.Canvas.TextOut(col,lin, memo1.Lines[i]);
... |
unit AutomaticReports;
interface
uses uCommonForm, Forms,SysUtils,uOilQuery,Ora, uOilStoredProc;
procedure MakeAutomaticBasicElectronForm(ADateFrom, ADateTo: TDateTime);
procedure MakeAutomaticReports(p_FileName: string);
implementation
uses
RashReport,UReportClass,uTalonPriceReport,Main,TestDb,MovementReport,... |
unit TpImageButton;
interface
uses
Windows, Classes, Controls, StdCtrls, ExtCtrls, Graphics, Messages, SysUtils,
Types,
ThTag, ThAnchor, ThImageButton,
TpControls, TpAnchor;
type
TTpImageButton = class(TThImageButton)
private
FOnClick: TTpEvent;
FOnGenerate: TTpEvent;
FUseAbsoluteUrl: Bool... |
{ * ZIOThread * }
{ ****************************************************************************** }
{ * https://zpascal.net * }
{ * https://github.com/PassByYou888/zAI ... |
unit UInventori;
interface
uses UTipe,UTanggal,USimulasi,UUI,sysutils;
var
DaftarBahanM : DaftarBahanMentah;
DaftarBahanO : DaftarBahanOlahan;
InventoriM : InventoriBahanMentah;
InventoriO : InventoriBahanOlahan;
function isBahanAda(input : string) : boolean... |
unit Ils.Utils.Svc;
interface
uses
SysUtils, StrUtils, DateUtils, SvcMgr, WinSvc, SyncObjs, IniFiles,
JsonDataObjects,
CINIFilesData, Ils.Logger, Ils.Utils.SaaS;
type
TKafkaProcessFunc = function(
const AJSON: TJsonObject;
const AMes: string;
const AOffset: Int64;
out OMessageDT: TDateTime
... |
unit Main;
{*******************************************************************************
* *
* Название модуля : *
* ... |
unit Base.View;
// Herança
// Todos os formulários descendem deste formulário.
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, dxBevel, Vcl.ExtCtrls, cxGraphics,
cxLookAndFeels, cxLookAndFeelPainters, Vcl.Me... |
unit uPNGUtils;
interface
uses
System.Classes,
Winapi.Windows,
Vcl.Graphics,
Vcl.Imaging.pngimage,
Dmitry.Graphics.Types,
uMemory,
uBitmapUtils,
uICCProfile,
ZLib;
procedure LoadPNGImageTransparent(PNG: TPNGImage; Bitmap: TBitmap);
procedure LoadPNGImageWOTransparent(PNG: TPNGImage;... |
unit LazyMainFrm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, LazyInitLib, Vcl.StdCtrls;
type
TForm30 = class(TForm)
Button1: TButton;
Label1: TLabel;
Button2: TButton;
Memo1: TMemo;
Bu... |
unit pasjansql;
{$IFDEF FPC}
{$MODE Delphi}
{$H+}
{$ELSE}
{$IFNDEF LINUX}
{$DEFINE WIN32}
{$ELSE}
{$DEFINE UNIX}
{$ENDIF}
{$ENDIF}
//JanSQL interface for libsql
//2005 R.M. Tegel
//Modified Artistic License
//
//For interfacing wit janSQL library by Jan Verhoeven 2002
//janSQL is a... |
unit DinputGS ;
interface
uses OLE2,Windows,
util1,Gdos;
(*==========================================================================;
*
* DirectX 6 Delphi adaptation by Gérard Sadoc
*
*==========================================================================;*)
const
DIRECTINPUT_VERSION = $0... |
(* JSTAT ver 4.0 JRT Systems *)
(* *)
(* jstat computes several basic statistics on *)
(* an input array. *)
(* *)
(* parameters: *)
(* n - the number of data items in the *)
(* input array *)
(* x - the input array of real numbers, *)
(* may be up to 1000 elements, *)
(* actual variab... |
unit ch341hw;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, basehw, msgstr, ch341dll, utilfunc;
type
{ TCH341Hardware }
TCH341Hardware = class(TBaseHardware)
private
FDevOpened: boolean;
FDevHandle: Longint;
FStrError: string;
procedure SetI2CPins(scl, sda: cardinal);
public
constructor Create... |
unit Localizer;
{$mode objfpc}{$H+}
interface
function LocalizeString(str:string):string;
function SelectLocalized(rus:string; eng:string):string;
implementation
uses windows;
function LocalizeString(str: string): string;
begin
result:=str;
if str = 'stage_dl_masterlist' then begin
result:=SelectLocalized... |
(*
Category: SWAG Title: STRING HANDLING ROUTINES
Original name: 0008.PAS
Description: ST-CASE2.PAS (Lowercase)
Author: SWAG SUPPORT TEAM
Date: 05-28-93 13:58
*)
Function DnCase(Ch: Char): Char;
Var
n : Byte Absolute ch;
begin
Case ch of
'A'..'Z': n := n or 32;
end;
DnCase := chr(n);
end;
BEGIN... |
unit MT5.Connect;
interface
uses
System.SysUtils, System.Net.Socket, System.Types, System.Classes,
MT5.Protocol, MT5.RetCode, MT5.Utils, MT5.Types, System.SyncObjs;
type
TMTConnect = class
private
{ private declarations }
var
FSocket: TSocket;
FSocketRead: TSocket;
FSocketWrite: TSocket;
... |
{-----------------------------------------------------------------------------
Unit Name: frmPrefs
Author: HochwimmerA
Purpose: glData Preferences
$Id: frmPrefs.pas,v 1.37 2004/07/08 09:50:58 hochwimmera Exp $
-----------------------------------------------------------------------------}
unit frmPrefs;
... |
namespace Calculator.Engine;
interface
uses
RemObjects.Elements.RTL;
type
EvaluatorTokenType = private enum (
EOF,
Number,
Op_Add,
Op_Sub,
Op_Mul,
Op_Div,
Error
);
EvaluatorError = private class(Exception)
end;
EvaluatorToken = private class
public
... |
// based on https://developer.gnome.org/gtk-tutorial/stable/c489.html
namespace BasicGtkApp;
uses
atk,
gobject,
gio,
gtk;
/*
!!! Please note: in order to run this sample, you need to manually copy it to a Linux PC or VM with an active GUI, and run it.
!!!
!!! GUI applications cannot be ru... |
//------------------------------------------------------------------------------
//CharaOptions UNIT
//------------------------------------------------------------------------------
// What it does-
// This unit is used to gain access to configuration varia... |
unit USMConexao;
interface
uses System.SysUtils, System.Classes, System.Json,
DataSnap.DSProviderDataModuleAdapter,
Datasnap.DSServer, Datasnap.DSAuth, Data.DBXFirebird, Data.DB, Data.SqlExpr,
Data.FMTBcd, Datasnap.Provider, Datasnap.DBClient;
type
TSMConexao = class(TDSServerModule)
CON_FB: TSQLConn... |
unit UIlsServiceUtils;
interface
uses
System.SysUtils, Winapi.WinSvc;
//function GetWorkParam(): string;
function GetParamByName(const AParamName: string): string;
function HasAnyParamOf(AParams: array of string): Boolean;
procedure ChangeServiceParams(const AServiceName: string; const AServiceParamName: string; c... |
unit SDURandPool;
// Description:
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.SDean12.org/
//
// -----------------------------------------------------------------------------
//
{
copyright tdk
my code dual licenced under FreeOTFE licence and LGPL
code marked as 'sdean' is fr... |
unit FEarthLocations;
{Only things INTERACTIVE with the GLS 3D Display
need to be on the same page as it
To make this 'fit' into a tabsheet on main page
the stuff on the right side:
Open,Save,Print and Memo would be on another 'page'
the stuff on the left would be divided into
left and right sides with... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.StdCtrls, Vcl.ExtCtrls, NtOrdinal, NtPattern;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4... |
unit Unit2;
interface
function GetValue: String;
implementation
function GetValue: String;
begin
Result := 'This is a sample';
end;
end.
|
unit uFrmAdjustMinMaxAll;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, PaideTodosGeral, siComp, siLangRT, StdCtrls, Buttons, ExtCtrls;
type
TFrmAdjustMinMaxAll = class(TFrmParentAll)
lbMin: TLabel;
edtMin: TEdit;
lbMax: TLabel;
edtMax: TEdit... |
{$i deltics.io.path.inc}
unit Deltics.IO.Path;
interface
uses
SysUtils,
Deltics.Exceptions,
Deltics.Uri;
type
EPathException = class(Exception);
Path = class
public
class function Absolute(const aPath: String; const aRootPath: String = ''): String;
class function Absol... |
unit ThItemStorage;
interface
uses
ThTypes, ThClasses, ThItem;
type
TThItemStorage = class(TThInterfacedObject, IThObserver)
private
FSubject: IThSubject;
FItems: TThItems;
function GetItemCount: Integer;
public
constructor Create;
destructor Destroy; override;
procedure Notifycation... |
unit PromoClass;
interface
uses PromoDiscountInterface, dbClient, uSystemConst, PromoConfigClass, udm, PromoItemClass, contnrs,
PromoDiscountFactoryClass;
type
TPromo = class
private
fPromoDiscountFactory: TPromoDiscountFactory;
fFlatPromo: Boolean;
protected
fdiscount: IPromoDiscount;
... |
unit DPM.Core.Tests.PathUtils;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
TPathUtilsTests = class
public
[Test]
[TestCase('Simple', 'c:\test\foo\..\bar,c:\test\bar')]
[TestCase('SimpleDot', 'c:\test\foo\.\bar,c:\test\foo\bar')]
[TestCase('UNC', '\\test\foo\..\bar,\\test\bar')]
... |
unit uSysModules;
interface
uses Classes, SysUtils, Variants, ADODB;
const
//Import/Export
CAT_PRICE_COM = 'CAT_PRICE_COM'; //Catalog - Price Comparison
CAT_INV_UPD = 'CAT_INV_UPD'; //Catalog - Inventory Update
CAT_SRCH = 'CAT_SRCH'; //Catalog - Catalog Search
CAT_SYNC = 'CAT_SYNC'; ... |
unit frmWizardCreateVolume;
// Description:
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.SDean12.org/
//
// -----------------------------------------------------------------------------
//
interface
uses
// delphi
Windows, Messages, SysUtils, Classes, Graphics, Control... |
unit URepositorioRequisicaoEstoque;
interface
uses
URequisicaoEstoque
,UEntidade
,URepositorioDB
,UTipoMovimentacao
,URepositorioTipoMovimentacao
,UStatus
,URepositorioStatus
,UEmpresaMatriz
,URepositorioEmpresaMatriz
,UProduto
,URepositorioProduto
,UDeposito
,URepositorioDeposito
,UUsuar... |
unit uFIRational;
interface
uses
System.SysUtils,
Winapi.Windows,
FreeImage;
type
LONG = Longint;
type
TFIRational = class(TObject)
private
FNumerator,
FDenominator: LONG;
procedure Initialize(N, D: LONG);
procedure Normalize;
function GCD(A, B: LONG): LONG;
f... |
unit ojVirtualDrawTreeDesign;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ojVirtualTrees, StdCtrls, CheckLst;
type
TojVirtualDrawTreeDesignForm = class(TForm)
chAutoOptionsList: TCheckListBox;
Label1: TLabel;
Label2: TLabel;
chMiscOptionsL... |
unit cls_migrate;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
const
cns_Migr_010 = 0;
cns_Sql_AddTableMetaStrings =
'create table if not exists TimeMetaStrings (' +
'_id INTEGER, ' +
'pkey TEXT, ' +
'tms_Ctrl TEXT, ' +
'tms_Title TEXT, ' +
'tms_MetaDat TEXT, ' +
'tms_Date TEXT, ' +
... |
namespace MetalExample;
interface
// Buffer index values shared between shader and Oxygene code to ensure Metal shader buffer inputs match
// Metal API buffer set calls
const AAPLVertexInputIndexVertices = 0;
const AAPLVertexInputIndexViewportSize = 1;
type
vector_float2 = Array[0..1] of Single;
vector_f... |
unit Mac.Services;
interface
uses
Xplat.Services,
MacApi.AppKit,
FMX.Platform.Mac;
type
TMacPleaseWait = class(TInterfacedObject, IPleaseWaitService)
private
FView: NSProgressIndicator;
public
procedure StartWait;
procedure StopWait;
end;
implementation
uses
FMX.For... |
unit uJSONUser;
// *************************************************
// Generated By: JsonToDelphiClass - 0.65
// Project link: https://github.com/PKGeorgiev/Delphi-JsonToDelphiClass
// Generated On: 2020-03-30 14:23:29
// *************************************************
// Created By : Petar Georgiev ... |
namespace CustomerList;
interface
uses
System.Windows.Forms,
System.Drawing,
System.Data,
System.Data.Common,
System.Data.SqlClient;
type
MainForm = class(System.Windows.Forms.Form)
{$REGION Windows Form Designer generated fields}
private
bSaveChanges: System.Windows.Forms.Button;
MySQLDataA... |
unit uFrmInvoiceRefund;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, PaideTodosGeral, siComp, siLangRT, StdCtrls, Buttons, ExtCtrls,
DB, ADODB, Mask, DBCtrls, cxStyles, cxCustomData, cxGraphics, cxFilter,
cxData, cxEdit, cxDBData, cxGridCustomTableView, cx... |
unit uFrmImportTransferNumber;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, PaideTodosGeral, siComp, siLangRT, StdCtrls, Buttons, ExtCtrls,
DB, ADODB, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cxEdit,
cxDBData, cxGridCustomTableView, cxGridTabl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.