text
stringlengths
14
6.51M
unit pFIBPreferences; interface {$I ..\FIBPlUS.INC} uses Windows, Messages, SysUtils, Classes, {$IFDEF D_XE2} Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.ExtCtrls, Vcl.StdCtrls, {$ELSE} Graphics, Controls, Forms, Dialogs, ComCtrls, ExtCtrls, StdCtrls, {$ENDIF} pFIBProps,u...
{ AD.A.P.T. Library Copyright (C) 2014-2018, Simon J Stuart, All Rights Reserved Original Source Location: https://github.com/LaKraven/ADAPT Subject to original License: https://github.com/LaKraven/ADAPT/blob/master/LICENSE.md } unit ADAPT.Collections.Intf; {$I ADAPT.inc} interface uses {$IF...
unit SessionManager; interface uses edbcomps; type TSessionManager = class public session : TEDBSession; constructor Create(userId, password, hostName : String; hostPort : Integer); destructor Destroy; override; procedure Status(Sender: TObject; const StatusMessage: String); procedure OnRemote...
unit Cert_Or_SmallClaimsDuplicatesDialogUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, wwdblook, Db, DBTables, ExtCtrls; type TCert_Or_SmallClaimsDuplicatesDialog = class(TForm) YesButton: TBitBtn; NoButton: TBitBtn; Table: TTable; ...
unit vr_ctrl_utils; {$mode delphi}{$H+} interface uses Classes, SysUtils, Forms, vr_utils, vr_classes, StdCtrls; procedure form_LoadFromIni(const AFileName: string; const AForm: TForm; ASect: string = ''); overload; procedure form_LoadFromIni(const F: IFPIniFileUTF8; const AForm: TForm; ASect: string = ...
{ Double Commander ------------------------------------------------------------------------- Multi-Rename text range selector dialog window Copyright (C) 2007-2020 Alexander Koblov (alexx2000@mail.ru) This program is free software; you can redistribute it and/or modify it under the terms of ...
unit Model.Base; interface uses System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.VCLUI.Wait, Data.DB, FireDAC.Comp.Client; type TdtmdlBase = class(T...
{ @html(<b>) Connection Traffic Limiter @html(</b>) - Copyright (c) Danijel Tkalcec @html(<br><br>) Using this unit, you can set up and activate the network traffic limiter. @html(<br>) Network traffic limiter can limit the number of packets that are actively being sent or received. @html(<br>) ...
unit MD5; interface uses Classes, Common; type TCheckSumFileMD5 = class(TCheckSumFile) protected Fmd5File: string; public constructor Create(AFileName: string); override; procedure ToStringList(slOut: TStringList); override; function SingleFileChecksum(AFileName: string): string...
// // Created by the DataSnap proxy generator. // 2016-01-28 ¿ÀÀü 9:00:25 // unit W_Main_Class; interface uses System.JSON, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System.Classes, System.SysUtils, Data.DB, Data.SqlExpr, Data.DBXDBReaders, Data.DBXCDSReaders, Data.DBXJSONRefl...
unit TestConverter; { AFS 18 Jan 2003 Processor that can specify just one process, not all to run } {(*} (*------------------------------------------------------------------------------ Delphi Code formatter source code The Original Code is TestConverter, released May 2003. The Initial Developer of...
Program Tiny; { Program to compress .COM programs } {$I-} Uses Dos, Crt; Const mdStoreB = 1; mdStoreW = 2; mdDupB = 3; mdDupW = 4; mdDupWord = 5; mdIncB = 6; mdIncW = 7; mdDecB = 8; mdDecW = 9; mdSkipOne = 10; mdCopy...
unit uFormBuscaProduto; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm, uniDBNavigator, uniLabel, uniEdit, uniPanel, uniGUIBaseClasses, uniImageList, uniBasicGrid, uniDBGrid, uniButton, uniBitBtn, Data.D...
unit VA508AccessibilityManagerEditor; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.CheckLst, Vcl.ImgList, Vcl.ComCtrls, Vcl.ToolWin, Vcl.StdCtrls, Vcl.ExtCtrls, VA508AccessibilityManager, ColnEdit; ...
{*******************************************************} { } { Borland Delphi Visual Component Library } { Web server application components } { } { Copyright (c) 2000-2001, Bo...
unit uTestuGraphicPrimitive; { 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, Windo...
unit gzIO; (************************************************************************ Pascal unit based on gzio.c -- IO on .gz files Copyright (C) 1995-1998 Jean-loup Gailly. Define NO_DEFLATE to compile this file without the compression code Pascal translation based on code contributed by Francisco...
UNIT heaps; {$mode objfpc}{$H+} INTERFACE TYPE { T_binaryHeap } GENERIC T_binaryHeap<T>=object TYPE T_entry=record prio:double; payload:T; end; T_payloadArray=array of T; F_calcPrio=FUNCTION(CONST entry:T):double; F_compare =FUNCTION(CONST x,y:T):boolean; private items:array of T_entry; fi...
{=================================================================== NPC Schematics 2016 Tutorial: Halo Schematics by Baharuddin Aziz September 4, 2016 ===================================================================} program halo_schematics; { DEKLARASI VARIABEL } var // input N : integer; // jumlah...
unit TestFileParse; {(*} (*------------------------------------------------------------------------------ Delphi Code formatter source code The Original Code is TestFileParse, released May 2003. The Initial Developer of the Original Code is Anthony Steele. Portions created by Anthony Steele are Copyright (C)...
unit cosmobackground; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtDlgs, PluginTypes, LGPStruct, ExtCtrls, Math, FF7Types; type TfrmCosmoBackground = class(TForm) Scroller: TScrollBox; savBmp: TSaveDialog; opnBmp: TOpenPi...
unit UFrmAssets; interface uses WinApi.Windows, Classes, Generics.Collections, SuperXMLParser, SuperObject, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, UDownloader, Winapi.ActiveX, WinApi.UrlMon, Vcl.Controls, XmlDoc, XMLDom, IdBaseComponent, IdComponent, UFileUtilities, IdTCPConnection, IdTCPClient, IdHTTP, IdIOHa...
{***************************************************************************} { Copyright 2021 Google LLC } { } { Licensed under the Apache License, Version 2.0 (the "License"); } { yo...
unit CreateBasicColors; interface type TColorQueue = (green, red, blue); TRecordCust = record green,red,blue:Integer; end; procedure creatingBasicColors(var MassOfStandart: array of TRecordCust; var N:integer; shift: Integer); implementation procedure Succa(var Clr: TColorQueue); begin clr := succ(clr); i...
PROGRAM Hello(INPUT, OUTPUT); BEGIN REPEAT WRITELN('Hello world!'); UNTIL FALSE;END.
unit ShapeMain; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Db, ADODB, Grids, DBGrids, StdCtrls, ExtCtrls; type TForm1 = class(TForm) ADOConnection1: TADOConnection; Customers: TADODataSet; Orders: TADODataSet; CustSource: TDataSource; OrderSourc...
// // This unit is part of the GLScene Project, http://glscene.org // { : FRTextureEdit<p> Basic editing frame for TGLTexture<p> <b>Historique : </b><font size=-1><ul> <li>05/10/08 - DanB - Removed Kylix support <li>24/03/08 - DaStr - Moved TGLMinFilter and TGLMagFilter from GLUtils.pas to GLGraph...
unit uRestApp; interface uses REST.Client, System.SysUtils, System.Classes, REST.Types, System.JSON; type TRestApp = class private _Client : TRESTClient; _Response : TRESTResponse; _Request : TRESTRequest; Fcharset: string; Fservice: string; Fhost: string; Fencoding: string; Fac...
unit intf_1; interface implementation uses System; type II1 = interface procedure AAA; end; TT1 = class(TObject, II1) procedure AAA; end; var G: Int32; procedure TT1.AAA; begin G := 12; end; var T: TT1; I: II1; procedure Test; begin T := TT1.Create(); I := T; I.AAA(); end; in...
{$F-,A+,O+,G+,R-,S+,I+,Q-,V-,B-,X+,T-,P-,D-,L-,N-,E+} unit Config5; interface procedure cfgMsgAreaEditor; implementation uses Dos, Global, Strings, Config, Output, Input, Menus, Files, Misc, bbsInit, MsgArea, Logs; var maF : file of tMsgAreaRec; procedure cfgInsertMsgArea; var I,X,Z,B : ...
unit adot.Alg.IntegralImage; interface uses System.Generics.Collections, System.Generics.Defaults, System.SysUtils; type { Summed area table. Precalculates sums for very fast calculation of SUM of any area [x1,y1,x2,y2]. https://en.wikipedia.org/wiki/Summed_area_table} TIntegralImageInt64 = record pr...
unit JAList; {$mode objfpc}{$H+} {$i JA.inc} interface uses JATypes; type PJAListItem = ^TJAListItem; TJAListItem = record Data : pointer; Previous : PJAListItem; Next : PJAListItem; end; TJAListItemCallback = function(AItem : PJAListItem) : boolean; { TJAList...
unit Filter1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, DB; type TfmFilterFrm = class(TForm) Label1: TLabel; Label2: TLabel; ListBox1: TListBox; ListBox2: TListBox; Label3: TLabel; Memo1: TMemo; GroupBox1: TGroupBox; ...
unit Devices.ModbusBase; interface uses Windows, GMGlobals, SysUtils, GMConst, StrUtils, Math; const MODBUS_TCP_ANSWER_DATA_START = 9; MODBUS_RTU_ANSWER_DATA_START = 3; procedure Modbus_CRC(var buf: array of Byte; Len: int); procedure Modbus_LRC(var buf: array of Byte; Len: int); function Modbus_CheckCRC(buf:...
unit Ntapi.ntseapi; {$WARN SYMBOL_PLATFORM OFF} {$MINENUMSIZE 4} interface uses Winapi.WinNt, Ntapi.ntdef, Ntapi.ntrtl; const TOKEN_ASSIGN_PRIMARY = $0001; TOKEN_DUPLICATE = $0002; TOKEN_IMPERSONATE = $0004; TOKEN_QUERY = $0008; TOKEN_QUERY_SOURCE = $0010; TOKEN_ADJUST_PRIVILEGES = $0020; TOKEN_ADJU...
program CaeserCipher; //function to encrypt the string procedure encrypt(var input: string); var i: integer; BEGIN //for the length of the string, shift each character for i := 1 to length(input) do case input[i] of //If character is between A and Z, get its alphabetical value by subtracting it from char...
unit uOrder; {$mode objfpc}{$H+} interface uses SynCommons, mORMot, uForwardDeclaration;//Classes, SysUtils; type // 1 订单调整 TSQLOrderAdjustment = class(TSQLRecord) private fOrderAdjustmentType: TSQLOrderAdjustmentTypeID; fOrderId: TSQLOrderHeaderID; fOrderItemSeq: Integer; fShipGro...
{ GS1 interface library for FPC and Lazarus Copyright (C) 2020-2021 Lagunov Aleksey alexs75@yandex.ru This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License,...
unit UnContaCorrenteListaRegistrosModelo; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, FMTBcd, DB, DBClient, Provider, SqlExpr, { helsonsant } Util, DataUtil, UnModelo, Dominio; type TContaCorrenteListaRegistrosModelo = class(TModelo) protected f...
{**********************************************************************} {* Иллюстрация к книге "OpenGL в проектах Delphi" *} {* Краснов М.В. softgl@chat.ru *} {**********************************************************************} unit Unit1; interface use...
{------------------------------------------------------------------------------ This file is part of the MotifMASTER project. This software is distributed under GPL (see gpl.txt for details). This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even th...
unit uControleConfiguracoes; interface // a Unit do Controle conhece a View e conhece o Modelo (neste caso uEmpresa) uses Contnrs, StdCtrls , SysUtils , Grids, MVCInterfaces, uViewConfiguracoes, uViewInclusao,uEmpresa, uSped, uIndicadorOperacoes,uRegistro,UI010, UI100, UI200, UCST, uValidar,uExceca...
unit MemoAuto; { This unit implements TMemoApp, the Application automation object class for the MemoEdit application. TMemoApp is registered as a Single Instance automation class, thus causing a new copy of the application to be run each time an OLE Automation controller asks for an instance of the "Memo.MemoApp...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2014-2019 Embarcadero Technologies, Inc. } { All rights reserved } { ...
{*************************************************************** * * Project : TFTPClient * Unit Name: Main * Purpose : Simple demo of TidFTPClient * Version : 1.0 * Date : Wed 25 Apr 2001 - 01:39:10 * Author : <unknown> * History : * Tested : Wed 25 Apr 2001 // Allen O'Neill <allen_oneill@hotmail.co...
unit ncaFrmConsumidor; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, cxControls, cxContainer, cxEdit, Vcl.StdCtrls, cxRadioGroup, cxLabel, cxBut...
// Copyright 2021 Darian Miller, Licensed under Apache-2.0 // SPDX-License-Identifier: Apache-2.0 // More info: www.radprogrammer.com unit radRTL.ByteArrayUtils; interface uses System.SysUtils; function ConvertToByteArray(const pValue:Integer):TBytes; overload; function ConvertToByteArray(const pValue...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2014-2019 Embarcadero Technologies, Inc. } { All rights reserved } { ...
{Ejercicio 3 Dadas las siguientes declaraciones: CONST N = . . .; . . . TYPE RangoN = 1..N; Tabla = Array[RangoN] OF Integer; Escriba un programa ContarMayores que, dado un entero ingresado por el usuario, cuente e imprima la cantidad de valores almacenados en el arreglo que son mayores que el entero...
unit mRecon; { Monster Speech 1.1.0 written by Chen Yu (monster) E-Mail: mftp@21cn.com ICQ UIN: 6740755 Homepage: http://homepages.msn.com/RedmondAve/mftp/ Suggestions and bug reports are warm welcomed. This file used a Delphi translation of Speech API from Project JEDI, and full package...
//--------------------------------- //----------LOpLib 1.0------------- //----------13.08.2017------------- //-------Maximilian Eckert--------- //--------------------------------- unit LOpLib; {$mode objfpc}{$H+} interface uses Classes, SysUtils, GLU, GL, OpenGLContext; procedure Setup(r, g, b: RE...
unit PlotReaders; interface uses Classes, SysUtils, SpectrumTypes; type TByteSet = set of Byte; TDecimalSeparator1 = (ds1Point, ds1Comma); TOpenDialogKing = (odkSimple, odkTable); TDataReader = class; TDataReaderClass = class of TDataReader; { Параметры добавления графика на ди...
unit Vigilante.Configuracao.Observer.Impl; interface uses System.Generics.Collections, Vigilante.Configuracao.Observer, Vigilante.Configuracao; type TConfiguracaoSubject = class(TInterfacedObject, IConfiguracaoSubject) private FListaObserver: TList<IConfiguracaoObserver>; public constructor Create;...
unit IdSocketHandle; interface uses Classes, IdException, IdGlobal, IdStack, IdStackConsts; type TIdSocketHandle = class; TIdSocketHandles = class(TOwnedCollection) protected FDefaultPort: integer; function GetItem(Index: Integer): TIdSocketHandle; procedure SetItem(Index: Integer; const ...
// testing AND and OR statements PROGRAM test11; VAR a, b, c : integer; BEGIN a := 1; b := 0; c := 1; if (a AND b) then WRITE(a); else WRITE(b); if (a OR b) then WRITE(a); else WRITE(b); if (a AND c) then WRITE(a); else WRITE(b); if (a OR c) then WRITE(...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC DataSnap driver } { } { Copyright(c) 2004-2018 Embar...
{ @html(<b>) Component Registration @html(</b>) - Copyright (c) Danijel Tkalcec @html(<br><br>) All RealThinClient VCL and Non-VCL components are being registered to Delphi component palette using this unit. } unit rtcRegister; {$INCLUDE rtcDefs.inc} interface // This procedure is being called by Delp...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC MySQL driver } { } { Copyright(c) 2004-2018 Embar...
unit UnCategoriaRegistroView; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, JvExStdCtrls, JvEdit, JvValidateEdit, StdCtrls, Grids, DBGrids, JvExDBGrids, JvDBGrid, JvDBUltimGrid, ComCtrls, JvExControls, JvButton, JvTransparentButton, ExtCtrls, { helsonsant...
unit UUtils; interface uses UHash, SysUtils,Classes; {$define _log_} type Utils = class(TObject) private class function isNum(c: char): Boolean; static; public class procedure concat(A: string; B, Target: TStream); overload; static; class procedure concat(A, B, Target: TStream);...
unit uFileBlockStream; interface uses classes, sysutils, forms; type TBufferEvent = procedure (Sender: TObject; var Buffer; Count: Longint; isLast:boolean) of Object; TFileBlockStream = class (TFileStream) private RSobraAnterior: Integer; WSobraAnterior: Integer; RBuffer: PChar...
program Sample; var c: Char; begin WriteLn('type a character and press enter:'); Read(c); WriteLn('got chacter ''', c, ''''); end.
unit TMAbout; { Aestan Tray Menu Made by Onno Broekmans; visit http://www.xs4all.nl/~broekroo/aetraymenu for more information. This work is hereby released into the Public Domain. To view a copy of the public domain dedication, visit: http://creativecommons.org/licenses/publicdomain/ or send a lette...
unit ncVersionInfo; { ResourceString: Dario 13/03/13 } interface uses Windows, SysUtils, Classes; {$I NEX.INC} function GetVersionInfo(fn:String = ''):String; var SelfVersion: String = ''; SelfShortVer: String = ''; ProgShortVer: String = ''; WProgShortVer: Word = 0; implementation type TEXEVersion...
(*Pequeno exemplo do uso de um DBCtrlGrid para um sistema de controle de comandas*) unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DBCtrls, DB, DBClient, ExtCtrls, DBCGrids, Mask, Grids, DBGrids; type TForm1 = class(TForm) DBCtrlG...
unit uDownloads.Service.HTTPDownload; interface uses System.Classes, System.Net.HttpClientComponent, System.IOUtils, System.SysUtils, System.Net.HttpClient; type EErorHTTPDownload = class(Exception) public constructor Create(AcMensagem: String); overload; end; TThreadHTTPDownload = class(TThread) ...
{$I RLReport.inc} unit RLAbout; interface uses SysUtils, Classes, {$ifdef MSWINDOWS} ShellAPI, {$endif} {$ifdef VCL} Windows, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Buttons, {$endif} {$ifdef CLX} Types, Qt, QGraphics, QControls, QForms, QDialogs, QStdCtrls, QExtCtrls, QButt...
unit UCtrlTransportadora; interface uses uController, DB, UDaoTransportadora; type CtrlTransportadora = class(Controller) private protected umaDaoTransportadora : DaoTransportadora; public Constructor CrieObjeto; Destructor Destrua_se; function Salv...
unit u_CommonDef; interface uses Classes; type TExamineMode = (emSingle, emBatch); TExamineStatus = (esReady, esWait, esExecute, esComplete); IExamineItem = Interface; //=================================== IExamineItemUI = Interface ['{E0847D71-7731-48A8-BF5E-A59E37626696}'] function get_Examine...
unit uEngine2DExtend; {$ZEROBASEDSTRINGS OFF} interface uses System.Classes,System.SysUtils,System.Types,System.UITypes,System.UIConsts, FMX.Graphics, FMX.Objects, FMX.Types, uEngine2DObject, uEngineConfig, System.JSON, uGeometryClasses, FMX.Dialogs; Type TObjectStatus = (osStatic,osDynamic,osNone); {TEn...
// // This unit is part of the GLScene Project, http://glscene.org // {: GLCgRegister<p> Registration unit for CG shader.<p> <b>History :</b><font size=-1><ul> <li>11/11/09 - DaStr - Improved FPC compatibility (thanks Predator) (BugtrackerID = 2893580) <li>23/0...
{*******************************************************} { } { Delphi LiveBindings Framework } { } { Copyright(c) 2011-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit cadastro.modelo; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Imaging.pngimage, Vcl.ExtCtrls, Vcl.StdCtrls, Vcl.Buttons, Vcl.ComCtrls, Vcl.Mask, Vcl.Grids, Vcl.DBGrids, Datasnap.Provider, Datasnap....
// ************************************************************************************************** // Delphi Aio Library. // Unit MonkeyPatch // https://github.com/Purik/AIO // The contents of this file are subject to the Apache License 2.0 (the "License"); // you may not use this file except in compliance wi...
unit AppConfiguration; interface uses System.SysUtils, System.Classes, System.JSON, System.IOUtils, System.Generics.Collections; type TAppConfiguration = class private const KeySourceUnits = 'sourceUnits'; KeyReadmeSection = 'bumpReadme'; KeyReadmeFilePath = 'fileName'; KeyReadmeSearchP...
unit FC.Trade.Trainer.ModifyOrderDialog; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ufmDialogOKCancel_B, ActnList, StdCtrls, ExtendControls, ExtCtrls, Menus, ActnPopup, Buttons, Spin, Mask, StockChart.Definitions, FC.Definitions, ufmDialogClose_B,FC.Trade...
unit Artista; interface type TArtista = class procedure Nome; procedure Biografia; procedure Discos; procedure Shows; end; implementation { TArtista } procedure TArtista.Biografia; begin Writeln('Biografia: Quando os jovens Ryan Ross e Spencer Smith pediram guitarra e bateria, respectivamente...
{ *************************************************************************** } { } { Delphi and Kylix Cross-Platform Visual Component Library } { } ...
Program VelkeCislo; { umluva 1: pole[1] ma nejmene dulezitou cislici a pole[MAX] nejvice dulezitou cislici } { umluva 2: kazdy prvek pole obsahuje cislo v rozmezi od 0 po 99 } const MAX = 50; var pole, pole2: array[1..MAX] of integer; i, n : integer; procedure VypisCislo(); var i : integer; begin for i := M...
program SystemSlotsInfo; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes, SysUtils, uSMBIOS { you can add units after this }; function ByteToBinStr(AValue:Byte):string; const Bits: array[1..8] of byte = (128,64,32,16,8,4,2,1); var i: integer; ...
{*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1995,99 Inprise Corporation } { ...
unit classe.Spend; interface uses System.SysUtils; type TSpend = class private FName : String; FSpend : Currency; FDate: TDateTime; procedure SetName(const Value: String); procedure SetSpend(const Value: Currency); procedure SetDate(const Value: TDateTime); public property Name : S...
unit UCondicaoPagamento; interface uses UGenerico, UFormaPagamento, UParcelas; type CondicaoPagamento = class(Generico) protected umaFormaPagamento: FormaPagamento; ListaParcela: array of Parcelas; public p : Integer; Constructor CrieObjeto; Destructor Destrua_Se; ...
unit ComponentsExQuery; 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...
{9. .Scrieti subprograme care rezolva urmatoarele cerinte: a. Determina cel mai mare divizor comun a 2 numere naturale b. Determina cel mai mare divizor al unui numar natural, divizor mai mic decat numarul parametru c. Determina suma divizorilor proprii unui numar dat. Folosind subprogramele de mai sus si altele daca s...
unit AnovoClientePerdidoVendedor; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, Componentes1, ExtCtrls, PainelGradiente, Localizacao, StdCtrls, Buttons, Mask, numericos, UnDados, Constantes, DBKeyViolation; type TFNovoClientePerdidoVendedor = ...
unit Ths.Erp.PersistentObject; interface uses Rtti, StrUtils, Variants, Classes, FireDAC.Comp.Client, FireDAC.VCLUI.Wait, FireDAC.DApt, SysUtils, Ths.Erp.Database; type TPersintentObject = class private FSQL: WideString; function GetValue(const ARTP: TRttiProperty; const AFK: Boolean): String; ...
unit SourceCode; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, StdCtrls, ComCtrls, ExtCtrls, Grids, RichEdit, ShellAPI, Buttons, ToolWin, ImgList, ActnMan, ActnCtrls, ActnMenus, Gauges, ActnList, SyntacticAnalysis, SemanticAnalysis, GenerateObjectCod...
unit TestCharLiterals; { AFS 30 Jan 2000 This unit compiles but is not semantically meaningfull it is test cases for the code formatting utility This unit tests chars and strings } interface implementation uses Dialogs; procedure Chars; const Fred = #80; LineBreak = #13#10; SomeChars = #78#...
{*******************************************************} { } { Delphi DataSnap Framework } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
{ ID:asiapea1 PROG:sprime LANG:PASCAL } var n:byte; function flag(i:longint):boolean; var j:longint; begin flag:=true; if i=1 then begin flag:=false; exit; end; for j:=2 to trunc(sqrt(i)) do if i mod j=0 then begin flag:=false; exit; end; end; procedure sub(...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2012-2018 Embarcadero Technologies, Inc. } { All rights reserved } { ...
//////////////////////////////////////////// // Кодировка и расчет CRC для приборов типа УБЗ-302 и ТР-101 //////////////////////////////////////////// unit Devices.UBZ; interface uses GMGlobals, Windows, Classes, StrUtils, Devices.ReqCreatorBase, GMConst, Devices.Modbus.ReqCreatorBase, Devices.ModbusBase; type TTran...
unit Form.ConnectionDialog; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Form.BaseEditForm, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, dxSkinsCore, dxSkinMetropolis, System.ImageList, Vc...
unit IdTelnet; interface uses Classes, IdException, IdTCPClient, IdThread, IdStack; const { These are the telnet command constansts from RFC 854 } TNC_EOR = #239; // End of Record RFC 885 TNC_SE = #240; // End of subnegotiation parameters. TNC_NOP = #241; // No operation. TNC_DATA_MARK = #242; // The d...
unit NLDQuadrisEdit; interface uses Classes, DesignEditors, DesignIntf; type TThemeProperty = class(TStringProperty) public function GetAttributes: TPropertyAttributes; override; procedure GetValues(Proc: TGetStrProc); override; end; procedure Register; implementation uses NLD...
unit UDaoContasPagar; interface uses uDao, DB, SysUtils, Messages, UContasPagar, UDaoFornecedor, UDaoFormaPagamento, UDaoUsuario; type DaoContasPagar = class(Dao) private protected umaContasPagar : ContasPagar; umaDaoFornecedor : DaoFornecedor; umaDaoUsu...
UNIT mySys; INTERFACE USES dos,myGenerics,sysutils,Process, {$ifdef Windows} windows, ActiveX, ComObj, Variants, {$endif} FileUtil,Classes,LazUTF8; TYPE T_fileAttrib=(aExistent , aReadOnly , aHidden , aSysFile , ...
unit SortIntArrayBenchmark2Unit; {$mode delphi} interface uses Windows, BenchmarkClassUnit, Classes, Math; type TQuickSortIntArrayThreads = class(TFastcodeMMBenchmark) public procedure RunBenchmark; override; class function GetBenchmarkName: string; override; class function GetBenchmarkDescription: ...