text
stringlengths
14
6.51M
Program media_aluno_rep_ap; {Faça um programa que receba duas notas, calcule e mostre a média aritmética e a mensagem que se encontra na tabela a seguir: 0,0 - 3,0 - Reprovado 3,0 - 7,0 - Exame 7,0 - 10,0 - Aprovado } var n1, n2, media : real; Begin write('Nota 1: '); readln(n1); write('Nota 2: '); readln(n2); media :...
unit PublicFacility; interface uses Protocol, Kernel, Population, Classes, Collection, BackupInterfaces, Accounts, WorkCenterBlock; type TPFInfoDef = record Kind : string; Strength : integer; end; function PFInfoDef( Kind : string; Strength : integer ) : TPFInfoDe...
unit MoveFav; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ImgList, StdCtrls, ComCtrls, FramedButton, ExtCtrls, FavView, VoyagerServerInterfaces, InternationalizerComponent; type TMoveFavDlg = class(TForm) BorderPanel: TPanel; Panel2: TPanel; BtnsPanel:...
{ Double Commander ------------------------------------------------------------------------- Content plugin search control Copyright (C) 2014-2018 Alexander Koblov (alexx2000@mail.ru) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Li...
unit SpeedButtons; interface uses WinTypes, WinProcs, OWindows, WIN31, Strings, Generics, Aligner; const STATESCONT = 3; WM_SPEEDBUTTON = wm_User + $0001; type PSpeedButton = ^TSpeedButton; TSpeedButton = object(TGeneric) private Bitmap: HBitmap; Origin: TPoint; Size: TPoi...
unit WorkflowView; interface uses Xmldoc, XmlIntf, Generics.Collections, SysUtils, ActionHandler, Classes; const XML_ROOT = 'View'; XML_FOLDER = 'Folder'; XML_ITEM = 'Item'; XML_ATTR_NAME = 'name'; XML_ATTR_VISIBLE = 'true'; type TViewWorkSpace = class; TViewFolder = class; TViewItem = class; T...
unit uSubGrupo; interface uses System.Classes, Vcl.Controls, Vcl.ExtCtrls, Vcl.Dialogs, ZAbstractConnection, ZConnection, ZAbstractRODataset, ZAbstractDataset, ZDataset, System.SysUtils; type TSubGrupo = class private ConexaoDB:TZConnection; F_SubGrupo_cod: Int...
unit dcDispLabel; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DataController, dbctrls, db; type TdcDispLabel = class(TLabel) private { Private declarations } fdcLink : TdcLink; fTranData : String; protected ...
unit frmALTRun; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, AppEvnts, CoolTrayIcon, ActnList, Menus, HotKeyManager, ExtCtrls, Buttons, ImgList, ShellAPI, MMSystem, frmParam, frmAutoHide, untShortCutMan, un...
const max = 20; type vector = array [1..max] of word; function BiSearch (const a: vector; const n: byte; const key: word):integer; var left, right, i, find:byte; flag:boolean; begin flag:=true; find:=0; left:=1; right:=n; for var j:=2 to n do if (a[j] < a[j-1]) then flag:=false; ...
unit Parser; interface uses Classes; type TUCICommand = ( cmdUCI, cmdQuit, cmdNewGame, cmdPositionFen, cmdPositionStartPos, cmdGo, cmdIsReady, cmdStop, cmdUnknown ); TUCICommandParser = class //private moves: TStringList; positi...
unit PluginManager; interface uses Windows, SysUtils, Classes; type EPluginManagerError = class(Exception); EPluginLoadError = class(EPluginManagerError); EPluginsLoadError = class(EPluginLoadError) private FItems: TStrings; public constructor Create(cons...
unit ExportBySizeAndMain; {* Экспорт, разделённый по размеру и мейну (мейн - в шаблонах имён файлов) } // Модуль: "w:\archi\source\projects\ImportExportTest\ExportBySizeAndMain.pas" // Стереотип: "TestCase" // Элемент модели: "ExportBySizeAndMain" MUID: (55FFF13302B8) // Имя типа: "TExportBySizeAndMain" {$Include w:...
unit xn.grid.link; interface uses xn.grid.common, xn.grid.data; type TxnGridLink = class(TInterfacedObject, IxnGridData) private fDataSort: TxnGridDataSort; fDataFilter: TxnGridDataFilter; public constructor Create(aGridData: IxnGridData; aFilterItems: IxnGridFilterItems; aSortItems: Ix...
unit uQueueThread; interface uses SysUtils, Classes, uInterfaceListExt, SyncObjs; type TQueueThread = class; TQueueItemProcessEvent = procedure (AQueueThread: TQueueThread; AItem: IInterface) of object; TQueueThread = class(TThread) private FCurrentItem: IInterface; FItemDelay: Integer; FOnPr...
unit uTags; { Copyright 2020 Dmitriy Sosnovich, dmitriy@sosnovich.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to...
{ ***************************************************************************** * * * This file is part of the iPhone Laz Extension * * * *...
unit cVisit; interface uses cpac, cDoctor, cDiagnoses, fDM; type TVisit =Class public id:integer; dateVisit:Tdate; Pac:TPacient; Doc:TDoctor; Diag:TDiagnoses; procedure Get(Find_id: integer); procedure New; procedure Change; procedure Del(Find_id: integer); constructor Create; de...
unit ctFakeBoxStrings; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Библиотека "VT" // Автор: Люлин А.В. // Модуль: "w:/common/components/gui/Garant/VT/ComboTree/ctFakeBoxStrings.pas" // Начат: 07.07.2008 23:02 // Родные Delphi интерфейс...
unit Model.ExtratosExpressas; interface uses Common.ENum, FireDAC.Comp.Client, System.Classes; type TExtratosExpressas = class private var FId: Integer; FAgente: Integer; FEntregador: Integer; FDataInicio: TDate; FDataFinal: TDate; FDataPagamento: TDate; FVolumes: Integer; FEntr...
unit Literals; interface procedure SetBasePath(const transfilespath : string); procedure SetLanguage(languageid : integer); function GetLiteral(const id : string) : string; function GetFormattedLiteral(const id : string; const Args : array of const) : string; implementation uses Classes, Windows, Sy...
unit DVBNetworkForma; {$I defines.inc} interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DB, FIBDataSet, pFIBDataSet, OkCancel_frame, FIBDatabase, pFIBDatabase, StdCtrls, DBCtrls, Mask, DBCtrlsEh, ExtDlgs, uDBImages; type TDVBNetworkForm = class(TForm) O...
{ *************************************************************************** Copyright (c) 2016-2019 Kike Pérez Unit : Quick.RTTI.fpc.Compatibility (only freepascal) Description : Delphi compatibility RTTI functions Author : Kike Pérez Version : 1.0 Created : 20/08/2018 Modified ...
unit Model.PlanilhaEntradaTFO; interface uses Generics.Collections, System.Classes, System.SysUtils; type TPlanilhaEntradaTFO = class private FContainer: String; FLogradouro: String; FPrevisao: String; FPeso: String; FCodigoDestino: String; FBairro: String; FAltura: St...
unit CoreTypes; interface uses Classes; type IEnumStrings = interface function Next(out which : array of string) : integer; function Skip(count : integer) : integer; procedure Reset; end; type IEnumClasses = interface function Next(out which : array of TClass) : integer;...
(* Gomoku-Computerspieler von Sabine Wolf, q5999219@bonsai.fernuni-hagen.de, Version vom 7.9.02 *) unit q5999219; interface type tStatus = ( EINS_AM_ZUG, ZWEI_AM_ZUG, EINS_GEWINNT, ZWEI_GEWINNT, UNENTSCHIEDEN, UNDEFINIERT ); procedure gibStatus ( var Status: tStatus ); (* Der S...
unit eAtasOrais.view.principal; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Layouts, FMX.Objects, FMX.ListBox, FMX.Edit, FMX.SearchBox, FMX.Effects, FM...
unit udmDadosAverbaCli; interface uses System.SysUtils, System.Classes, udmPadrao, DBAccess, IBC, Data.DB, MemDS; type TdmDadosAverbaCli = class(TdmPadrao) qryLocalizacaoCNPJAVERBA: TStringField; qryLocalizacaoCODIGOAVERBA: TStringField; qryLocalizacaoUSUARIOAVERBA: TStringField; qryLocalizacaoSE...
//Exercicio 100: Faça uma função que tenha como parâmetro uma temperatura em Celsius e retorne a temperatura em Kelvin. //( K = 273 + C ). { Solução em Portugol Algoritmo Exercicio 100; Var K: real; Procedimento ConversorKelvin(Var k: real); Inicio exiba("Digite uma temperatura em Celsius:"); leia(c); ...
unit ssPopupTreeEdit; interface uses SysUtils, Classes, Controls, cxControls, cxContainer, cxEdit, cxTextEdit, cxMaskEdit, cxDropDownEdit, cxTL, cxDBTL, DB, ImgList, dialogs, cxLookAndFeels, Messages; type TssLocateOptions = set of (loPartialKey, loCaseInsensitive); TssPopupTreeEdit = class(TcxP...
unit UPlatform; interface uses UTickCount; type TPlatform = Class public class function GetTickCount : TTickCount; class function GetElapsedMilliseconds(Const previousTickCount : TTickCount) : Int64; End; implementation {$IFNDEF FPC} Uses windows; {$ENDIF} { TPlatform } class function TPlatform.Ge...
unit tc6PublicInfo; {$Include l3XE.inc} {$I tc6_ver.inc} interface {$IfNDef XE} uses Classes, ActiveX, tc6OpenAppClasses; function VarToObject(const V: OleVariant): TObject; function VarFromObject(Obj: TObject): IDispatch; {$IFNDEF DELPHI3} function VarFromInt64(const Int64Val: Int64): OleVariant; {$ENDIF DELPH...
unit IdSASLDigest; interface {$i IdCompilerDefines.inc} uses Classes, SysUtils, //here to facilitate inline expansion IdSASL, IdSASLUserPass, IdUserPassProvider, IdException; type TIdSASLDigest = class(TIdSASLUserPass) protected Fauthzid : String; public function StartAuthenticate(c...
{$MODE OBJFPC} program MaximumBipartiteMatching; const InputFile = 'ASSIGN.INP'; OutputFile = 'ASSIGN.OUT'; maxN = 100000; maxM = 100000; var p, q: Integer; adj: array[1..maxM] of Integer; link: array[1..maxM] of Integer; head: array[1..maxN] of Integer; match: array[1..maxN] of Integer; lab: array...
{ \file DGLE.pas \author Korotkov Andrey aka DRON \version 2:0.3.1 \date 17.11.2014 (c)Korotkov Andrey \brief Main DGLE engine header. To use engine you should just include this header to your project. This header is a part of DGLE_SDK. } unit DGLE; interface {$I include.inc} {$IFNDE...
{ *************************************************************************** Copyright (c) 2015-2018 Kike Pérez Unit : Quick.JSONRecord Description : Serializable class Author : Kike Pérez Version : 1.2 Created : 05/05/2018 Modified : 06/11/2018 This file is part of QuickLib: ...
unit Accounts; interface uses MetaInstances, Classes, Collection, Persistent, BackupInterfaces, CacheAgent, Plotter, Languages; const tidClassFamily_Accounts = 'Accounts'; type TMoney = currency; TAccountId = integer; const MaxAccounts = 1...
unit xBackupObjects; interface uses SysUtils, Classes, ObjectIndex; const LineBreak = #13#10; IndentInc = ' '; EqualSign = ' = '; BeginMark = '{'; EndMark = '}'; NilValue = 'nil'; const chkMatch = 0; chkNoMatch = 2; chkFail = 3; type TBackupObject = clas...
unit cmdlinecfguijson; interface {$mode delphi} uses Classes, SysUtils, cmdlinecfgui, fpjson, jsonparser; function CmdLineUIJSONReadFile(stream: TStream; lt: TCmdLineLayoutInfo): Boolean; overload; function CmdLineUIJSONReadFile(const FileName: String; lt: TCmdLineLayoutInfo): Boolean; overload; procedure CmdLin...
unit uCadProdutos; interface uses System.Classes, Vcl.Controls, Vcl.ExtCtrls, Vcl.Dialogs, ZAbstractConnection, ZConnection, ZAbstractRODataset, ZAbstractDataset, ZDataset, System.SysUtils; type TProduto = class private ConexaoDB:TZConnection; F_produtoId:Inte...
// makes globally registered Midas.dll unnecessary. // this global HKLM-registration requires UAC-elevation, prone to DLL-Hell, might prevent // copying of app folder from backup or retiring computer, etc // this unit searches for XE2-or-later midas.dll as registered in HKLM-registry, in // the app's exe folder ...
unit Ragna.State; {$IF DEFINED(FPC)} {$MODE DELPHI}{$H+} {$ENDIF} interface uses System.Generics.Collections, {$IFDEF UNIDAC}Uni{$ELSE}FireDac.Comp.Client{$ENDIF}, System.Rtti; type TListQueryAndSql = TDictionary<{$IFDEF UNIDAC}TUniQuery{$ELSE}TFDQuery{$ENDIF}, string>; TRagnaState = class private FSta...
unit FMX.Dialogs.Wait; { The MIT License (MIT) Copyright (c) 2014, Takehiko Iwanaga. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation th...
unit mnFonts; {$mode objfpc} {$H+} {** * Raster/Bitmap Fonts * * This file is part of the "Mini Library" * * @url http://www.sourceforge.net/projects/minilib * @license modifiedLGPL (modified of http://www.gnu.org/licenses/lgpl.html) * See the file COPYING.MLGPL, included in this d...
(******************************************************************) (* SFX for DelZip v1.8 *) (* Copyright 2002-2004, 2008 *) (* *) (* written by Markus Stephany ...
unit DAO.StatusCadastro; interface uses DAO.Base, Model.StatusCadastro, Generics.Collections, System.Classes; type TStatusCadastroDAO = class(TDAO) public function Insert(aStatus: Model.StatusCadastro.TStatusCadastro): Boolean; function Update(aStatus: Model.StatusCadastro.TStatusCadastro): Boo...
//Exercicio 41: Escreva um algoritmo que calcule o valor de X, sendo este determinado pela série: // X = 1/1 + 3/2 + 5/3 + 7/4 + ... + 99/50. { Solução em Portugol Algoritmo Exercicio 41; Var X: real; contador: inteiro; Inicio exiba("Programa que calcula uma soma maluca."); X <- 0; contador...
unit nsIntegrationSupport; interface type TIntergationDataKind = (idkCommand, idkLink, idkCheckIntegrationKey); TnsLinkDataArray = array [0..0] of byte; PnsLinkDataArray = ^TnsLinkDataArray; PIntegrationData = ^TIntegrationData; TIntegrationData = packed record OpenInNewWindow: Boolean; case Kind: TInterga...
unit MyUtils; (* Nektere pomocne obsluzne utility *) interface uses Graphics, SysUtils; function ZpracujNaCislo(Text:String):String; procedure VypisTextDoObrazku(Cvs:TCanvas;StartX,EndX:Integer;var now_y:integer;Text:String); implementation (* function ZpracujNaCislo FUNKCE: Ze zadaneho textoveho retezce (Tex...
// *************************************************************************** // // A Simple Firemonkey Rating Bar Component // // Copyright 2017 谢顿 (zhaoyipeng@hotmail.com) // // https://github.com/zhaoyipeng/FMXComponents // // *************************************************************************** // version h...
unit TimeUtils; {=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=] Copyright (c) 2013, Jarl K. <Slacky> Holta || http://github.com/WarPie All rights reserved. For more info see: Copyright.txt [=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=} {$mode...
{ *************************************************************************** Copyright (c) 2016-2019 Kike Pérez Unit : Quick.MemoryCache.Serializer.Json Description : Cache Json serializer Author : Kike Pérez Version : 1.0 Created : 14/07/2019 Modified : 02/11/2019 This file i...
unit Principal; interface uses System.Classes; //-------------COMPONENTE-------------- procedure register; type TNotifyEvent = procedure (Sender : TObject) of Object; TEventos = class(TComponent) private FNome: String; FStatus: TNotifyEvent; procedure SetNome(const Value: String); procedure SetSt...
UNIT GraphsUnit ; INTERFACE {************* CONSTANTS ******************} Const INFINITY = MAXINT; { Use this anywhere you need "infinity" } MAX = 33; { This is the maximum size of graph. You can make this bigger if you want. } {************* TYPE DEFINITIONS *********************} Type { These type definition...
unit __form__; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.CustomizeDlg, Vcl.ExtCtrls, task_1, WebAdapt, WebComp, Data.DB, Bde.DBTables, Vcl.StdCtrls, Vcl.Grids, Wizard1, System.Generics.Collections; t...
unit ufmMain; interface uses { EnterCriticalSection } Winapi.Windows, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.StdCtrls, Vcl.ExtCtrls, System.Generics.Collections, { IViewControl } uIViews; type TfmMain = class(TForm, IViewControl) scrollBoxImages: TScrollBox; ...
//--------------------------------------------------------------------------- // This software is Copyright (c) 2015 Embarcadero Technologies, Inc. // You may only use this software if you are an authorized licensee // of Delphi, C++Builder or RAD Studio (Embarcadero Products). // This software is considered a Redist...
// Upgraded to Delphi 2009: Sebastian Zierer (* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License a...
unit uLembrete; interface uses System.SysUtils; type TLembrete = class private FIDPessoa: integer; FTitulo: string; FDescricao: string; FData: TDate; FHora: TTime; constructor Create; procedure setTitulo(Value: String); procedure setDescricao(Value: String); procedure setData...
unit VoyagerUIEvents; interface uses Windows; const evnBase_UIEvents = 100; const evnScrollStart = evnBase_UIEvents + 0; evnScroll = evnBase_UIEvents + 1; evnScrollEnd = evnBase_UIEvents + 2; type TScrollDirection = (scrHorizontal, scrVertical); TScrollBias = (sbsNon...
program RijndaelTool; { Copyright (c) 2001, Tom Verhoeff (TUE) } { Version 1.0 (July 2001) } { Interactive example program using FreePascal library RijndaelECB } uses RijndaelECB; procedure Pad0 ( var s: String ); begin s := UpCase ( s ) ; while Length ( s ) < HexStrLen do begin s := s + '0' ...
unit Circuits; interface uses Windows, VoyagerServerInterfaces; type ICircuitsRendering = interface end; type IPointsArray = interface function GetPointCount : integer; function GetPointAt(idx : integer) : TPoint; procedure AddPoint(const Point : TPoint)...
unit NativeClassStorage; interface uses ClassStorageInt, Classes, Windows, SysUtils; type TNativeClassStorage = class( TClassStorage ) public constructor Create; destructor Destroy; override; protected function GetClassByIdx( ClassFamilyId : TClassFami...
{*******************************************************} { Проект: Repository } { Модуль: uLogEventImpl.pas } { Описание: Реализация ILogEvent } { Copyright (C) 2015 Боборыкин В.В. (bpost@yandex.ru) } { ...
{ *************************************************************************** } { } { This file is part of the XPde project } { } ...
unit DocStack; { $Id: DocStack.pas,v 1.14 2016/06/16 05:38:41 lukyanets Exp $ } interface Uses l3Base, l3ObjectStringList, DT_Const, daTypes, l3DatLst, l3LongintList, l3ProtoObject ; type TDocStackItem = class(Tl3ProtoObject) public DocFam : TdaFamilyID; DocID : Longint; AnchorID : L...
unit UserLicenseRequestUnit; interface uses REST.Json.Types, GenericParametersUnit, CommonTypesUnit, EnumsUnit; type TUserLicenseRequest = class(TGenericParameters) private [JSONName('member_id')] FMemberId: integer; [JSONName('session_guid')] FSessionId: integer; [JSONName('device_id')...
unit sdsMainWindow; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Библиотека "MainWindowControllers$BaseOperations" // Автор: Люлин А.В. // Модуль: "w:/garant6x/implementation/Garant/GbaNemesis/MainWindowControllers/sdsMainWindow.pas" // ...
unit RealState.Agent.Repository; interface uses Data.DB, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, FireDAC.Comp.DataSet, FireDAC.Comp.Client, System.Cl...
unit clEnderecoEntregador; interface uses clEndereco, System.Classes, clConexao; type TEnderecoEntregador = class(TEndereco) private function getCodigo: Integer; function getSequencia: Integer; function getTipo: String; function getCorrespondencia: Integer; procedure setCodigo(const Value:...
unit LandSurfaces; interface uses Land, Surfaces; type TLandValueArray = array[TLandClass] of single; type TLandSurface = class( TSurface ) public constructor Create( anId : TSurfaceId; aName : string; aValues : array of single ); private fLand : ILandIn...
unit uFilm; interface uses uKata; const Nmax = 1000; type Film = record Nama:string; Genre:string; Rating:string; Durasi:string; Sin:ansistring; hDay:longint; hEnd:longint; end; type dbFilm = record Film : array[1..Nmax] of Film; Neff : integer; end; procedure load...
{OBJECTS.PAS - version 4.0} {$A+,B-,D+,E+,F-,G-,I+,L+,N-,O-,P-,Q-,R-,S+,T-,V+,X+} {$M 16384,0,10360} Unit Objects; Interface Procedure SetButtonTexture(FileName:string); Procedure SetWindowTexture(FileName:string); Procedure SetLabelTexture(FileName:string); Procedure SetEditTexture(FileName:string); ...
unit vgBounds; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Библиотека "VGScene" // Модуль: "w:/common/components/rtl/external/VGScene/NOT_FINISHED_vgBounds.pas" // Родные Delphi интерфейсы (.pas) // Generated from UML model, root elemen...
Program Diario_de_Notas; (*Programa de um diário de notas que armazenam dados de alunos, por turma, que são o DRE, nota de duas provas, média e número de faltas; Responsável: Felipe Botelho Nunes da Silva; Data:28/02/2016 *) Uses crt,digDados,sysutils; Type regAluno = record nome:string; dre:integer; notas:arr...
unit ClipboardViewerForm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, Clipbrd, clipbrdfunctions; type TClipboardViewer = class(TForm) private FCVActive: Boolean; FNext...
program cpf; uses crt; var i,n: integer; vet: array [1..11] of integer; {vetor único para todas as operações / single vector for all operations} procedure primeirodigito; {primeiro procedimento para o primeiro dígito / first procedure for the first digit} var soma,d,i,x,digito1: integer; begin soma:=...
{******************************************************************************} { } { Delphi FB4D Library } { Copyright (c) 2018-2022 Christoph Schneider ...
unit EmployeeTypes; interface type TEmployee = class(TObject) private FFullName : string; FPhone : string; FEmail : string; FId : string; FDepartment: string; public property Id : string read FId write FId; property FullName: string read FFullName write FFullName; property Depart...
unit uFrmConfig; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Samples.Spin, qjson, Vcl.ExtCtrls; type TfrmConfig = class(TForm) Label7: TLabel; edtServerIP: TEdit; Label8: TLab...
unit UFaceBookAlbumDemo; interface uses FMX.Forms, FMX.TMSCloudBase, SysUtils, FMX.TMSCloudFacebook, FMX.Controls, FMX.Dialogs, FMX.Edit, FMX.Grid, FMX.Layouts, FMX.TMSCloudListView, FMX.Objects, FMX.TMSCloudImage, FMX.StdCtrls, System.Classes, FMX.Types, FMX.TMSCloudBaseFMX, FMX.TMSCloudCustomFacebook; type...
unit FormEventos; interface uses UCalendario, DateUtils, Umodconexion, URegistros, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Buttons, StdCtrls, DBCtrls, ExtCtrls, ComCtrls, JvExControls, JvSpeedButton, DB, ZAbstractRODataset, ZAbstractDataset, ZDataset; type ...
unit DAO.Usuarios; interface uses FireDAC.Comp.Client, System.SysUtils, DAO.Conexao, Model.Usuarios, Dialogs; type TUsuariosDAO = class private FConexao : TConexao; public constructor Create; function GetId(): Integer; function Inserir(AUsuarios: TUsuarios): Boolean; function Alterar(AUsuar...
unit TextReader; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs; const BufSize = 8192; type TTextReader = class(TComponent) private DataFile: file; Buffer: array[1..BufSize] of char; FSizeOfFile: int64; CharsRead: integer; BytesRead...
{ RegisterRxTools unit Copyright (C) 2005-2013 Lagunov Aleksey alexs@hotbox.ru and Lazarus team original conception from rx library for Delphi (c) 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 Softwa...
(* * 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 distributed under the License is distributed on an "AS...
unit TestdCucuberList; { 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, Classes, dCucuberListIntf,...
unit WpcScriptParser; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Fgl, StrUtils, WpcScript, WpcStatements, WpcStatementProperties, WpcScriptCommons, WpcCommonTypes, WpcWallpaperStyles, WpcExceptions, OSUtils; const WHITESPACE_SET = [ #32, #9 ]; ALLOWED_NAME_SYMBOLS = [ 'A'..'Z', 'a...
unit Write810File; interface uses SysUtils, DB, Dialogs, Classes,EDI810Object,DataModule; type T810EDIFile = class(TObject) private fedi810:T810EDI; public constructor Create(EDI810:T810EDI); overload; procedure Execute(); end; implementation constructor T810EDIFile.Create(ED...
unit BCEditor.Consts; interface {********************************************************************} uses Graphics; type TBCEditorAnsiCharSet = set of AnsiChar; const BCEDITOR_BOOKMARKS = 10; BCEDITOR_CODEFOLDING_COLLAPSEDMARK: PChar = '...'; { Characters } BCEDITOR_UNDERSCORE = '_'; ...
unit disk_file_format; interface uses {$IFDEF WINDOWS}windows,{$ENDIF}main_engine,misc_functions,dialogs; function dsk_format(DrvNum:byte;longi_ini:dword;datos:pbyte):boolean; procedure clear_disk(drvnum:byte); procedure check_protections(drvnum:byte;hay_multi:boolean); function oric_dsk_format(DrvNum:byte;lo...
unit UABMArticulos; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, UDatosDB, UABMGeneral, DB, IBCustomDataSet, IBQuery, Grids, DBGrids, StdCtrls, Buttons, jpeg, ExtCtrls, cxCurrencyEdit, cxControls, cxContainer, cxEdit, cxTextEdit, cxLookAndFeelPainters, cxB...
program code; {$H+} var equation : string; const list = ['0'..'9', 'E', 'e', '+', '.']; procedure removeZerosAndSpace(var s: string); var i : integer; begin i := Length(s); while (i > 0) and (s[i] = '0') do i := i - 1; s := copy(s, 1, i); if s[1] = ' ' then s := copy(s, 2, length(s)-1);...
unit BackupConsts; interface const LineBreak = #13#10; IndentInc = ' '; EqualSign = ' = '; BeginMark = '{'; EndMark = '}'; NilValue = 'nil'; implementation end.
unit fmGroupMemeberSelection; interface uses Winapi.Windows, Winapi.Messages, Winapi.CommCtrl, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls, Vcl.ToolWin, Vcl.ExtCtrls, System.ImageList, Vcl.ImgList, Winapi.UxTheme, System.StrU...
unit PlayerAnim; // Copyright (c) 1996 Jorge Romero Gomez, Merchise. // Things left: // - Implement & make use of Keyframed // interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, SpeedBmp, TimerUtils, SharedTimer; type TByteSet = set of byte; type TPlayFromWhatMe...
unit USpeedTest; interface uses Classes; type TMeasureEvent = procedure(const text:string) of Object; TFileSpeedTest = class(TObject) private FStream: THandleStream; FBuffer : string; FOnMeasureResult: TMeasureEvent; FFileSize: Integer; procedure ReadFile(count,...
unit aeLoggingManager; interface uses windows, types, sysutils, classes, aeConst; type TaeLogMessageEntryType = (AE_LOG_MESSAGE_ENTRY_TYPE_NORMAL, AE_LOG_MESSAGE_ENTRY_TYPE_NOTICE, AE_LOG_MESSAGE_ENTRY_TYPE_ERROR); type TaeLoggingManager = class private _log: TStringList; _log_path: string; _c...
unit AutoLog; interface procedure Log( LogId, Info : string ); procedure InitLogs; implementation uses SyncObjs, SysUtils; var LogLock : TCriticalSection = nil; procedure InitLogs; begin LogLock := TCriticalSection.Create; end; procedure DoneLogs; begin LogLock.Free; ...
unit ntvThemes; {$mode objfpc}{$H+} {** * This file is part of the "Mini Library" * * @url http://www.sourceforge.net/projects/minilib * @license modifiedLGPL (modified of http://www.gnu.org/licenses/lgpl.html) * See the file COPYING.MLGPL, included in this distribution, * @author Z...