text
stringlengths
14
6.51M
unit URetornoNfe; interface uses Classes, SysUtils, principal, auxiliar,StrUtils; type TRetornoNfe = class protected _separador: String; _caminho: String; _arquivos: TStringList; private function getCaminho: String; function getSeparador: String; public arq: TextFile; qVenda: TCla...
{******************************************************************************* Title: T2Ti ERP Description: VO relacionado à tabela [CENTRO_RESULTADO] The MIT License ...
unit nixprocess; interface Uses Classes, pipes, ctypes, UnixType, Unix, Baseunix, TermIO, SysUtils; Type TProcessOption = (poRunSuspended,poWaitOnExit, poUsePipes,poStderrToOutPut, poNoConsole,poNewConsole, ...
unit fmuTimeSync; interface uses // VCL Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, PngBitBtn, ExtCtrls, DateUtils, // Tnt TntStdCtrls, TntSysUtils, // This BaseForm; type TfmTimeSync = class(TBaseForm) lblTimeSync: TTntLabel; Label1:...
unit IRCServer; {------------------------------------------------------------------------------- | The MyWormNET IRC server unit. | (C) CyberShadow - 2006-2008 | (C) StepS - 2013-2014 |------------------------------------------------------------------------------- | FEATURES: | | - Start and manage the IRC se...
// auteur : Djebien Tarik ( tarik.djebien@etudiant.univ-lille1.fr) // date : novembre 2009 // objet : opérations sur la structure de donnée lineaire de type Liste, // cas particulier des listes circulaires. // ladd((1,2,3),4) = (1,2,3,4) // tel que (1->2->3->1) => (1->2->3->4->1) procedure ladd(var L: LISTE; E: ...
unit TreibGestaenge; {$mode objfpc}{$H+} interface uses Classes, SysUtils, dglOpenGL, MyMath, Mesh, Stange,Zylinder; type { TTreibGestaenge } TTreibGestaenge = class(TObject) private fKreuzKopf_x, fTreibZapfen_R: single; KuppelStange, Treibstange, KolbenStange: TStange; Kolben: TKolben; publ...
unit neato.XV.RestoreDefaults; interface uses fmx.dialogs, classes, sysutils, neato.Commands, neato.errors, neato.helpers; const // Command to send sRestoreDefaults = 'RestoreDefaults'; sDescription = 'Restore user settings to default.'; type tRestoreDefaultsXV = class(tNeatoBaseCommand) strict private ...
unit GTezgahDegistir; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, GSablon, cxGraphics, cxGridCustomPopupMenu, cxGridPopupMenu, Menus, cxEditRepositoryItems, cxEdit, cxPropertiesStore, cxStyles, cxContainer, DB, ADODB, ImgList, dxBar, dxBarExtItems, cxCh...
{ Judul } Program Distances; {I.S. : User memasukkan jarak dalam centimeter} {F.S. : Menampilkan jarak dalam bentuk kilometer, meter dan centimeter} { Kamus } var Jarak, SisaJarak, KiloMeter, Meter, CentiMeter : longint; { Algoritma } begin { Masukkan } writeln('Masukkan Perjalanan sejauh (centimeter) : '); ...
unit TestDelphiVersionGuess; interface uses TestFramework; type TestDelphiDelphiVersionGuess = class(TTestCase) published procedure Should_guess_Delphi6; procedure Should_guess_DelphiXE2; end; implementation uses Utils; { TestDelphiDelphiVersionGuess } procedure TestDelphiDelphiVersionGues...
{ File: QD/QDPictToCGContext.h Contains: API to draw Quickdraw PICTs into CoreGraphics context Version: Quickdraw-262~1 Copyright: © 2001-2008 by Apple Computer, Inc., all rights reserved. Bugs?: For bug reports, consult the following page on the World ...
(********************************************************) (* *) (* Codebot Pascal Library *) (* http://cross.codebot.org *) (* Modified October 2015 *) (* ...
unit UntFrmSendUsers; 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.ListBox, CommunicationTypes, CommunicationConst, ConfigConst, UntCommand, UntCmdConnect, UntClientSession, ...
program pas2js_build; {$mode objfpc}{$H+} uses Interfaces, {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes, SysUtils, CustApp, CompWriterJS, fpjson, jsonparser,LResources,WebCtrls, process { you can add units after this }; type { TPas2JSBuild } TPas2JSBuild = class(TCustomAppli...
unit PatientHomeForm; { Copyright (c) 2018+, 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 c...
{ TSaveComps Component Version 1.4 - Suite GLib Copyright (©) 2020, by Germán Estévez (Neftalí) Permite guardar la posicion de todos los controles que se encuentran en el formulario. Utiliza un fichero INI. Es indispensable para grabar la posición de un componente que tenga definida la propiedad Name ...
{******************************************************************************* Title: T2Ti ERP Description: Controller do lado Servidor relacionado à tabela [CONTRATO] The...
unit MockM5ScaleDevice; interface uses // VCL SysUtils, // Mock PascalMock, // This M5ScaleTypes; type { TMockM5scaleDevice } TMockM5scaleDevice = class(TMock, IM5scaleDevice) private FPassword: Integer; FCommandTimeout: Integer; public function LockKeyboard: Integer; function Un...
unit fCustomRomData; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, VirtualTrees, Mask, JvExMask, JvToolEdit, fjWinFontForm; type TFrmROMData = class(TJWinFontForm) PGCustom: TPageControl; lblTitle: TLabel; TabIntro: TTabShee...
unit frmSettings; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.IniFiles; type TForm2 = class(TForm) Edit1: TEdit; Label3: TLabel; Button1: TButton; Button2:...
unit oglFontTextur; {$mode objfpc}{$H+} interface uses Classes, SysUtils, TypInfo, LCLType, LazUTF8, LConvEncoding, Graphics, IntfGraphics, GraphType, Dialogs, oglVAO, dglOpenGL, BGRABitmap, BGRABitmapTypes, BGRAGradientScanner, oglShader, oglLightingShader, oglMatrix, oglVBO, oglTextur...
{******************************************************************************* Title: T2Ti ERP Description: VO relacionado à tabela [VENDA_ROMANEIO_ENTREGA] The MIT Lice...
unit BSPInter; interface uses Windows, Dialogs, ShellAPI, classes, Sysutils, NBioAPI_Type; const //NBioAPI_USE_DEFAULT_TIMEOUT NBioAPI_USE_DEFAULT_TIMEOUT = -1; var // 'NBioBSP.dll' g_hNBioBSP : THandle; // 'NImgConv.dll' g_hNImgConvert : THan...
unit MainForm; interface uses Windows, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, ScapeTranslate, ScapeTranslateList; type TMainForm = class(TForm) edText: TMemo; btnAdd: TButton; edScape: TEdit; edRepresentation: TEdit; lblItem: TLabel; btnApply: TButt...
{ Private include file for modules implementing the MDEV library. } %include 'sys.ins.pas'; %include 'util.ins.pas'; %include 'string.ins.pas'; %include 'file.ins.pas'; %include 'hier.ins.pas'; %include 'mdev.ins.pas'; type mdev_read_t = record {state for reading one MDEV file} md_p: mdev_p_t; ...
unit UAttributes; interface type TTipo = (tpSemDeclarar, tpBoleano, tpDataTime, tpCurrency, tpFloat, tpInteger, tpString, tpByte, tpTime, tpData, tpVariant, tpJsonb); type TabelaAttribute = class(TCustomAttribute) private Fnome: string; public constructor Create(pNome: string); property nome:...
{----------------------------------------------------------------------------- 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.html...
{******************************************************************************* Title: T2Ti ERP Description: Unit de controle da tabela CONTAS_PARCELAS The MIT License Copyright: Copyright (C) 2010 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
{******************************************************************************} { CnPack For Delphi/C++Builder } { 中国人自己的开放源码第三方开发包 } { (C)Copyright 2001-2008 CnPack 开发组 } { ...
unit HCommonAPI.Intercept; interface uses HCryptoAPI.Types; type HCommon_InterceptFunc_OnRead = procedure(var Bytes: TBytesArray; Sender: TObject); HCommon_InterceptFunc_OnWrite = procedure(var Bytes: TBytesArray; Sender: TObject); HCommon_InterceptFunc_OnReadO = procedure(var Bytes: TBytesArray; S...
unit SDAImagem; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TSDAImagem = class(TImage) private FOnPicture: TPicture; FOffPicture: TPicture; { Private declarations } protected procedure SetOnPicture (Value: TPicture); ...
{******************************************************************************* Title: T2Ti ERP Description: Módulo de dados. The MIT License Copyright: Copyright (C) 2010 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
//Tests functions //output: a multiplied by 5 is 25.0 program test12; var a : real; function MultiplyBy5(a : real) : real; var begin MultiplyBy5 := a * 5; end; begin a := MultiplyBy5(5); writeln('a multiplied by 5 is ', a); end.
unit fsl_tests_iduri; { 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 c...
(* Origian : Turbocash 4.0.1.0 changed for osFinacials fork 2006/06/12 Pieter Valentijn Released under the GNU General Public License *) unit SelectAccountType; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, ComCtrls, cxGraphics, cxCont...
unit CChangePasswordFormUnit; interface {$WARN UNIT_PLATFORM OFF} uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, CProgressFormUnit, ImgList, PngImageList, ComCtrls, CComponents, StdCtrls, Buttons, ExtCtrls, CDatabase; type TCChangePasswordForm = class(TCProgressForm...
{ ---------------------------------------------------------------------------- FTDI D2XX class wrapper Copyright (c) Michael "Zipplet" Nixon 2009. Licensed under the MIT license, see license.txt in the project trunk. Unit: FTDIchip.pas Purpose: FTDI chip class ---------------------------------------...
unit UAddFiles; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls; type TAddFilesFrm = class(TForm) FileLst: TListView; Button1: TButton; Button3: TButton; Button4: TButton; Button5: TButton; Button6: TButton; procedure Butto...
unit uJUtilities; interface uses Windows, Forms, SysUtils, Graphics, ComCtrls, Dialogs, Classes, Registry; type EJException = class(Exception); EJWarning = class(Exception); EJNotice = class(Exception); FontRec = packed record Color: TColor; LogFont: TLogFont; end; {Function Declarations} pr...
{ This file is part of the Free Pascal run time library. Copyright (c) 2014 by Free Pascal development team iffparse.library functions See the file COPYING.FPC, included in this distribution, for details about the copyright. This program is distributed in the hope that it will be useful, ...
unit BCCommon.Messages; interface uses System.UITypes; function AskYesOrNo(Msg: string): Boolean; function AskYesOrNoAll(Msg: string): Integer; function MessageDialog(const Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons): Integer; overload; function MessageDialog(const Msg: string; DlgType: T...
unit LogosWSIntf; interface uses InvokeRegistry, Types, XSBuiltIns; type ILogosWS = interface(IInvokable) ['{F834357E-A7C6-4C81-B028-1A1A0A3B9176}'] function AutenticaUsuario(pDsLogin : WideString; pDsSenha : WideString; var pCdUsuari: Inte...
unit TestCouch; { 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, IdHttp, System.Gen...
{*-----------------------------------------*) * The Swinging Sixties Game Engine * * Texture Unit * * (C) Aukiogames 2002 * (*-----------------------------------------*} unit TssTextures; interface uses Windows, SysUtils, Classes, Direct3D8, D3DX8, TssFiles,...
{------------------------------------------------------------------------------------------------------------------------ This software is distributed under MPL 2.0 https://www.mozilla.org/en-US/MPL/2.0/ in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTA...
// FPC-3.2.0,LCL-2.0.12, WIN10\CE *** ModeLessFrm.pas *** // **************************************************************************** // * Проверить поиск, показ и закрытие окон в Windows10 и WindowsCE * // ****************************************************************************...
unit RenderWindow; interface uses Windows, Classes, extctrls, Messages, stdctrls, controls, SysUtils, Forms, Menus, Graphics, Dialogs; type TD3DWindow = class(TCustomControl) private FOnPaint: TNotifyEvent; procedure WMPaint(var Message: TWMPaint); message WM_PAINT; protected FTBar: TPanel; F...
(* * Copyright (c) 2011, Linas Naginionis * Contacts: lnaginionis@gmail.com or support@soundvibe.net * 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 m...
unit RCSEvents; interface uses // VCL Windows, ActiveX, ComObj, // This RCSEvents_TLB, OposEvents, FileUtils; type { TRCSEvents } TRCSEvents = class(TAutoIntfObject, IRCSEvents) private FEvents: IOposEvents; public constructor Create(AEvents: IOposEvents); destructor Destroy; override; ...
unit uPagtoparc; interface uses Classes, SysUtils, mCollection, mCollectionItem; type TPagtoparc = class; TPagtoparcClass = class of TPagtoparc; TPagtoparcList = class; TPagtoparcListClass = class of TPagtoparcList; TPagtoparc = class(TmCollectionItem) private fCd_Dnapagto: String; fNr_Parc...
unit UVehicle; interface uses DXSprite, DXDraws, DXInput, SysUtils; type TControlSet = Record up: TDXInputState; down: TDXInputState; left: TDXInputState; right: TDXInputState; end; TVehicle = class(TImageSprite) private ...
unit uProdutos; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.StdCtrls, Vcl.ExtCtrls, System.UITypes; type TProduto = class private fCodigo: Integer; fDescricao: string; fValorCusto: Double; fValorVenda: Doubl...
unit BankCardReader; (******************************************************************************* * 设备:银联读卡器(创自CRT-310) * 动态库:TTReaderCard.dll(此动态库文件大小:1309KB/1.27MB) *******************************************************************************) interface uses System.SysUtils, System.Classes, Windows, Form...
unit frxQRCodeRtti; interface implementation uses DelphiZXingQRCode, Windows, Classes, SysUtils, Forms, fs_iinterpreter, frxQRCode, frxClassRTTI {$IFDEF Delphi6} , Variants {$ENDIF}; {TQRCodeEncoding And Variant} function TQRCodeEncodingToVariant(value:TQRCodeEncoding):OleVariant; Begin Result := Ord(value); ...
unit FormCoordSysTrans; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Math; type TfrmCoordSysTrans = class(TForm) GroupBox1: TGroupBox; GroupBox2: TGroupBox; ledtSDX: TLabeledEdit; ledtSDY: TLabeledEdit; ledtSDZ: TLabe...
unit frame.XV.GetDigitalSensors; interface uses frame.master, dmCommon, fmx.objects, neato.XV.GetDigitalSensors, 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.TabCo...
unit Dictionary; interface uses System.SysUtils; function Translate(aLanguage: Integer; aCode: String): String; function CountryNameByCode(aCode: String): String; function OperatorNameByCode(aCode: String): String; const Translates: array[0..231,0..2] of string = ( ('ApplicationCaption', 'Конфигуратор',...
unit uTRBaixaChequeModel; { //table : CREATE TABLE TITULO_RECEBER_BAIXA_CHEQUE ( ID_TITULO_RECEBER_BAIXA_CHEQUE VARCHAR(36) NOT NULL, ID_ORGANIZACAO VARCHAR(36) NOT NULL, ID_TITULO_RECEBER_BAIXA VARCHAR(36), ID_BANCO VARCHAR(36), ID_LOTE_DEPOSITO ...
unit UnitDefinitionStanceEdit; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, RzButton, RzPanel, Vcl.ExtCtrls, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, Data.DB, Mem...
unit DW.DESIGN.AppWizard; interface uses Classes, System.SysUtils, Vcl.Dialogs, ToolsAPI, ExpertsModules; type TDWAppWizard = class(TInterfacedObject, IOTAWizard, IOTANotifier, IOTARepositoryWizard, IOTAProjectWizard) public // IOTANotifier procedure AfterSave; procedure BeforeSave; procedure...
unit UMostraErros; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, Buttons, uVarGlobais, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, uUtil, EMsgDlg, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, ...
unit bundlebuilder; { Copyright (c) 2011+, HL7 and 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 so...
(* Origian : Turbocash 4.0.1.0 changed for osFinacials fork 2006/06/12 Pieter Valentijn Released under the GNU General Public License *) unit EditReceipts; interface uses Windows, Messages, SysUtils, Variants,Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, Buttons, ExtCtrls, Mask, Im...
{ Copyright (c) 2014, Steven Conrad Harrison All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions...
unit TestPackageInfo; interface uses TestFramework, Classes, StrUtils, PackageInfo; type // Test methods for class TPackageInfo TestTPackageInfo = class(TTestCase) strict private FPackageInfo: TPackageInfo; base1, base2: TPackageInfo; ...
unit Fontdlg; {$include ..\..\source\htmlcons.inc} interface uses SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Spin, Buttons, StyleUn, HTMLUn2, Htmlview; type TFontForm = class(TForm) BackgroundColorButton: TSpeedButton; BackgroundColorComboBox: TComboBox; BackgroundColorLabel:...
unit ray4laz_simplePrj; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, LazIDEIntf, ProjectIntf, MenuIntf, SrcEditorIntf; type { TRay4LazSimpleProjectDescriptor } TRay4LazSimpleProjectDescriptor = class(TProjectDescriptor) public constructor Create; override; function GetLocalizedName: st...
unit EntityMSSQL; interface uses Atributies, AutoMapper, sysutils, classes, strUtils, EntityConnection, Dialogs, CustomDataBase; type TMSSQL = class(TCustomDataBase) private function AlterColumn(Table, Field, Tipo: string; IsNull: boolean): string ;override; public function CreateTable( List: TList...
unit TJCDatabase; { TJCDb je databaze jizdnich cest. } interface uses TechnologieJC, Block, IniFiles, SysUtils, Windows, IdContext, System.Math, Generics.Collections, Classes, BlockDb, BlockSignal; type EJCIdAlreadyExists = class(Exception); EJCInvalidPath = class(Exception); TJCBlockFinder = function(jc...
{----------------------------------------------------------------------------- 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.html...
unit ufmListaReferencias; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, JvExStdCtrls, JvListBox, JvPlaylist, uEntornoEjecucion, Grids, JvExGrids, JvGrids, JvTextListBox, Buttons, Menus, JvgListBox, JvgStringGrid, JvgInspectorGrid, JvComboListBox, ...
unit MainMenuFrame_frm; 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.Objects, FMX.Effects, FMX.ListBox; type TMainMenuFrame = class(TFrame) Menu: ...
{******************************************************************************} { } { Delphi JOSE Library } { Copyright (c) 2015-2021 Paolo Rossi ...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 1995-2017 Embarcadero Technologies, Inc. } { All rights...
unit AppBar; interface uses System.Classes, System.Types, Vcl.Controls, Vcl.Forms, Winapi.Windows, Winapi.Messages; const // AppBar's user notification message WM_APPBARNOTIFY = WM_USER + 100; SLIDE_DEF_TIMER_INTERVAL = 400; type TAppBarMessage = (abmNew, abmRemove, abmQueryPos...
unit DW.VCl.Dialogs; interface uses Classes, SysUtils, Controls, DW.VCl.Modal, DW.VCl.Region, DW.VCl.Labels, DW.VCl.Buttons, DW.VCl.CustomForm, DW.VCl.CustomRegion, DWElementTag; type TDWDialogCloseButton = (iwbsdcNone, iwbsdcCaption, iwbsdcFooter, iwbsdcBoth); TDWDialog = class(TDWModal) private FConte...
program ordenar_arreglo; const fisica = 100; type vect = array [1..fisica] of integer; procedure printVect(v:vect); var i:integer; begin for i := 1 to 100 do begin writeln(v[i]); end; writeln(); end; procedure randomVect(var v: vect); var i: integer; begin Randomize; for i :=...
unit Ssh2Client; { Copyright (c) 2020 Kiriakos Vlahos (PyScripter) Delphi wrapper of libssh2 (https://www.libssh2.org/) The C header translation and the SFTP implementation draw from https://bitbucket.org/ZeljkoMarjanovic/libssh2-delphi Copyright (c) 2010, Zeljko Marjanovic (MPL 1.1) ...
unit BestTimeUnit; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, crc; const IniFileName = 'Mines.prefs'; PrefsMagic = $55211255; type TGameRecord = record Time: Int64; Played: Int64; Win: Int64; Lost: Int64; end; TFileRecor...
{ UnicodeSet implementation. Copyright (c) 2013-2015 by Inoussa OUEDRAOGO The source code is distributed under the Library GNU General Public License with the following modification: - object files and libraries linked into an application may be distributed without source code. I...
unit ConfigForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtDlgs, Vcl.ComCtrls, Vcl.ExtCtrls, System.Actions, Vcl.ActnList, TrueConf_CallXLib_TLB, Vcl.Imaging.pngimage, Vcl.Samples.S...
Unit UCNumeroNatural; interface Uses sysUtils,math; Type CNumeroNatural = class Private Valor:Cardinal; Public Constructor Crear; Procedure AsignarValor(NuevoValor:Cardinal); Procedure InsertarDigito(Posicion:Byte; Digito:byte); Proced...
unit SDACtrlGridButtons; interface uses Windows, SysUtils, Classes, Controls, DB, Messages, Graphics, ExtCtrls, DBClient, Dialogs, Forms, stdCtrls, uSDADataSet, uSDAClientDataSet, Variants, Buttons; type TSdaCtrlGrid = class; TStateSdaCtrlGrid = (ssBrowse, ssInsert, ssEdit, ssInactive); ...
// Direct Oracle Access - Oracle/Thread demo // Allround Automations // support@allroundautomations.nl // http://www.allroundautomations.nl // // This application demonstrates: // - Using threads to execute queries simultaneous // - Creating TOracleQuery dynamically unit ThreadUnit; interface uses Windows, Message...
{$M+} unit PanamahSDK.Models.Holding; interface uses Classes, SysUtils, PanamahSDK.Types, PanamahSDK.Enums, Variants, uLkJSON; type IPanamahHolding = interface(IPanamahModel) ['{081B3190-7736-11E9-A131-EBAF8D88186A}'] function GetId: string; function GetDescricao: string; procedure SetId(const...
unit DTF.Config.IniLoader; interface uses DTF.Config.Types, DTF.Service.Config, System.SysUtils, System.IniFiles, System.Rtti; type TIniConfigLoader = class(TConfigLoader) private FIniFile: TIniFile; FFilename: string; procedure CreateIniFile; protected function ReadValue(const ASec...
{$r-,q-,s-,n+,g+} program FenQuPrepare_Day5_Task2_FQ2000P2; const fn_in='input.txt'; maxn=40; maxk=6; maxhpsize=50; type hp=record len:integer;s:array[1..maxhpsize] of integer;end; var n,k:longint; h:array[0..maxn] of hp; st:string; procedure PrintHP(const x:hp); var i:Integer; begin for i:=x...
unit Unit1; interface uses Forms, Classes, Controls, StdCtrls, Messages; type // Example of a TWinControl derived control TGroupBoxEx = class(TGroupBox) protected procedure CreateParams(var params: TCreateParams); override; procedure WMEraseBkGnd(var msg: TWMEraseBkGnd); message WM_ERASEBKGND; ...
{----------------------------------------------------------------------------- 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.html...
module mdev_lib; define mdev_lib_start; define mdev_lib_end; %include 'mdev2.ins.pas'; { ******************************************************************************** * * Local subroutine MDEV_INIT (MD) * * Initialize all the fields in the library use state MD except the MEM_ field. } procedure mdev_init ( ...
{------------------------------------------------------------------------------- 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 musnsnd; interface const FOR_MAIN=0; FOR_ANIM=1; var no_music,no_sound:boolean; p:pointer; volume_level:byte; current_tune:byte; {musica correntemente in play} sound_length:word; procedure init_Sound_Blaster; procedure setta_volume(value:byte); procedure dealloca_S3M; proced...
unit uDlgSelContacts; interface uses SysUtils, Windows, Messages, Classes, Graphics, Controls, StdCtrls, ExtCtrls, Forms, ComCtrls, Buttons, ImgList, uFraContact; type TdlgSelContacts = class(TForm) iltPhoneBook: TImageList; lblCategory: TLabel; lvwCategory: TListView; lvwContacts: TListView; ...
program Puzzle2; uses Math; const RowCodeLen = 7; ColCodeLen = 3; (* aka Power(2, (RowCodeLen + ColCodeLen)), but that is now working in constant declaration. *) NoSeats = 1 << (RowCodeLen + ColCodeLen); var InFile: Text; Line: string; I: word; Seats: array[1..NoSeats] of boole...
unit untUtil; interface uses // VCL Windows, Classes, SysUtils, Registry, Controls, StdCtrls, // Tnt TntClasses, TntStdCtrls, TntRegistry; procedure CreatePorts(Strings: TTntStrings); procedure DeleteRegKey(const KeyName: WideString); procedure EnableButtons(WinControl: TWinControl; Value: Boolean; var AButt...
unit ModelovyCas; { Tato unta se stara o modelovy cas. Modelovy cas je odesilan jako broadcast vsem panelum (nikoliv oblastem rizeni - viz specifikace Protokolu). Modelovy cas pocita server i klient separatne. Kazde 3 minuty odesle server informaci o aktualnim modelovem casu a tak provede synchonizaci cas...
PROGRAM LAB03; VAR HEIGHT: REAL; WIDTH: REAL; PI: REAL; RAREA: REAL; SAREA: REAL; AREA: REAL; BEGIN PI:=3.14159; READ (HEIGHT); READ(WIDTH); RAREA:=HEIGHT*WIDTH; SAREA := PI * WIDTH * WIDTH / 8.0; AREA := RAREA - SAREA; WRITE (' INPUT VALUES: '); WRITE(HEIGHT); WRITE (WIDTH); W...
unit BackEnd; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, DBTables, Db, ExtCtrls, BDE; type TLogInStatus = (lsJustLoggedIn, lsAlreadyLoggedIn); TAddAction = (aaAddTo, aaReplace); TSearchResults = (srFoundOne, srFoundMultiple, srFoundNone); TAddToWhereOperator ...
unit DaBinAdapterConverter; interface uses CompConverterTypes, CompConverter, System.SysUtils, System.Classes, Vcl.Forms; type TConverterDABA = class(TConverter) protected function GetTargetCompClassName: string; override; function GetConvertCompClassName: string; override; // 컴포넌트 변경 function...