text
stringlengths
14
6.51M
{******************************************************************************* 作者: dmzn@163.com 2013-10-31 描述: 管理配比参数 *******************************************************************************} unit UFormPeiBi; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Fo...
unit Data; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Registry; type TEmulator = class(TDataModule) procedure EmulatorCreate(Sender: TObject); private { Private declarations } public { Public declarations } Registry : TRegistry; ...
(****************************************************************************** * PasVulkan * ****************************************************************************** * Version see PasVulkan.Framework.pas ...
unit ExportacaoU; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, Fi...
unit System.Convert.Test; interface uses PS.System.Convert, System.SysUtils, DUnitX.TestFramework; type [TestFixture] TTestConvert = class(TObject) public [Test] procedure ToBase64String; end; implementation { TTestConvert } procedure TTestConvert.ToBase64String; var bytes: TArray<Byte>; ...
unit AsyncIO.Coroutine.Detail.Fiber; interface uses AsyncIO, AsyncIO.OpResults, AsyncIO.Coroutine, AsyncIO.Coroutine.Detail; type TFiberMethod = procedure of object; CoroutineFiberImplBase = class abstract(TInterfacedObject, CoroutineFiber) strict private FFiber: pointer; FOwnsFiber: boolean; prot...
unit xe_AIC12; 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, dxSkinOffice2010Blue, Vcl.Menus, cxStyles, dxSki...
unit PrincForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm1 = class(TForm) BtnFor: TButton; BtnWhile: TButton; BtnRepeat: TButton; procedure BtnForClick(Sender: T...
unit UDados; interface type TDados = class private FResultado : Double; FPasso : Integer; FParametro : String; FNumero2 : Double; FNumero1 : Double; FNumero2Concatenado : String; FNumero1Concatenado : String; procedure setResu...
(* @abstract(Prise en charge des Images au format TrueVision TARGA en lecture et écriture. Version 1 et 2.) Spécifications : @br @unorderedList( @item(Méthode de compression : Aucune, RLE, non-compressé @item(Nombre de couleurs : 8 bits, 16 bits format BGR 555, 24 bits ou 32 bits BGR(A) @ite...
unit Marvin.Console.GUI.Cadastro.Cliente; interface uses Marvin.Console.Utils, { comunicação } Marvin.Desktop.Repositorio.AulaMulticamada, { exceções } Marvin.AulaMulticamada.Excecoes.Cliente, { classes } Marvin.AulaMulticamada.Classes.Cliente, Marvin.AulaMulticamada.Listas.Cliente; type TPaginaSal...
program scopeTest; var a, b, c: integer; procedure scopeTest(a,b,c: integer); begin a := 10; b := 20; c := a + b; writeln('In function scope'); writeln('value of a = ', a , ' b = ', b, ' and c = ', c); end; begin a:= 100; b:= 200; c:= a + b; writeln('In global scope'); writeln('va...
(* This file is a part of New Audio Components package v. 1.5 Copyright (c) 2002-2008, Andrei Borovsky. All rights reserved. See the LICENSE file for more details. You can contact me at anb@symmetrica.net *) (* $Id: libwma1.pas 323 2008-02-08 19:54:47Z andrei.borovsky $ *) unit libwma1; (* Title: ...
unit ClientTests; interface uses Windows, SysUtils, Classes, eiTypes, eiConstants, eiExceptions, eiProtocol, eiHelpers, eiChannel, eiClient, TestFramework, TestExtensions; type TClientTest = class(TTestCase) private FClient: IEasyIpClient; protected proced...
unit uInNomineSystem; interface uses Contnrs; const NUMBER_OF_CHARACTER_CONCEPTS = 9; NUMBER_OF_ANGEL_CHOIRS = 8; NUMBER_OF_DEMON_BANDS = 7; NUMBER_OF_ARCHANGELS = 13; NUMBER_OF_DEMON_PRINCES = 14; NUMBER_OF_CHARACTERISTICS = 6; NUMBER_OF_SONGS = 14; NUMBER_OF_SKILLS = 32; NUMBER_...
unit ClientForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, Vcl.DBGrids, dm, Vcl.StdCtrls, Vcl.ToolWin, Vcl.ComCtrls, ClientRecordForm; type TForm2 = class(TForm) DBGridClient:...
{******************************************************************************* Title: T2Ti ERP Description: VO relacionado à tabela [VENDA_FRETE] The MIT License ...
unit frmMain; {$mode objfpc}{$H+} interface uses Classes, SysUtils, sqldb, sqlite3conn, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls, untGingyApi, untOnMatchedEventArgs, untOnNotMatchedEventArgs, untProgram, untLiableSignedEventArgs, untDestapObject, untMessage, Windows, dateutils, untPla...
{------------------------------------------------------------------------------} { Copyright 2001 by EuroSoft Software Development } { designl@worldnet.net } { ...
Unit AdvSignals; { Copyright (c) 2001-2013, Kestral Computing Pty Ltd (http://www.kestral.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 retain the abov...
unit CoreCollectionPoster; interface uses PersistentObjects, DBGate, BaseObjects, DB, CoreCollection, Employee, Straton, WellPoster, Well; type TFossilTypePoster = class(TImplementedDataPoster) public function GetFromDB(AFilter: string; AObjects: TIdObjects): integer; override; function PostToDB(AO...
unit MyMaskEdit; {$mode objfpc}{$H+} interface uses Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, MaskEdit; type { TMyMaskEdit } TMyEventErrorEditMask = procedure(Sender: TObject;Text:string;TextMask:string) of object; TMyMaskEdit = class(TMaskEdit) private FOnMyErrorEditMask: T...
unit Views.Main; interface uses System.SysUtils, System.Types, System.UITypes, System.Rtti, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, ViewModel.Main, Data.Bind.ObjectScope, Data.Bind.Components, Data.Bind.EngExt, Fmx.Bind.DBEngExt, Fmx.Bind.Grid, System.Bindings...
unit forms.creategameform; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, forms.baseform, WEBLib.Controls, WEBLib.ExtCtrls, Vcl.StdCtrls, WEBLib.StdCtrls, VCL.TMSFNCTypes, VCL.TMSFNCUtils, VCL.TMSFNCGraphics...
{$include kode.inc} unit syn_s2_lfo; {$define LFO_RETRIGGER} //---------------------------------------------------------------------- interface //---------------------------------------------------------------------- uses kode_flags, kode_control, kode_editor, kode_object, kode_plugin, kode_rect, kode_...
unit sdltruetypefont; { $Id: sdltruetypefont.pas,v 1.2 2005/05/26 21:23:07 savage Exp $ } {******************************************************************************} { } { JEDI-SDL : Pascal units for SDL - Simple DirectMedia L...
unit Aurelius.Sql.gmRegister; interface //uses Aurelius.Sql.Register; type TgmSQLGeneratorRegister = class //(TSQLGeneratorRegister) private class procedure SetUserId(Value: TGUID); static; public class var FUserId: TGUID; class property UserId: TGUID read FUserId write SetUserId; class var Us...
unit Aurelius.Schema.Register; {$I Aurelius.inc} interface uses Generics.Collections, Aurelius.Schema.Interfaces; type TSchemaImporterRegister = class private class var FInstance: TSchemaImporterRegister; private FImporters: TDictionary<string, ISchemaImporter>; procedure Priva...
unit BeChatView; interface {DEFINE DEBUG} uses Windows, Forms, Classes, Controls, Messages, Graphics, SysUtils, ExtCtrls, uTextDrawer, ClipBrd, ImgManager, IniFiles, Common, LinkParser {$IFDEF DEBUG}, MoopsDebug{$ENDIF}; const cvNone = -1; cvBlack = 0; cvMaroon = 1; cvGreen ...
{ ID: a_zaky01 PROG: frac1 LANG: PASCAL } var n,i,ix:integer; v:real; min:array[0..1000] of integer; fin,fout:text; function gcd(a,b:integer):integer; begin if a<b then gcd:=gcd(b,a) else if b=0 then gcd:=a else gcd:=gcd(b,a mod b); end; begin assign(fin,'frac1.in'...
UNIT SSYSTEM6; INTERFACE USES CRT,GRAPH,SSYSTEM1,SSYSTEM2,SSYSTEM3,SSYSTEM4,SSYSTEM5; FUNCTION VerifyTableForCircuito:BOOLEAN; PROCEDURE DesignCircuitoScreen; IMPLEMENTATION {*****} FUNCTION VerifyTableForCircuito:BOOLEAN; { Verifies the table for tabelas } BEGIN VerifyTable...
unit mikko_consts; interface resourcestring {$IFDEF RES_ENGLISH} msg_ErrorNewNum = 'Unsuccessful attempt to generate a unique code'; msg_ErrorLockParoll = 'This user is already running!'; msg_InvalidPassword = 'Invalid password!'; msg_InvalidUsername = 'Invalid username!'; msg_nullid = 'Inval...
(* @abstract(Contient le "Manager de son" pour la librairie OpenAL)   Les pilotes officiels d' OpenAL peuvent être téléchargés à partir du site OpenAL @br (http://www.openal.org). ou de votre carte son site Web du fabricant. @br Ou pouvez télécharger la version d'OpenAL Soft (http://www.openal-soft.org/) @br C...
unit uEditAlarmElement; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, uCustomTypes, uStrUtils; type { TfEditAlarmElement } TfEditAlarmElement = class(TForm) bCancel: TButton; bOK: TButton; cbAlarmType: TComboBox; ...
(* Г) В одном ряду вперемежку лежат дыни и арбузы. Могут ли фермеры отсортировать их за один проход ряда так, чтобы в начале оказались все дыни, а в конце ряда - все арбузы? Напишите такую программу, обозначив арбузы единицами, а дыни - нулями. *) const cSize = 10; type tSeq = array[1..cSize] of byte; procedure P...
unit App.Controller.Cliente; interface uses DB, DBClient, System.Classes, App.Controller.Base, FactoryEntity, SysUtils, strUtils, Rest.Json, System.JSON, RTTI, System.TypInfo; type TControllerCliente = class(TControllerBase) public function LoadDataSetPorNome( Value: string ): TDataSet; function Loa...
unit Uautor; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Buttons, ExtCtrls, StdCtrls, Mask, DBCtrls, db, dbtables, Grids, DBGrids; type TFRMautor = class(TForm) Panel1: TPanel; SBPrimeiro: TSpeedButton; SBAnterior: TSpeedButton; SBProxim...
{ ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: QuickReport 4.0 for Delphi and C++Builder :: :: :: :: QRPrnSu.pas - QuickReport Printer setup dialog :: :: This unit is mostly an extract from the Dialogs.pas :: ...
{ Replace StrSearch with StrReplace in EDID and FULL subrecords } unit UserScript; const StrSearch = 'Elven'; StrReplace = 'Orcish'; var ReplaceCount: integer; function Initialize: integer; begin ReplaceCount := 0; end; procedure SearchAndReplace(e: IInterface; s1, s2: string); var s: string; begin if...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls; type student = record name : string[30]; surname: string[30]; department : string[30]; course : integer; end; ForArrName = array[1..16] of string;...
Unit ZValid; {################################} {# ZiLEM Z80 Emulator #} {# Validators #} {# Copyright (c) 1994 James Ots #} {# All rights reserved #} {################################} Interface Uses Validate, MsgBox, Drivers, ZGlobals; Type PZRangeValidator = ^TZRangeValid...
{********************************************************** * Copyright (c) Zeljko Cvijanovic Teslic RS/BiH * www.zeljus.com * Created by: 30-8-15 19:28:32 ***********************************************************} unit AZCDialogs; {$mode objfpc}{$H+} {$modeswitch unicodestrings} {$namespace zeljus.com.dia...
{==============================================================================| | MicroCoin | | Copyright (c) 2018 MicroCoin Developers | |=========================================================================...
unit XStrings; interface uses System.SysUtils; type TXStrings = class private FDescricao : string; function GetDescricao: string; procedure SetDescricao(const Value: string); public function SomenteNumeros(AValue: String): String; procedure ExemploMetodoComExcecao; property Descricao...
object CreateSessionForm: TCreateSessionForm Left = 245 Top = 179 BorderStyle = bsDialog Caption = 'Create a session' ClientHeight = 335 ClientWidth = 389 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Sty...
unit Aurelius.Id.Uuid; {$I Aurelius.Inc} interface uses Aurelius.Id.IdentifierGenerator, Aurelius.Sql.Interfaces; type TUuid38Generator = class(TIdentifierGenerator) public function GenerateId(Entity: TObject; Performer: ICommandPerformer): Variant; override; end; TUuid36Generator = c...
{ Subroutine STRING_FNAM_UNEXTEND (INNAM,EXTENSIONS,OFNAM) * * Make a file name without a file name extension. INNAM is the original * file name that may have an extension on the end. EXTENSIONS is a * PASCAL string containing a list of all the valid extensions separated * by blanks. OFNAM is returned the ...
{******************************************************************************} { CnPack For Delphi/C++Builder } { 中国人自己的开放源码第三方开发包 } { (C)Copyright 2001-2006 CnPack 开发组 } { ...
unit UpgradeNeededDialog; 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.Controls.Presentation, OSXUiUtils, ToolkitSettings; type TUpgradeNeededForm = class(TForm) lblVersion: ...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, FileCtrl; type TForm1 = class(TForm) Button1: TButton; Label1: TLabel; ListBox1: TListBox; Label2: TLabel; Label3: TLabel; Label4: TLabel; Label5:...
unit extcont; {$mode delphi} interface uses Classes, SysUtils, jwawindows, windows; //credits to jedi code library for filling in the "extended registers" const CONTEXT_EXTENDED=$20; type TJclMMContentType = (mt8Bytes, mt4Words, mt2DWords, mt1QWord, mt2Singles, mt1Double); TJclMMRegister = ...
unit DMedicamento; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ADPadrao, Db, DBTables; type TPosicionaCamposFMedicamentos = ( pcFMedicamentosNenhum, pcFMedicamentosCODMedicamento, pcFMedicamentosNomMedicamento); TDmMedicamentos = class(T...
unit UPageProperty; interface uses Windows, UTypeDef, UxlList; type TPropertySuper = class protected FPageId: integer; public constructor Create (APageId: integer); virtual; procedure Load (o_list: TxlStrList); virtual; abstract; procedure Save (o_list: TxlStrList); virtual; a...
//toconsider: provide log levels (debug/info/warning...) if using an actual logging library unit iaRTL.SyncBucket.ToFolder; interface uses System.Classes, Data.Cloud.CloudAPI, FireDAC.Comp.Client, iaRTL.API.Keys, iaRTL.Cloud.S3Object, iaRTL.Cloud.S3Folder, iaRTL.Cloud.S3Bucket, iaRTL.Sync...
{****************************************************************************} { @@Copyright:SUNTOGETHER } { @@Summary:数据处理请求类。 } { @@Description: } { @@Auth...
unit CatStorage; { Catarinka Storage Object Copyright (c) 2013-2014 Felipe Daragon License: 3-clause BSD See https://github.com/felipedaragon/catarinka/ for details } interface {$I Catarinka.inc} uses {$IFDEF DXE2_OR_UP} System.Classes, System.SysUtils, Vcl.Forms, System.SyncObjs, Vcl.Dialogs, {$ELSE} C...
unit LuaByteTable; //ByteTable related functions //A byte table is just a normal table with element ranging from 0 to 255 {$mode delphi} interface uses Classes, SysUtils, lua; procedure initializeLuaByteTable; procedure readBytesFromTable(L: PLua_State; tableindex: integer; p: PByteArray; maxsize:...
{*******************************************************} { Copyright(c) Lindemberg Cortez. } { All rights reserved } { https://github.com/LinlindembergCz } { Since 01/01/2019 } {******************************************...
{ Subroutine STRING_F_INT20H (S, I) * * Convert 16 bit integer I to a 4 character HEX string in S. } module string_f_int20h; define string_f_int20h; %include 'string2.ins.pas'; procedure string_f_int20h ( {make HEX string from 20 bit integer} in out s: univ string_var_arg_t; {output string} in ...
unit fmDeployment; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxStyles, cxCustomData, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, ActnList, StdCtrls, cxGridLevel, cxClasses, ...
unit ZipFileTilesTools; interface uses Console, ShareTools, TeraWMSToolsDefs, TeraWMSTools; type TZippedTilesFileDispatcher = class private //procedure DescriptionPageProducerHTMLTag(Sender: TObject; Tag: TTag; const TagString: String; TagParams: TStrings; var ReplaceText: String); public procedure Disp...
unit Server.Base.Crud; interface uses System.SysUtils, System.Classes, System.Json, DataSnap.DSProviderDataModuleAdapter, DataSnap.DSServer, DataSnap.DSAuth, FireDAC.Comp.Client, dbebr.factory.interfaces, dbebr.factory.firedac, Server.Base.Connection, Server.Models.Base.TabelaBase, dbcbr.mapping.at...
unit uDirectory; interface type TDirectory = class public class function GetDirectories(const pDirectory: string): string; end; implementation uses System.SysUtils, System.Math; { TDirectory } class function TDirectory.GetDirectories(const pDirectory: string): string; var vSearchRec: TSearchRec; be...
unit CommonfrmCDBBackupRestore; // Description: // By Sarah Dean // Email: sdean12@sdean12.org // WWW: http://www.FreeOTFE.org/ // // ----------------------------------------------------------------------------- // interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialo...
unit config; interface uses Windows, SysUtils, StdCtrls, XMLDoc, XMLIntf, Forms, Registry, PiconeBarreTache; function GetConfigFileName: TFileName; function IsSetToRunAtStartup : Boolean; procedure LoadConfig; procedure SaveConfig; function SetToRunAtStartup(Activate : Boolean) : Boolean; //----------------------...
{ TODO: style guide demands that the formal parameters must be sorted in order: in, io, and out parameters! } { Shows an implementation and operations on the binary tree dynamic data structure. } program BinaryTree (input, output); type tRefTree = ^tTree; tTree = record data : integer; left ...
unit teste.dao.objects; interface uses teste.lib.constantes, SysUtils, Inifiles, Classes, DB, DBClient, Provider, WideStrings, FMTBcd, SqlExpr, FireDAC.Stan.ExprFuncs, FireDAC.Phys.SQLiteDef, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.In...
unit PasYoutubedlHelper; interface uses Winapi.Windows, System.SysUtils, System.Classes; type TYoutubeDlHelper = class protected class function RunDosCommand(Command: string): string; class var youtubedl: string; const COMMAND_PLAYLIST_COUNT = '%s --get-id "%s"'; COMMAND_PLAYLIST_JSON = '%s -...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, Menus; type { TForm1 } TForm1 = class(TForm) calculateButton: TButton; customSensorDimensionsCheckBox: TCheckBox; FOVDiagonalEdit: TEdit; FOVVerticalEdit: TEdit; FOVHorizontalE...
unit VSEImageCodec; interface uses Windows, AvL, avlUtils, GDIPAPI, avlIStreamAdapter{$IFDEF VSE_LOG}, VSELog{$ENDIF}; type TImageFormat = (ifBMP, ifJPEG, ifGIF, ifPNG, ifTIFF); // Image formats TPixelFormat = (pfGS8bit, pfBGR24bit, pfRGBA32bit, pfBGRA32bit); // Pixel data format: 8-bit grayscale, 24-...
unit Sqlcombo; interface Uses TSQLCls,Outline,SysUtils,StdCtrls,Classes,Buttons,Controls,ExtCtrls, DB,DBTables,Messages,Graphics,Forms,Grids,Menus; Type TSQLComboBox=class(TComboBox) private FDSN:TFileName; FTable:string; FID:string; FInfo:string; FWhere:string; ...
{ Function STRING_MATCH (TOKEN,PATT) * * Determine whether the string TOKEN matches the string PATT up to the * length of TOKEN. If the length of TOKEN is greater than the length of * PATT, then the strings do not match. * * If this is used to determine whether a token matches a keyword, then * this functi...
unit NewItem; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, Buttons, DB, ZAbstractRODataset, ZAbstractDataset, ZDataset, DBCtrls, Grids, DBGrids, DBLookupEh, Mask, DBCtrlsEh, DBGridEh, sBitBtn, sLabel, sEdit, sCheckBox; type TFormNewIt...
{$N+} type fofx = function(x : real) : real; { needed for function-evaluating } function derivative(x, dx : real; f : pointer) : real; var y : fofx; begin @y := f; derivative := (y(x + dx/2) - y(x - dx/2)) / dx; end; { Integrates function from a to b, by approximating function with rectangles of width h. } ...
(* @file UIngame.pas * @author Willi Schinmeyer * @date 2011-10-27 * * UIngame Unit * * Contains the actual game code which is executed once the ingame * state is entered. *) unit UIngame; interface uses UGeneralTypes, USharedData; (* @brief Main Function - called when ingame State is entered. * * E...
unit FramesWizard; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ActnList; type TFrameClass = class of TFrame; TButtons = set of (btPrev, btNext, btFinish, btCancel); TButtonStateValidateEvent = procedure(Sender: TObject; var EnabledState: bool...
(* Example for use of DPMI-Calls to serve a hardware interrupt from Delphi 1 Change the follwing routines to adapt to special device: InitIRQ (enable interrupt from device) ReleaseIRQ (disable interrupt from device) RMInt (interrupt service routine) The following demo program shows the u...
// "Recent files" sub-menu to the File menu // Originally implemented 2013-03-17 to 18. {$mode macpas} unit RecentFiles; interface uses MacOSAll, UtilsTypes, TransSkel4; procedure UpdateRecentMenu; procedure SaveToRecent(theSpec: FSSpecString); procedure SaveRecentList; procedure LoadRecentList; procedure InitRecent...
unit AsyncIO.Test.Basic; interface procedure RunBasicTest; implementation uses System.SysUtils, AsyncIO, AsyncIO.ErrorCodes, AsyncIO.Filesystem; type FileScanner = class private FBuffer: TBytes; FStream: AsyncFileStream; FBytesRead: Int64; procedure DoReadData; procedure ReadHandler(const...
unit frKajian; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Layouts, System.Threading, FMX.Effects, FMX.Objects, System.Actions, FMX.ActnList, FMX.StdAc...
{Ä Fido Pascal Conference ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PASCAL Ä Msg : 309 of 318 From : Bob Swart 2:281/256.12 09 Apr 93 17:04 To : Manh Tran 1:273/704.0 Subj : Bug In Pascal Code ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ...
{ DocuGes - Gestion Documental Autores: Equipo de FacturLinEx ( http://facturlinex.sourceforge.net ) 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 3 of the License,...
unit database; interface uses System.SysUtils,Winapi.Messages,Vcl.ExtCtrls, System.Classes, Data.DBXMySQL, Data.FMTBcd, Datasnap.DBClient, Datasnap.Provider, Data.DB, Data.SqlExpr, Vcl.Forms, Vcl.StdCtrls, Vcl.Dialogs, Vcl.Controls, UNspeciality,System.Generics.Collections, UNadmingroup; type TComandosDM = (CMDInc...
(*!------------------------------------------------------------ * [[APP_NAME]] ([[APP_URL]]) * * @link [[APP_REPOSITORY_URL]] * @copyright Copyright (c) [[COPYRIGHT_YEAR]] [[COPYRIGHT_HOLDER]] * @license [[LICENSE_URL]] ([[LICENSE]]) *------------------------------------------------------------- *) unit Up...
program MsgBox; uses Crt,Windows; var sCap: pChar='Заголовок'; { строка с нулём как в C } sText: pChar='Hi! Привет!'+#13+#10+'Вторая строка'; sTxt: String='Hi! Привет!'#13#10'Вторая строка в String'; handle: integer; ButtonCode: word; begin ClrScr; SetConsoleTitle ('Окно соо...
unit AldiKonfig; interface uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls, Buttons, ExtCtrls, OvcBase, OvcState, OvcFiler, OvcStore, CPortCtl; type TAldiKonfigDlg = class(TForm) OKBtn: TButton; CancelBtn: TButton; Bevel1: TBevel; edWechselzeit: TEdit; Label1: TLabel; ...
(* Contient un composant "TBZStopWatch" servant à effectuer un chronometrage de vos procedures ou fonctions en micro, nano, milli secondes et secondes.@br Il peux également servir calculer le FPS dans des applications graphique. ----------------------------------------------------------------------------------...
unit Bowling.Game; interface uses Bowling.API; type TBowlingGame = class(TInterfacedObject, IBowlingGame) private type TBowlingFrame = record Score: Integer; Size: Integer; end; private FRolls: array[0..20] of Integer; FCurrentRollIndex: Integer; function IsStrike(...
unit UProtoCouleurs; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.Bind.GenData, Vcl.StdCtrls, Vcl.ControlList, Data.Bind.Components, Data.Bind.ObjectScope, Data.Bind.EngExt, Vcl.Bind.DBEngE...
{$MODE OBJFPC} { -*- delphi -*- } {$INCLUDE settings.inc} unit stringrecorder; interface type TStringRecorder = class abstract public procedure Add(const Value: UTF8String); virtual; abstract; end; TStringRecorderForStrings = class(TStringRecorder) private type PEntry = ^TEntry; ...
{ Written by: R. Van de Voorde Version: 1.0 Date: 16-07-2014 Basic usage: ... TForm1 = class(TForm) Label1: TLabel; ... procedure TForm1.FormCreate(Sender: TObject); begin FadingLabel := TFadingLabel.Create(Label1); FadingLabel.onAfterFadeOut:= @FadeoutDone; FadingLabel.onAfterF...
unit DUP.Model.Conexao.Factory; interface uses DUP.Model.Conexao.Interfaces, DUP.Model.Conexao.Firedac.Conexao, DUP.Model.Conexao.Firedac.Query; type TModelConexaoFactory = class(TInterfacedObject, iModelConexaoFactory) private public constructor Create ; destructor Destroy ; overr...
unit main; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Data.DB, Datasnap.Provider, Datasnap.DBClient, Vcl.Grids, Vcl.DBGrids, Vcl.ExtCtrls, Vcl.ComCtrls, StrUtils; type TForm1 = class(TFo...
{******************************************************************************* Title: T2Ti ERP Fenix Description: Model relacionado à tabela [PESSOA_JURIDICA] The MIT Licen...
unit BCEditor.Editor.TokenInfo.Title.Colors; interface uses System.Classes, Vcl.Graphics; type TBCEditorTokenInfoTitleColors = class(TPersistent) strict private FBackground: TColor; FReference: TColor; public constructor Create; procedure Assign(ASource: TPersistent); override; ...
unit Unit2; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm2 = class(TForm) Label1: TLabel; Edit1: TEdit; Button1: TButton; CheckBox1: TCheckBox; procedure Button...
unit RTF_ObszarSelector; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, CheckLst, RT_Tools; type TFrmObszarSelector = class(TForm) LbxObszary: TCheckListBox; BtnOk: TButton; BtnCancel: TButton; LblObszary: TLabel; ...
{ ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi Copyright (c) 2016, Isaque Pinheiro All rights reserved. GNU Lesser General Public License Versão 3, 29 de junho de 2007 Copyright (C) 2007 Free S...
unit DAO.ApontamentoOperacional; interface uses DAO.Base, Model.ApontamentoOperacional, Generics.Collections, System.Classes; type TApontamentoOperacionalDAO = class(TDAO) public function Insert(aApontamentos: TApontamentoOperacional): Boolean; function Update(aApontamentos: TApontamentoOperaci...
unit UWhereIsWinamp; interface uses Windows // RegQueryValue ,SysUtils // StrAlloc ,Registry ; function _WhereIsWinamp : String; function GetAmpExePath : string; implementation //-------------------------------------------------------------------- // Tries to find where ac...