text
stringlengths
14
6.51M
unit Email; interface type HCkDateTime = Pointer; HCkCsp = Pointer; HCkStringBuilder = Pointer; HCkCert = Pointer; HCkBinData = Pointer; HCkString = Pointer; HCkXmlCertVault = Pointer; HCkByteData = Pointer; HCkTask = Pointer; HCkPrivateKey = Pointer; HCkEmail = Pointer; HCkCertChain = Pointer; HCkStringArray = Poin...
unit Scene; interface uses AvL, avlUtils, avlEventBus, avlMath, avlVectors, OpenGL, VSEOpenGLExt, oglExtensions, VSECore, VSEPrimitiveModel, GameObjects; type TTitleMsgStatus = record Msg: string; Pos, Delta: Single; Time: Cardinal; end; TScene = class private FMap: TPriMo...
// ************************************************************* // Unit RECO_MsgDlg // // 12.06.2010 RIA 4.10.0 erstellt // 03.12.2010 RIA 4.14.0 RIA Umstellung auf ADO // // Rezepteditor: RECO Dialog // ************************************************************* unit RECO_MsgDlg; interface uses Classes, VCL.C...
unit xe_JON33; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGraphics, cxControls, cxLookAndFeels, MSXML2_TLB, cxLookAndFeelPainters, cxStyles, cxCustomData, cxFilter, cxData, cxDataStorage, cxEdit, cxNavigator, Data.DB, cxDBData, cxLabel, Vcl.Menus, Vc...
unit SRLabel; { TSRLabel (C)opyright 2000 Version 1.13 Autor : Simon Reinhardt eMail : reinhardt@picsoft.de Internet : http://www.picsoft.de Diese Komponente ist eine Label-Komponente mit Schatteneffekt und Internet-Link-Funktion. Sie ist abgeleitet von TGraphicControl und sie ist Public Domain, ...
unit EditPeriodFormImpl; 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, Vcl.ComCtrls, dxCore, cxDateUtils, Vcl.Menus, Vcl.Std...
unit uHammingTests; interface uses DUnitX.TestFramework; type [TestFixture] HammingTests = class(TObject) public [Test] // [Ignore('Comment the "[Ignore]" statement to run the test')] procedure empty_strands; [Test] [Ignore] procedure identical_strands; [Test] [Ignore] proc...
unit SimpFTP; // // Define debug (remove 'x') if you wish OutputDebugString // to output unhandled WinInet status callbacks. // Define USING_IE5 (remove 'x') to implement FtpCommand functionality // (only available with IE5 or higher WinInet or Windows CE :) ) // {$define xDEBUG} {.$define USING_IE5} // // D...
unit UOpcaoTalao; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Mask, ToolEdit, CurrEdit, Buttons; type TfOpcaoTalao = class(TForm) StaticText1: TStaticText; StaticText2: TStaticText; CurrencyEdit1: TCurrencyEdit; CurrencyEdit2: TCurrencyEdit...
unit UUpdateServer; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ScktComp, Vcl.ExtCtrls, Vcl.StdCtrls, Vcl.ComCtrls; const SERVER_PORT_DEFAULT = 18888; VERSION_DEFAULT = 0; type TForm1 = class(TForm) ServerSocket1: TServerSocket; Panel1: TPanel...
unit fm_setup; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, MemTableDataEh, Db, MemTableEh, GridsEh, DBGridEh, DBGridEhVk, Menus, ImgList, ToolWin, ActnMan, ActnCtrls, ActionManagerDescription, ActnList, Registry, DateVk, Contnrs, DBGridEhGrouping, mikko_...
unit uTypes; interface uses {$IFDEF MSWINDOWS} Winapi.Messages, {$ENDIF} System.Classes, System.SysUtils, aduna_ds_list; type TBancoDados = class public const coMacroWhere: string = 'WHERE'; coMacroAnd: string = 'AND'; // campos comuns coId = 'ID'; coNome = 'NOME'; coAtivo = 'ATIVO'; ...
//any test code unit DTestCode; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Xml.XMLDoc, Xml.XMLIntf, Vcl.StdCtrls, PrintUtils; type TDynArrChar = array of Char; procedure sortStringList(pSDelimiterText ...
unit MainUnit; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, CPort, CPortEsc, GR32, GR32_Image; type TFormTerminal = class(TForm) ComPort: TComPort; Update: TTimer; PaintBox32: TPain...
unit UPrevCliNCompra; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Mask, ToolEdit, CurrEdit, Buttons, ExtCtrls, Grids, DBGrids, RXDBCtrl, DB, DBClient, RxLookup, ComCtrls, DBTables; type TfPrevCliNCompra = class(TForm) Label1: TLabel; Cu...
{********************************************************} { } { Zeos Database Objects } { Lexical Sql-Scanner class } { } { Copyright (c...
unit SingleBorderFormUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm; type TSingleBorderForm = class(TUniForm) private { Private declarations } public { Public declarations } e...
unit AutoTargetUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm, uniGUIBaseClasses, uniURLFrame; type TAutoTargetForm = class(TUniForm) UniURLFrame1: TUniURLFrame; procedure UniFormAj...
{----------------------------------------------------------------------------- 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.1....
unit JavaScriptLintAPI; interface uses Classes; // The path to the configuration file may be blank. function LintString(sBinaryPath, sConfigPath, code: string; messages: TStringList; var error: string): boolean; function StripCSlashes(encoded: string): string; implementation uses SysUtils, Windows, Forms; functio...
unit pingUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, JvExControls, JvXPCore, JvXPButtons; type TForm1 = class(TForm) campo: TPanel; jogador: TPanel; computador: TPanel; bola: TPanel; pontosJogador: TLabel; ...
unit HJYFactoryManagers; interface uses SysUtils, Classes, HJYFactoryIntfs, HJYIntfObjs, HJYHashLists; type TFactoryList = class(TObject) private FList: TList; function GetItems(Index: Integer): THJYFactory; function GetCount: Integer; public constructor Create; destructor Destroy; override...
unit BaseDir; //////////////////////////////////////////////////////////////////////////////// // // Author: Jaap Baak // https://github.com/transportmodelling/Utils // //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////...
{*********************************************************} {* O32MOUSEMON.PAS 4.0 *} {*********************************************************} {* ***** BEGIN LICENSE BLOCK ***** *} {* Version: MPL 1.1 ...
unit uPacket; interface uses Windows, IdGlobal; const // #[02] Packet Sender PACKET_DELIMITER_1 = $7A; PACKET_DELIMITER_2 = $7B; // PACKET TYPE DEFINITION PACKET_TYPE_REQ = 1; PACKET_TYPE_NOTI = 2; PACKET_TYPE_RES = 3; PACKET_TYPE_ACK = 4; PACKET_TYPE_NAK = 5; // NEW ECDIS REQUEST ...
unit uFileManager; interface uses Classes, SysUtils, Forms; const cCaption = 'Notepad'; cNewFileName = 'Untitled.txt'; type TTextFileFormat = (ffAnsi, ffUTF8, ffUTF16); { TTextFileManager } TTextFileManager = class private FMainForm : TForm; FFileName : String; FFileFormat : TTextF...
unit ResourceProcessing; interface function GetModuleVersion: String; function GetAppRevision: String; implementation uses System.Types, System.SysUtils, System.StrUtils, System.Classes, Winapi.Windows; // via http://stackoverflow.com/questions/10854958/how-to-get-version-of-running-executable function G...
unit TopTenForm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls; type TformTopTen = class(TForm) butnCancel: TButton; Animate1: TAnimate; lablName: TLabel; procedure FormActivate(Sender: TObject); procedure butnCance...
unit Domain.Entity.Contato; interface uses System.Classes, Dialogs, SysUtils, EF.Mapping.Base, EF.Core.Types, EF.Mapping.Atributes, Domain.Consts; type [Table('Contatos')] TContato = class(TEntityBase) private FNome: TString; FTelefone: TString; FClienteId: TInteger; published [Column...
(* * Demande un nombre … l'utilisateur et renvoie si celui-ci est compris entre 0.01 et 999 999 999.99 * * Param X * Retourne Booleen : si le nombre est compris entre 0.01 et 999 999 999.99 *) function obtenirSaisie: Boolean; begin WriteLn('Saisissez un nombre : '); read(nombre); obtenirSaisie := (nombre >= ...
unit uPlugInDefinition; interface uses Windows,Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms; type TEventNotification = (evnFileNew, evnFileOpen, evnFileSave, evnFileSaveAs, evnCut, evnCopy, evnPaste, evnClose); TEventAction = (evnContinue, evnAbort); TPlugIn = class ...
unit UProject; interface uses Classes, UFastKeysSS, UUtilsJSON, Data.DBXJSON, System.JSON, USnapshot; type TProject = class(TJSONPersistent) private FSlides: TStringList; FAfterCollecte: string; FProperties: TFastKeyValuesSS; function GetSlides: TStringList; procedure SetSlides(const Value:...
Program encomiendas; const dimF=9;//dimension fisica del Vector por el peso del random Type encomienda = record codigo: integer; peso: integer; end; // Lista de encomiendas lista = ^nodoL; nodoL = record dato: encomienda; sig: lista; end; {---------------------...
{----------------------------------------------------------------------------- Unit Name: RbStyleEditor Purpose: Form Component Editor for RbStyleManager Author/Copyright: NathanaŽl VERON - r.b.a.g@free.fr - http://r.b.a.g.free.fr Feel free to modify and improve source code, mail me (r.b.a.g@free.f...
{---------------------------------------------------------------------- DEVIUM Content Management System Copyright (C) 2004 by DEIV Development Team. http://www.deiv.com/ $Header: /devium/Devium\040CMS\0402/Source/PhotoGallery/pgGalleryForm.pas,v 1.1 2004/04/09 06:28:28 paladin Exp $ ------------...
unit Unit1; interface uses MvcDemo, iocp, iocp.http, iocp.Http.MVC, iocp.Utils.GMTTime, iocp.Http.Client, Rtti, YxdRtti, YxdJson, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, iocp.Sockets, iocp.Http.WebSocket; type TForm1 = class(TForm) Butto...
unit UdmPageProducer; interface uses System.SysUtils, System.Classes, Web.HTTPApp, Web.HTTPProd; type TdmPageProducer = class(TDataModule) PageProducer : TPageProducer; procedure PageProducerHTMLTag(Sender: TObject; Tag: TTag; const TagString: string; TagParams: TStrings; var ReplaceText: string); pr...
unit extenso; interface function ValorExtenso(Valor: double; Singular, Plural: string): string; implementation uses SysUtils; // ------ Valor por extenso de 1 ate 999 ( sem unidade )--------- function ExtNum(Str_Valor: string): string; const Vu: array [1..19] of string = ('Hum', 'Dois', 'Três', 'Quatro', 'Cinc...
{ ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi. @abstract(ORMBr Framework.) @created(25 julho 2017) @author(Marcos J O Nielsen <marcos@softniels.com.br>) @author(Skype : marcos@softniels.com.br) Comentario: .. Refatorado a partir do driver ormbr.driver.firedac. .. Testado ape...
unit uTarefa3; { 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.Variants, Data.DB, Datasnap...
Unit ZEngine; {################################} {# ZiLEM Z80 Emulator #} {# The emulator engine #} {# Copyright (c) 1994 James Ots #} {# All rights reserved #} {################################} {$I-,S-} Interface Uses Objects, ZTerminl, Drivers, ZConsts; Const fSign = 128; fZero...
namespace Sugar.Test; interface uses Sugar, Sugar.Cryptography, Sugar.TestFramework; type UtilsTest = public class (Testcase) private method AreEquals(Expected, Actual: array of Byte); public method ToHexString; method FromHexString; end; implementation method UtilsTest.AreEquals(Expecte...
unit datamodel.gamedata.standard; interface uses DataModel , DataModel.GameDataObject.Custom ; type TGameData = class( TGameDataObject, IGameData ) private fCurrentQuestion: string; fSessionPassword: string; fSessionName: string; fLangID: string; fMinUser: integer; fMaxUser: integer; ...
unit uHighlighterProcs; interface uses Classes, SynEditHighlighter; procedure GetHighlighters(AOwner: TComponent; AHighlighters: TStringList; AppendToList: boolean); function GetHighlightersFilter(AHighlighters: TStringList): string; function GetHighlighterFromFileExt(AHighlighters: TStringList; Extension: str...
unit ufrmImportFromStore; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, cxTextEdit, cxMaskEdit, cxButtonEdit; type TfrmImportFromStore = class(TForm) ...
{ Copyright 2019 Ideas Awakened Inc. Part of the "iaLib" shared code library for Delphi For more detail, see: https://github.com/ideasawakened/iaLib 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...
{$mode TP} {$R+,B+,X-} {$codepage UTF-8} program T_5(input, output); type task = record disks: integer; from, buf, where: char; end; list = ^node; node = record elem: task; next: list end; stack = list; var n: integer; procedure ClearSta...
unit Main; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, OtlParallel, OtlTask, OtlTaskControl, Vcl.StdCtrls; type TFormMain = class(TForm) btnExecuteTask: TButton; memo: TMemo; procedure btnExecu...
// Copyright 2014 Asbjørn Heid // // 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 applicable law or ...
program Begin33; var X,Y,A :integer; begin writeln('Enter how many candies: '); readln(Y); writeln('Enter what is the weight of one candy: '); readln(X); A:=X*Y; writeln('All the candy costs ',A); end.
unit FPrincipal; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, UCalculoResultado, UDados, UConcatenaResultado, Vcl.ExtCtrls, System.Classes; type TFormPrincipal = class(TForm) ButtonNumero1: TButton; ...
unit TracksMix; interface uses Forms, Windows, Messages, SysUtils, Classes, Controls, Graphics,Dialogs; type TMxTypeDSP=(TMxEcho,TMxFlanger,TMxVolume,TMxReverb,TMxLowPassFilter,TMxAmplification, TMxAutoWah,TMxEcho2,TMxPhaser,TMxEcho3,TMxChorus,TMxAllPassFilter,TMxCompressor, TDistort...
unit Marvin.Desktop.GUI.Cadastro.TipoCliente; interface uses { sistema } Marvin.AulaMulticamada.Classes.TipoCliente, Marvin.AulaMulticamada.Listas.TipoCliente, Marvin.Desktop.GUI.Cadastro.Base, { padrão } System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, System.Acti...
{*_* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Author: François PIETTE Description: ICS IP protocol helper Creation: March 20, 2004 Version: 1.00 EMail: francois.piette@overbyte.be http://www.overbyte.be francois.piette@rtfm.be http://www....
{$include kode.inc} unit fx_pitch; { mono todo: stereo.. is this based on: http://ro.cking.ch/js/pitch_ola.reajs ? } //---------------------------------------------------------------------- interface //---------------------------------------------------------------------- uses kode_const, kode_types, ...
unit Classes.Utils.View; interface uses FireDAC.Comp.Client, FMX.ListBox, FMX.ListView, FMX.Forms, FMX.DateTimeCtrls, U_MensagemPadrao, FMX.Edit, Datasnap.DBClient, FMX.Memo, MultiDetailAppearanceU, FMX.Objects; type tpRelatorio = (Denuncias, Receitas); type TUtilsView = class private ...
UNIT Fade; INTERFACE Const MaxInten = 63; Procedure InitCol; Procedure SetBrightness (Brightness :Byte); Procedure Fade_Out (Duration:Byte); Procedure Fade_In (Duration:Byte); IMPLEMENTATION USES crt; CONST PelIdxR = $3c7; {Port to read} PelIdxW = $3c8; {Port to write} PelData = $3c...
unit uJxdUdpDefine; interface uses uJxdUdpIoHandle, uJxdHashCalc; type /////////////////////////////////////////////////////////////////////////////////////////////////////////// /// /// 共性信息定义 /// ///////////////////////////////////////////////////////////////////////////...
unit MemoryQuery; {$mode objfpc}{$H+} interface {$ifdef jni} uses Classes, SysUtils, unixporthelper, NewKernelHandler; {$endif} {$ifdef windows} uses Classes, SysUtils, windows, CEFuncProc, NewKernelHandler; {$endif} {$ifdef darwin} uses Classes, SysUtils, macport, CEFuncProc, NewKernelHand...
unit UFtpGestor; interface uses SysUtils, strutils, Classes, IOUtils, IdFTP, IdAllFTPListParsers, Vcl.Dialogs, IdFTPList; type TFtpGestor = class protected FTP : TIdFTP; public constructor Create(P_DiipServ,P_NombUsua,P_PassUsua: string;P_NumePuer: word); destructor Destroy; {PROP...
program const_circle (input, output); const PI = 3.141592654; var r, d, c : real; begin writeln('Enter the radius of the circle'); readln(r); d := 2 * r; c := PI * d; writeln('The circumference of the circle is ', c:7:2); end.
module string_wipe; define string_wipe; %include 'string2.ins.pas'; { ******************************************************************************** * * STRING_WIPE (S) * * Set the string to empty and wipe all characters by setting them to NULL. * This completely erases any previous information in the string. }...
{$include kode.inc} unit kode_window_win32; { weird! optimization level 2 or 3 makes the editor window have scrollbars in reaper. debug build is ok, and other hosts have no problems, it seems.. } //---------------------------------------------------------------------- interface //-------------------------------...
unit iaDemo.VCLStyleManager.MainForm; interface uses System.Classes, System.SysUtils, Vcl.ComCtrls, Vcl.Controls, Vcl.ExtCtrls, Vcl.Forms, Vcl.Menus, Vcl.StdCtrls; type TDemoForm = class(TForm) Panel1:TPanel; MainMenu1:TMainMenu; File1:TMenuItem; Exit1:TMenuItem...
Unit Volumex; INTERFACE Const vxDOSEmu=0; { Volume de format DOSEmu } vxVirtualPC=100; { Volume de format Virtual PC } Type {Entąte de fichier image DOSEMU correspondant Ö des disques dur} DosEmuHeader=Record Sign:Array[0..6]of Char; { Signature: 'DOSEMU'#0 } Heads:LongInt; ...
unit Tests.Adapter.Base; interface uses DUnitX.TestFramework, Casbin.Adapter.Types; type // No need to test anything as TBaseAdapter is very basic // This unit is a placeholder for future tests [TestFixture] TTestAdapterBase = class private fAdapter: IAdapter; public [Setup] procedure Setup...
{$REGION History} { 修订历史 2017.2.9 ========= * 修正了插件中在特定场景下 TabList 顺序切换的问题(墨宝轩报告) } {$ENDREGION} /// <summary> /// IQFormService 的 VCL 版实现单元,仅支持 VCL 程序 /// </summary> unit qplugins_vcl_formsvc; interface uses classes, sysutils, types, windows, messages, controls, comctrls, forms, qstring, qplugins, qplugins_...
unit bttransfer; interface uses BTTrackerAnnounce, TorrentFile, OverByteIcsWSocket, hashedstorage; const aWsState: array[TSocketState] of string = ( 'invalid', 'opened', 'bound', 'connecting', 'socks connected', 'connected', 'accepting', 'listening', 'closed'); type TBTPeer = class(TObje...
//Copyright Cheat Engine unit dotnethost; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type EDotNetException=class(Exception); function DotNetExecuteClassMethod(assemblypath: string; namespace: string; classname: string; methodname: string; parameters: string): integer; //MUST be a "public static int m...
{ Remove random temporary references from cells if there are more than iMinRefs of them in a cell. Uncomment NAME check to process only references of specific base object. } unit RemoveExcessRefs; const iMinRefs = 3; sRefSignatures = 'REFR,ACHR,PGRE,PMIS,PHZD,PARW,PBAR,PBEA,PCON,PFLA'; var lst: TList; fu...
unit RT_DateProvider; interface uses Windows, Classes, SysUtils; type IRTDateProviderConfiguration = interface ['{AAB43AD1-4706-41C0-BCD0-4A344B44F6FA}'] function IsFakeDateEnabled: Boolean; function GetFakeDateTime: TDateTime; end; TRTDateProviderConfiguration = class (TInterfaced...
unit Pem; interface type HCkPem = Pointer; HCkPrivateKey = Pointer; HCkTask = Pointer; HCkByteData = Pointer; HCkString = Pointer; HCkJavaKeyStore = Pointer; HCkPublicKey = Pointer; HCkCertChain = Pointer; HCkCert = Pointer; HCkPfx = Pointer; function CkPem_Create: HCkPem; stdcall; procedure CkPem_Dispose(handle: ...
unit TestOvcDbPictureField; interface uses Testframework; type TTestOvcDbPictureField = class(TTestCase) published procedure TestEmptyStringField; procedure TestStringField; procedure TestText; end; implementation uses DB, DBClient, Forms, ovcdbpf; { TTestOvcDbPictureField } procedure TTest...
unit UDynamicMessageDlg; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; const DefaultWidth = 370; DefaultHeight = 200; type TDynamicMessageDlg = class procedure btnClick(Sender: TObject); private fOpcao: String; fForm: T...
{------------------------------------ 功能说明:实现IDBConnection接口 创建日期:2010/04/26 作者:wzw 版权:wzw -------------------------------------} unit DBConnection; interface uses SysUtils, Controls, ADODB, DBIntf, SvcInfoIntf; type TDBConnection = class(TInterfacedObject, IDBConnection, ISvcInfo) private FConnecti...
(* Д) Напишите функцию для ввода целого числа. Она принимает строку-приглашение и возвращает введенное число. *) function GetNumber(const str: string): integer; var r: integer; begin Write(str); Readln(r); GetNumber := r; end; var x: integer; begin x := GetNumber('Введите стоимость покупки = '); Writeln('x = ',...
namespace Nuklear; type Theme = public enum (THEME_BLACK, THEME_WHITE, THEME_RED, THEME_BLUE, THEME_DARK); method set_style(ctx: ^__struct_nk_context; theme: Theme); public; begin var table: array[0..NK_COLOR_COUNT-1]of __struct_nk_color; if theme = theme.THEME_WHITE then begin table[NK_COLOR_TE...
unit Player; interface uses Windows, Messages, SysUtils, Classes, Controls, Graphics, Dialogs; type TTypeAction=(Play,Stop,Pause,FF,RW); {>>TCstButton} TCstButton = class(TCustomControl) private fColorBorder:TColor; fColorButton:TColor; fColorOn:TColor; fColorOff:TColor; ...
{+--------------------------------------------------------------------------+ | Unit: mwSupportProcs | Author: Michael Hieke | Last change: 1999-11-14 | Description: Supporting procedures for mwCustomEdit. | Version: 0.90 | Thanks to: HANAI Tohru +----------------------------------------...
{******************************************************************************* Title: T2Ti ERP Description: Controller relacionado à tabela [ECF_TOTAL_TIPO_PAGAMENTO] The ...
{------------------------------------ 功能说明:模块导出单元 给ConfigTool.exe提供接口 创建日期:2011.01.04 作者:wei 版权:wei -------------------------------------} unit uTangramModule; {$weakpackageunit on} interface uses SysUtils, RegIntf, SysModule; procedure InstallModule(Reg: IRegistry); procedure UnInstallModule(Reg: IR...
unit Communication; interface uses Windows, SysUtils, Classes, Forms, Registry, Main, CommonFunctions; function ListPorts: TStrings; // Lists all available COM ports procedure ConnectDev; // Connect to controller procedure RestartPort; ...
{ High level function for PIC 18s with 8 bit programming opcodes and 24 bit * programming data words. } module picprg_18b; define picprg_erase_18f25q10; %include 'picprg2.ins.pas'; { ******************************************************************************** * * Local subroutine SEND_OPC (PR, OPC, STAT) * * ...
unit UfrmPictureSelector; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, GR32_Image, Vcl.ComCtrls, Vcl.AppEvnts, USourcePPT, USourceInfo; type TfrmPictureSelector = class(TForm) ImgViewSel...
unit Compiler; interface uses Classes, SysUtils, Kernel, Parser, StdCtrls, SourceManage; type TGospelCompiler = class private FMainModule: TModule; FCompilerMessage: string; FSourceManager: TSourceManager; function GetConsole: TListBox; ...
module picprg_config; define picprg_config; define picprg_config_idb; %include 'picprg2.ins.pas'; { ******************************************************************************** * * Subroutine PICPRG_CONFIG (PR, NAME, STAT) * * Configure the library to the specific target chip. NAME is the expected * name of ...
unit Controller.Module.Main; interface uses uniGUIMainModule, SysUtils, Classes, UniGUIVars, uniGUIApplication, View.Module.Main; type TControllerModuleMain = class private type TViewModuleMain = class(View.Module.Main.TViewModuleMain) public constructor Create(Aowner: TComponent; AU...
unit EchoTestClient; interface uses System.Threading; type IEchoTestClient = interface function GetPort: integer; function GetHost: string; function ConnectAndSend(const s: string): IFuture<string>; property Port: integer read GetPort; property Host: string read GetHost; end; function Ne...
namespace Sugar.Test; interface uses Sugar, Sugar.Xml, Sugar.TestFramework; type CharacterDataTest = public class (Testcase) private Doc: XmlDocument; Text: XmlText; CData: XmlCDataSection; Comment: XmlComment; method Data(Node: XmlCharacterData; Content: String); ...
// 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...
{ ******************************************************************************* Title: T2Ti ERP Description: Classe TJsonVO padrão de onde herdam todas as classes de VO The MIT License Copyright: Copyright (C) 2010 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this softwa...
unit GdalDataTypes; {$Z4} // 32bit enum, for compatability with C interface type GDALProgressFunc = Pointer; TArray2Double = array [0..1] of double; type CPLErr = ( CE_None = 0, CE_Debug = 1, CE_Warning = 2, CE_Failure = 3, CE_Fatal = 4 ); //*! Read/Write flag for RasterIO() ...
{ DBE Brasil é um Engine de Conexão simples e descomplicado for Delphi/Lazarus Copyright (c) 2016, Isaque Pinheiro All rights reserved. GNU Lesser General Public License Versão 3, 29 de junho de 2007 Copyright (C) 2007 Fr...
unit server; {$mode objfpc}{$H+} interface uses Classes, SysUtils, blcksock, Synautil; procedure StartServer(Port: String); implementation { Server } procedure AttendConnection(ASocket: TTCPBlockSocket); var timeout: integer; s: string; method, uri, protocol: string; OutputDataString: string; ResultC...
unit Server.Models.Base.Consulta; interface uses //Classes, Generics.Collections; Type TConsultaWhere = class private fValor: String; fCampo: String; fCondicao: String; fSinal: String; function GetSinal: String; function GetCondicao: String; public property Campo:String read fCa...
program Exercicios_3; var i, n : integer; procedure Fibonacci(var termos : integer); var i, n, n1, n2, temp : integer; begin { Primeiros termos de fibonacci } n1 := 0; n2 := 1; writeln('Termo 0: ', n1); writeln('Termo 1: ', n2); for i := 2 to termos do begin temp := ...
{******************************************************************************} { @UnitName : uContainer.pas } { @Project : Common } { @Copyright : Hundsun Electronics Co,.Ltd. ...
//===================================================================// // // // Здесь описаны типы данных необходимые для работы // // с Dynamic Link Libraries (DLL) в Конструкторе Исполнителей. // // Copyright (C) M. Kurnos...
unit ProfessorUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Grids, DBGrids, DB, FMTBcd, SqlExpr; type TProfessoresForm = class(TForm) MenuPanel: TPanel; IncluirButton: TButton; AlterarButton: TButton; ExcluirButton: ...
unit U_Clientes; interface uses U_BaseControl, System.SysUtils, System.Classes; type TCliente = class(TBaseControl) private Fativo: Boolean; Fid: Integer; Fsaldo: Double; Fnome: String; Fcidade: String; Fendereco: String; Festado: String; Ftelefone: String; Fcelular: String;...