text
stringlengths
14
6.51M
unit PidlIcons; interface uses Windows, ShlObj; function GetPidlLargeIcon( aPidl : PItemIDList ) : HICON; function GetPidlSmallIcon( aPidl : PItemIDList ) : HICON; implementation uses ShellApi; function GetPidlLargeIcon( aPidl : PItemIDList ) : HICON; var SHInfo : TSHFileInfo; ...
unit svgtoolfrm; {$I vg_define.inc} interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, xdom, vg_layouts, vg_scene, vg_controls, vg_objects; type TfrmSVGTool = class(TForm) vgScene1: TvgScene; Root1: TvgBackground; ToolBar1: TvgToolBar; OpenDialo...
unit System.ConfigList; interface uses SysUtils, Classes,System.Generics.collections, {$ifdef FMX} FMX.Edit {$endif}; const sConfigList_Configurou = 'Configurou'; type TConfigListItem = class public Nome:String; Valor:Variant; ValorDefault:Variant; Control : TComponent; ...
unit kaneco_pandora; interface uses gfx_engine,misc_functions; type pandora_gfx=class constructor create(sprite_mask,color_offset:word;clear_screen:boolean); destructor free; public procedure reset; procedure update_video(screen,ngfx:byte); //Read/write 8 bits procedure spriteram...
unit NOT_FINISHED_l3ProgressComponent; {* Базовый класс компонентов, имеющих индикатор прогресса. } // Модуль: "w:\common\components\rtl\Garant\L3\NOT_FINISHED_l3ProgressComponent.pas" // Стереотип: "SimpleClass" // Элемент модели: "Tl3ProgressComponent" MUID: (4754200F029E) {$Include w:\common\components\rtl\Garant...
unit NonrectangularForm; interface Uses Windows, Graphics, Forms, Controls, Dialogs, SysUtils, Types, l3Forms, l3Region; const cTransparentColor = $123456; type TNonrectangularForm = class(Tl3Form) private f_Region: Tl3Region; f_BorderColor: TColor; procedure pm_SetBorderColor(Value: TColor); protec...
unit DirectAccessDaapi; interface uses classes, System.DateUtils, System.IOUtils, TCWODT, DBISAMTB, FFSSortTable, FFSRptsTable, FFSLogTable, FFSUserGrpTable, FFSTypes, FFSUserTable, FFSPasswordOptionsTable, TTSPasswordTable, FFSLendGrpTable, printers, programsettings, LMDProcs, FFSProcessTable, FFSProcD...
unit Solid.Samples.LSP.Animals.Wrong; interface uses System.SysUtils; type { TAnimal } TAnimal = class abstract public procedure MakeNoise; virtual; abstract; end; { TCat } TCat = class(TAnimal) public procedure MakeNoise; override; end; { TDog } TDog = cl...
unit UInstructionChoiceDialog; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, System.Generics.Collections, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, UDialog, FMX.Objects, UInstructionDialog; type TInstructionChoiceDialog = c...
//Tempat wisata di Emerald city dikelola datanya menggunakan sebuah program. //Program tersebut mengelola data usaha wisata berdasarkan tipe wisata (outdoor, indoor), //(individu, family friendly), harga tiket masuk sesuai dengan hari atau waktunya, dan menyediakan //fasilitas umum seperti toilet, musholah, dan juga je...
(*program 11.4 (*conversion to postfix form *) Program postfix(input,output); Var ch: char; Procedure find; (* finds next non-blank character*) Begin Repeat read(ch) Until (ch<>' ') (*-and not eoln(input)-*) End (* find *); Procedure expression; Var op: char; Procedure term; Procedure factor; Begin (*facto...
unit GlobalConfig; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, System.SyncObjs, System.IniFiles, Vcl.Menus, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls, Vcl.ExtCtrls, Vcl.Samples.Spin, FileFunctions, FilterAPI; ...
{-------------------------------------------------------------------------- Objetivo   > Implementar o componente TosComboFilter que é o combo que vai conter o filtro e todas as suas views  Observações>  Criação    >  Atualização> 13/02/2006 - Ricardo N. Acras Adição do evendo onC...
unit Benjamim; {$IF DEFINED(FPC)} {$MODE DELPHI}{$H+} {$ENDIF} interface uses {$IF DEFINED(FPC)} Classes, StrUtils, {$ELSE} System.Classes, System.StrUtils, {$ENDIF} Benjamim.Utils, Benjamim.Header.Interfaces, Benjamim.Payload.Interfaces, Benjamim.Signature.Interfaces, Benjamim.Interfaces; type ...
unit View.ImportarBaixasTFO; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinBlueprint, dxSkinCaramel, ...
namespace Sugar; interface type Encoding = public class {$IF COOPER}mapped to java.nio.charset.Charset{$ELSEIF ECHOES}mapped to System.Text.Encoding{$ELSEIF TOFFEE}mapped to Foundation.NSNumber{$ENDIF} private method GetName: String; public method GetBytes(Value: array of Char): array of Byte;...
unit UFrameKP; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, ExtCtrls, Buttons, IniFiles, Contnrs, UTreeItem; type TItemKP = class; TFrameKP = class(TFrame) gbKP: TGroupBox; Panel: TPanel; Label1: TLabel; Label2: TLabel; Labe...
unit IndyDbServerForm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ScktComp, StdCtrls, Grids, DBGrids, Db, DBTables, ComCtrls, DBClient, IdBaseComponent, IdComponent, IdTCPServer; type TForm1 = class(TForm) PageControl1: TPageControl; TabSheet1: TTabSheet;...
{ statusitem.pas This example shows how to create a window with several buttons which will control a NSStatusItem (a menubar extras icon). Compilation of this example requires the following options: -k-framework -kcocoa -k-lobjc This example project is released under public domain AUTHORS: Felipe Monteiro de...
unit DMX.Data.DataSetRepository; interface uses System.Classes, System.Generics.Collections, DMX.Data.VirtualDataSet, DMX.Data.DSRepDataSets; type TDataSetRepManager = class; TDataSetRepService = class; TDataSetRepository = class(TComponent) private FDataSet: TVirtualDataSet; FDataName: stri...
// the code formatter configuration dialog // Original Author: Egbert van Nes (http://www.dow.wau.nl/aew/People/Egbert_van_Nes.html) // Contributors: Thomas Mueller (http://www.dummzeuch.de) unit GX_CodeFormatterConfig; {$I GX_CondDefine.inc} interface uses Windows, SysUtils, Classes, ...
unit IGraphicObject_primitives; interface uses IGraphicObject_commands,streaming_class_lib,types,classes,graphics; type TScreenCoord = 0..9999; //тут главное - правильный размер окошечка TPointGraphicObject = class (TStreamingClass, IGraphicObject) protected fx,fy: Integer; //кто знает, с какими размерами мы...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All r...
PROGRAM SarahRevere(INPUT, OUTPUT); {Џечать сообщения о том как идут британцы, в зависимости от того, первым во входе встречается ли 'land', 'sea'} VAR W1, W2, W3, W4: CHAR; Looking, Land, Sea: BOOLEAN; BEGIN {SarahRevere} W1 := ' '; W2 := ' '; W3 := ' '; W4 := ' '; Looking := TRUE; Land := FALSE;...
program StoryGen; type replacementPair = record oldWord : string; newWord : string; end; replacementPairArray = array of replacementPair; var replacementWords : replacementPairArray; function fileExists(fromFileName : string) : boo...
unit GX_ComponentGrid; {$I GX_CondDefine.inc} interface uses GX_Experts, Classes, Controls, Forms, Grids, SortGrid, StdCtrls, ComCtrls, ActnList, ToolWin, GX_BaseForm; type TfmComponentGrid = class(TfmBaseForm) ToolBar: TToolBar; tbnSave: TToolButton; tbnSep1: TToolButton; tbnHe...
{---------------------------------------------------------------------------- | | Library: Envision | | Module: EnDiGrph | | Description: Abstract TGraphic descendant which supports a device indenpendent | drawing surface. | | History: Oct 29, 1998. Michel Brazeau, first version | Feb 13, 1999. MB...
unit BasicProfitCalc; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm6 = class(TForm) ListBox1: TListBox; Label1: TLabel; Label2: TLabel; Edit1: TEdit; Edit2: TEdit...
unit uCadastros; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.StdCtrls, Data.DB, Vcl.Grids, Vcl.DBGrids, Vcl.ExtCtrls, Vcl.Buttons, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC...
(* DLL HyTech для Win95/NT HyTech 2.56 Copyright (c) 1993, 99 by SKAZ_M Ltd *) Unit HTW32; INTERFACE {$A-} (* Эти переменные носят только информационный характер, менять их нельзя *) Const FNAME_LEN = 10; (* Длина имени поля в таблице *) Const TFULL_LEN = 140; (* Длин...
unit K610503532; {* [Requestlink:610503532] } // Модуль: "w:\common\components\rtl\Garant\Daily\K610503532.pas" // Стереотип: "TestCase" // Элемент модели: "K610503532" MUID: (5633572B02BE) // Имя типа: "TK610503532" {$Include w:\common\components\rtl\Garant\Daily\TestDefine.inc.pas} interface {$If Defined(nsTest)...
unit MFichas.Model.Configuracao; interface uses System.SysUtils, MFichas.Model.Configuracao.Interfaces, MFichas.Model.Entidade.CONFIGURACOES, MFichas.Model.Conexao.Interfaces, MFichas.Model.Conexao.Factory, ORMBR.Container.ObjectSet.Interfaces, ORMBR.Container.ObjectSet, ORMBR.Container.DataSet.Inte...
unit uContentResolver; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type { IContentResolver } IContentResolver = interface ['{A426E92E-5F53-4C46-8969-AA047F30B81A}'] function GetPath: string; function GetName: string; function GetDescription: string; function GetIcon: string; ...
unit UPedidoRepositoryImpl; interface uses UPedidoRepositoryIntf, UPizzaTamanhoEnum, UPizzaSaborEnum, UDBConnectionIntf, FireDAC.Comp.Client; type TPedidoRepository = class(TInterfacedObject, IPedidoRepository) private FDBConnection: IDBConnection; FFDQuery: TFDQuery; public procedure efetuarPedi...
(* The function to_braille from this unit translates a string from UTF8 chars to Braille chars. The dictionaries were taken from http://www.ibc.gov.br/?catid=110&blogid=1&itemid=479 and from http://www.braillevirtual.fe.usp.br/pt/Portugues/braille.html Copyright 2011 *) unit mod_braille; interface {$mode ob...
unit uSceneHelp; interface uses Graphics, uScene, uButton, uGraph; type TPage = (hpMain, hpKeys); TSceneHelp = class(TSceneFrame) private FPage: TPage; FBack: TBitmap; FGraph: TGraph; FYA, FYB: Word; FIsLoad: Boolean; FButton: array [0..2] of TButton; pr...
unit cCadCargo; interface uses System.Classes, Vcl.Controls, Vcl.ExtCtrls, Vcl.Dialogs, FireDAC.Comp.Client, System.SysUtils; // LISTA DE UNITS type TCargo = class private // VARIAVEIS PRIVADA SOMENTE DENTRO DA CLASSE ConexaoDB: TFDConnection; F_cod_cargo: Integer; F_nivel: Integer; F_carg...
unit DirectoryManager; interface uses DBTables; // Node Type const ntKey = 0; ntBoolean = 1; ntInteger = 2; ntFloat = 3; ntString = 4; ntDate = 5; ntCurrency = 6; ntBigString = 7; type TDirectoryManager = class public constr...
unit mainform; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, EditBtn, ExtCtrls, ComCtrls, synaser; type { TformSerial } TformSerial = class(TForm) btnConnect: TButton; comboClientServer: TComboBox; editDevice: TEdit; editFil...
unit TestuProtoBufParserClasses; { 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.Classes...
unit UIWrapper_StageEditorUnit; interface uses FMX.Layouts, FMX.Types, Frame_SchOpt_StageInfo, StageOptionPart, UIWrapper_LogSearchUnit, DBManager, SearchOption_Intf; type TUIWrapper_StageEditor = class(TObject) private FScrollBox_StageList: TScrollBox; FLogSearch: TUIWrapper_LogSearch; pro...
{ *********************************************************** } { * TForge Library * } { * Copyright (c) Sergey Kasandrov 1997, 2016 * } { *********************************************************** } unit tfSHA512; interface {$I TFL.inc} uses tfType...
unit CircuitsHandler; interface uses Controls, Classes, Circuits, VoyagerServerInterfaces; type TSegmentsRenderer = function (const SegmentsReport : TSegmentReport; Left, Top, Width, Height : integer) : ICircuitsRendering; type TOnAreaRefreshedNotification = procedure (const Segments :...
unit Model.ManutencaoVeiculos; interface type TManutencaoVeiculos = class private var FID: Integer; FTipo: String; FVeiculo: Integer; FMotorista: Integer; FItem: Integer; FDataManuencao: System.TDate; FKmManutencao: Double; FDataPrevisao: System.TDate; ...
namespace Nancy.Bootstrappers.Autofac; uses Autofac; type ComponentContextExtensions = public extension class(IComponentContext) public method Update(builderAction: Action<ContainerBuilder>): IComponentContext; begin if not assigned(self) then begin raise new ArgumentN...
unit uEditorBase; interface uses uEditorIntf, Classes, SysUtils, Dialogs, Graphics; type // 这个类的功能主要是对要操作的文件进行控制。 TEditorBase = class(TInterfacedObject, IEditorIntf) private FFileName: string; protected procedure DoLoadFromFile(FileName: string); virtual; abstract; function DoSaveFile(FileName: ...
unit uAutomato; {$mode objfpc}{$H+} interface uses Classes, SysUtils, uEStado, uParamTransicao, strutils, uConstantes, contnrs, StdCtrls; type { TAutomato } TAutomato = class(TObject) private var FPilha: TStack; FEstadosPossiveis: TListaEstado; FEstadoAtual: TEstado; ...
unit u_Padrao; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls, Vcl.DBCtrls, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.Dat...
unit adErrorBox; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OvcBase, afwControlPrim, afwBaseControl, afwControl, afwInputControl, vtLister, StdCtrls, ExtCtrls, l3StringList, l3Interfaces; type TErrorBox = class(TForm) lstErrors: TvtLister; Image...
(** * This unit contains a class ~TTextIniFile~ that implements * textual initialization files. The files are fully interface * compatible with those in the (Delphi) IniFiles unit, but they * provide some additional methods for reading and writing data * other than String, Integer, and Boolean. * * @author Joerg...
unit abastecimento; interface uses SysUtils, DateUtils; type // Classe modelo de abastecimentos T_Abastecimento = class(TObject) F_Id: Integer; F_DataHora: TDateTime; F_Bomba_ID: Integer; F_Litros: Double; F_ValorPorLitro: Do...
{*********************************************************************************************************************** * * TERRA Game Engine * ========================================== * * Copyright (C) 2003, 2014 by SÚrgio Flores (relfos@gmail.com) * ***************************************************...
unit SimHints; interface uses Languages; const mtidHintsDenied : TRegMultiString = nil; // 'This facility belongs to %s. There are no hints for you.'; mtidVisitWebSite : TRegMultiString = nil; // 'No hints for this facility.'; mtidNeedsMoney ...
unit ItemSkin; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Menus, MGR32_Image,IdTypes,FastStream; type TFrmItemSkinEd = class(TForm) LstItemSkin: TListBox; Label1: TLabel; MainMenu1: TMainMenu; Files1: TMenuItem; ...
unit G2Mobile.Model.Usuarios; interface uses FMX.ListView, uDmDados, uRESTDWPoolerDB, System.SysUtils, IdSSLOpenSSLHeaders, FireDAC.Comp.Client, FMX.Dialogs, FMX.ListView.Appearances, FMX.ListView.Types, System.Classes, Datasnap.DBClient, FireDAC.Comp.DataSet, Data.DB, G2Mobile.Controller....
{ Clever Internet Suite Copyright (C) 2013 Clever Components All Rights Reserved www.CleverComponents.com } unit clNewsChecker; interface {$I clVer.inc} uses {$IFNDEF DELPHIXE2} Classes, Windows, SysUtils, {$ELSE} System.Classes, Winapi.Windows, System.SysUtils, {$ENDIF} clDC, clMultiDC, clDownLoader,...
unit Solid.Samples.OCP.Book.Ok; interface uses System.SysUtils; type { TBookEntity } TBookEntity = class private FAuthor: string; FPageCount: Integer; FTitle: string; procedure SetAuthor(const AValue: string); procedure SetPageCount(const AValue: Integer); procedur...
unit eInterestSimulator.Model.Simulador; interface uses eInterestSimulator.Model.Interfaces; type TModelSimulador = class(TInterfacedObject, iSimulador) private FCapital: Real; FTaxaJuros: Real; FTotalParcelas: Integer; FTipoSistema: TTypeSistema; function Capital(Value: Real): iSimulador; ...
unit GX_ProofreaderKeyboard; {$I GX_CondDefine.inc} interface function CharsAreNearOnKeyboard(const a, b: Char): Boolean; var KeysWithDistance1: array[1..50] of set of AnsiChar; KeyboardChars, ShiftKeyboardChars, AltGrKeyboardChars: string; implementation uses Windows, GX_GenericUtils, SysUti...
unit udmDadosNFSe; interface uses Windows, System.UITypes,Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DB, DBClient, DBAccess, IBC, MemDS, udmPadrao, pnfsConversao, pcnConversao, LibGeral, uMatVars, ACBrNFSeDANFSeClass, ACBrNFSeDANFSeFR, ACBrNFSe, ACBrCTe,ACBrDFeUtil, ACBrBase,...
unit FirebirdTools; interface uses IBX.IBDatabase, Data.DB, IBX.IBCustomDataSet, IBX.IBSQL, XSuperObject, Forms, SysUtils, IBX.IB; type TFBTool = class(TObject) public FbDB : TIBDatabase; FbDS : TIBDataSet; FbDS2 : TIBDataSet; FbSQL : TIBSQL; ReadTrans : TIBTransaction; UpdTrans : TIBTransac...
Program OrdenarMatriz; Const Max=30; Type matriz= array[1..Max, 1..Max] of integer; Var A:matriz; filas,columnas:integer; Procedure LlenarMatriz(var A:matriz; columnas,filas:integer); var i,j:integer; begin randomize; for i:=1 to filas do begin for j:=1 to col...
program queueDataStructure; (* procedures: 1. init 2. enqueue 3. dequeue functions: 1. isFull 2. isEmpty *) uses crt; const size = 10; type queueType = record front, rear : Integer; data : array[1..size] of Integer; end; var q : q...
unit ssImagePanel; interface uses SysUtils, Classes, Controls, ExtCtrls, Graphics; type TssImagePanel = class(TPanel) private FPicture: TPicture; procedure SetPicture(const Value: TPicture); protected procedure Paint; override; public constructor Create(AOwner: TComponent); overr...
// // MD5Managed.pas // // This file is ported from the Mono project // //Original File: // System.Security.Cryptography.MD5CryptoServiceProvider.cs // //Original Authors: // Matthew S. Ford (Matthew.S.Ford@Rose-Hulman.Edu) // Sebastien Pouliot (sebastien@ximian.com) // // Copyright 2001 by Matthew S. Ford. // Copyr...
namespace Sugar.RegularExpressions; interface uses Sugar.Collections; type Match = public class {$IF COOPER}mapped to java.util.regex.Matcher {$ELSEIF ECHOES}mapped to System.Text.RegularExpressions.Match{$ENDIF} protected {$IF TOFFEE} fInput: String; fMatch: NSTextCheck...
unit URLParser; interface uses VoyagerInterfaces, Controls; type TFramePositioning = (posRelative, posAbsolute); TFrameAlign = TAlign; type TDimension = record value : integer; relative : boolean; end; type TVisibility = (visVisible, visHidden, visSw...
module sst_func; define sst_func_exp; define sst_func_arg; %include 'sst2.ins.pas'; { ******************************************************************************** * * Function SST_FUNC_EXP (FUNC) * * Create the expression for the returned value of a function. FUNC is the * function symbol. The function will...
unit fmPieChart; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, TeEngine, Series, TeeProcs, Chart, uEventAgg, uEvents, uModel; type TfrmPieChart = class(TForm) Chart1: TChart; pnlFooter: TPanel; btnClose: TButton; CheckBox1...
unit ColorTrans; // Palette Transform Stuff. Copyright (c) 1997 Jorge Romero Gomez, Merchise. interface uses Windows, GDI; // Color Translation Stuff type PColorTransTable = ^TColorTransTable; TColorTransTable = array[byte] of byte; function TabPaletteConv( const SourceRgbEntries; SourceCount ...
// // VXScene Component Library, based on GLScene http://glscene.sourceforge.net // { SEM shader : Spherical Environment Mapping The main idea of SEM is to get the UV coordinates (which are used to lookup the matCap texture) from the normal vector on the fragment instead of the original texture coordina...
// // Generated by JavaToPas v1.5 20171018 - 170941 //////////////////////////////////////////////////////////////////////////////// unit android.media.MediaCodecInfo_CodecCapabilities; interface uses AndroidAPI.JNIBridge, Androidapi.JNI.JavaTypes, android.media.MediaCodecInfo_CodecProfileLevel, android.media...
unit Demo.GanttChart.NoDependencies; interface uses System.Classes, System.SysUtils, System.Variants, Demo.BaseFrame, cfs.GCharts; type TDemo_GanttChart_NoDependencies = class(TDemoBaseFrame) public procedure GenerateChart; override; end; implementation procedure TDemo_GanttChart_NoDependencies.Generat...
unit MRpuppySettingCls; interface type TMRPuppyGlobalSetting = class private FIdCategory public getPetCategoryList: TList; getServiceCategoryList: TList; getKitCategoryList: TList; end; implementation end.
unit Time;{Модуль времени} interface function TimeF: word;{функция, в которую мы сохраняем нынешнее время системы} implementation uses dos;{Подключаем dos, чтобы мы могли использоать процедуру gettime} function TimeF; var h, min, sec, hsec: word;{Переменные, в которые процедура gettime записывает текущее кол...
unit ClsDAOPrincipal; interface uses 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, Data.DB, FireDAC.Comp.Client, FireDAC.Phys.IBBase, FireDAC.Phys.IB, FireDAC.Phys.FB, ...
unit TestThItemRectangle; { 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, BaseTestUnit, FMX.Types...
unit UDSortFieldBuild; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, UCrpe32; type TCrpeBuildSortFieldDlg = class(TForm) pnlBuildSort: TPanel; lblSummaryType: TLabel; lblSummaryField: TLabel; lblGroupField: TLabel; lblLeftBracke...
program questao28; { Autor: Hugo Deiró Data: 23/06/2012 - Este programa recebe um tipo de carne e a quantidade de carne comprada. Caso a compra seja paga no cartão, há um desconto de 5%. } var tipo_carne : string[10]; resposta : string[3]; KG : integer; preco : real; begin writeln('OPÇÕES DE...
unit TITaxInvoicesEdit_AddInNakl; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, cxLookAndFeelPainters, cxButtons, cxTextEdit, cxButtonEdit, cxControls, cxContainer, cxEdit, cxMaskEdit, cxDropDownEdit, cxCalendar, Ibase,TiCommonPr...
unit VoxelDocument; interface uses Voxel, HVA, Palette, BasicDataTypes, BasicFunctions, SysUtils; const C_VXLTP_BODY = 0; C_VXLTP_TURRET = 1; C_VXLTP_BARREL = 2; type TVoxelDocument = class private // Misc function GetHVAName(var _VoxelName: string): string; function...
program HowToDrawSomethingToTheScreen; uses SwinGame, sgTypes; procedure Main(); begin OpenGraphicsWindow('How To Draw Something To The Screen', 320, 240); ClearScreen(); // clear the background canvas (black by default) RefreshScreen(); // make it appear on screen... Delay(2000); ...
unit uUninstall; interface {$WARN SYMBOL_PLATFORM OFF} uses System.Classes, System.StrUtils, System.SysUtils, System.Win.Registry, Winapi.Windows, Vcl.Dialogs, Dmitry.Utils.Files, uActions, uInstallTypes, uMemory, uConstants, uUninstallTypes, uShellUtils; const Inst...
// // VXScene Component Library, based on GLScene http://glscene.sourceforge.net // { An extention of TVXNavigator, which allows to move objects with inertia Note: it is not completely FPS-independant. Only Moving code is, but MoveAroundTarget, Turn[Vertical/Horizontal] and AdjustDistanceTo[..] is not. ...
{* euclid.pas *} program euclid; var a,b,result:integer; {* Greatest Common Divisor Function*} function GCD(a, b : integer) : integer; var t, r : integer; begin if (a < b) then begin t := a; a := b; b := t end; repeat r := a mod b; {* modulus *} a := b; b := r until r = 0; GCD := a...
unit GamePoints; {$mode objfpc}{$H+} interface uses Classes, SysUtils, math; type { TGamePoint } TGamePoint = object public X, Y: Double; procedure Assign(AX, AY: Double); end; function GamePoint(X, Y: Double): TGamePoint; operator + (A, B: TGamePoint) C: TGamePoint; operator - (A, B: TGamePoin...
unit UnitListarProcessos; interface uses Windows, TLhelp32, PsAPI; function ListaDeProcessos: String; function TerminarProceso(PID: cardinal): Boolean; function RutaProcesos(PID: DWORD): string; procedure SetTokenPrivileges; implementation uses UnitServerUtils; function GetProcessMemoryUsage(PID: cardinal...
unit BsEditRegion; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxLookAndFeelPainters, DB, cxMaskEdit, cxDropDownEdit, cxLookupEdit, cxDBLookupEdit, cxDBLookupComboBox, cxLabel, cxControls, cxContainer, cxEdit, cxTextEdit, ActnList, FIBDataSet, pFIBDataSet...
 {*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1997-1999 Borland Software Corporation } { ...
unit uDMImportInventoryTextFile; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uDMImportTextFile, DB, ADODB, uContentClasses, uDMCalcPrice, uDMImportInventory, uSystemConst; type TDMImportInventoryTextFile = class(TDMImportTextFile) procedure DataModul...
{ NAME: Jordan Millett CLASS: Comp Sci 1 DATE: 10/3/2016 PURPOSE: To create a guessing game } Program guess; uses crt; Procedure getInt(ask:string;var num : integer); var numStr : string; code : integer; begin repeat write(ask); readln(numstr); val(numSt...
{******************************************************************************} { } { Delphi OPENSSL Library } { Copyright (c) 2021 Lsuper ...
unit Action; interface uses Windows, Messages, SysUtils, Classes, IBQuery, IBSQL, IBDatabase, Db, IBStoredProc, Dbun, Variants; type TObjectAction = class(TDbunObject) private FActionName: string; FActionFullName: string; FActionID: Integer; FNewInObject: Boolean; publ...
unit sgDriverTextSDL2; interface procedure LoadSDL2TextDriver(); implementation uses sgTypes, sgDriverSDL2Types, sgDriverText, sgShared, sgBackendTypes; function LoadFontProcedure(const fontName, fileName : String; size : Longint) : FontPtr; var fdata: psg_font_data; begin New(result); result^.id := FON...
{ *********************************************************************** } { } { The Siam Developer Runtime Library } { DevCore Library } { ...
unit rtti_idebinder_uBehavioralBinder; {$mode objfpc}{$H+} interface uses SysUtils, rtti_idebinder_iBindings, rtti_idebinder_uBehaveBinders, Controls, ComCtrls, fgl; type { TRBBehavioralBinder } TRBBehavioralBinder = class(TInterfacedObject, IRBBehavioralBinder) private type TBehaveBinderItems = spe...
unit Class3DPointList; interface type P3DPosition = ^T3DPosition; T3DPosition = record x,y,z : integer; Next : P3DPosition; end; C3DPointList = class private Start,Last,Active : P3DPosition; procedure Reset; public // Constructors and Des...
(* @abstract Implements a class thats injects a hidden id into a string. *) unit NtHiddenId; {$I NtVer.inc} interface uses System.Generics.Collections; const REQUIRED_ZERO_WIDTH_CHARACTER_COUNT_C = 4; type TZeroWidthCharacter = ( zwSpace, //< 200B zwNonJoiner, ...
{***************************************************************************} { } { Delphi Package Manager - DPM } { } { ...
Program PL0; {带有代码生成的PL0编译程序} Const norw = 11; {保留字的个数} txmax = 100; {标识符表长度} nmax = 14; {数字的最大位数} al = 10; {标识符的长度} amax = 2047; {最大地址} levmax = 3; {程序体嵌套的最大深度} cxmax = 200; {代码数组的大小} Type symbol = (nul, ident, number, plus, minus, times, slash, oddsym, eql, neq, lss, leq, gtr, geq, lpa...