text
stringlengths
14
6.51M
unit gameTest; {$mode objfpc}{$H+} interface uses Classes, SysUtils, fpcunit, testutils, testregistry, sudokuGame,sudokuUtil,arrayUtils,laz2_DOM,controls,game_display; type { TGameTest } TGameTest= class(TTestCase) private fGame:TSudokuGame; fDocument:TXMLDocument; fModeSwitchEvent: TKeyEven...
unit stextinput; {$mode delphi} interface uses Classes, SysUtils, And_jni, AndroidWidget, systryparent; type {Draft Component code by "Lazarus Android Module Wizard" [12/30/2017 4:39:55]} {https://github.com/jmpessoa/lazandroidmodulewizard} {jVisualControl template} jsTextInput = class(jVisualControl) private...
{** * License * * 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 ...
{***************************************************************************} { } { DelphiUIAutomation } { } { ...
unit RadStudioHelpers.Example.Message.FrmMain; 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; type TForm2 = class(TForm) ...
unit FuncoesDsi; interface uses Windows, Classes, SysUtils, WinSock, Variants, MaskUtils, DB, Printers, DateUtils, Controls, WinSpool, Registry, Messages, ActiveX, SHDocVw, Forms, CDO_TLB, ADODB_TLB, Dialogs, StdCtrls, IdGlobal, IdHash, IdHashMessageDigest; { Delphi pode usar também a API do Windows Sleep. ...
unit textdata; interface uses activex, sysutils; function HexToStr (num :Cardinal; digits :integer) :String; function DataToStr (p :pointer; size :integer) :String; function DataSize (s :string) :integer; function StrToData (s :string) :pointer; procedure StrData (source :string; var dest); function Pt...
{ Copyright (C) 2001-2008 Benito van der Zander, www.benibela.de This file is part of API Manager. API Manager is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the L...
{$IOException true } Program MyProgram; var a : integer; b : real; begin a := 0; // one line b := 1.; /* multi line */ writeLn(b, ' ', b:8:4); if (b >= 42) then b >> 1; else b = a|b; while (true and not false) writeln ('Hello, world!'); end. { end of program
{hint: Pascal files location: ...\AppColorPickerDemo1\jni } // AppColorPickerDemo1 for LAMW (Lazarus Android Module Wizard) // Author: neuro // Date: July 16, 2022 unit unit1; {$mode delphi} interface uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes, SysUtils, AndroidWidget, Laz_A...
unit ADC_Errors; interface uses ADC_Const; type TAdcErrorsRec = record ErrorCode: Integer; // код ошибки ErrorStr: string; // расшифровка end; const ADC_TOTAL_ERRORS = 16; ADC_ERROR_STRING: array [1..ADC_TOTAL_ERRORS] of TAdcErrorsRec = ( (ErrorCode: ADC_ERROR_NOTSU...
Program PinkFluffyUnicornDancingOnRainbow; uses Crt, sysutils; const UNICORN_HEIGHT = 5; UNICORN_WIDTH = 21; SPACE_OFFSET = 13; type unicorn_array = array [1..UNICORN_HEIGHT] of string[UNICORN_WIDTH]; const RATE = 100; COLORS_COUNT = 5; OPEN_UNICORN : unicorn_array = ( ' /| ', ...
{==============================================================================* * Copyright © 2020, Pukhkiy Igor * * All rights reserved. * *============================================================================...
unit Mercado.Libre.Consts; interface const ML_APIBASE = 'https://api.mercadolibre.com'; /// <summary> /// Cada vez que realize a chamada que muda o code por um ACCESS_TOKEN, /// também terá o dado de um refresh_token, que deverá guardar para /// trocá-lo por um ACCESS_TOKEN uma vez expirado. /// Para ren...
unit logtreeview; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Comctrls, Controls, MultiLog, LResources, Graphics; type { TLogTreeView } TLogTreeView = class (TCustomTreeView) private FImgList: TImageList; FChannel: TLogChannel; FLastNode: TTreeNode; FParentNode: TTreeNode; fu...
unit RepositorioNcmIBPT; interface uses DB, Auditoria, Repositorio; type TRepositorioNcmIBPT = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; function GetIdentificador...
// Fit4Delphi Copyright (C) 2008. Sabre Inc. // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software Foundation; // either version 2 of the License, or (at your option) any later version. // // This program ...
unit UnZkBasic; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ImgList, ComCtrls, ToolWin, ExtCtrls, OleCtrls, Grids,System.ImageList, PStope_GzmGuidClass, UMainDataModule; type TZkBasicForm = class(TForm) Splitter1: TSplitter; CoolBar1:...
unit unComPort; interface uses Windows, SysUtils; type TComPortSpeed = ( cps110 = CBR_110, cps300 = CBR_300, cps600 = CBR_600, cps1200 = CBR_1200, cps2400 = CBR_2400, cps4800 = CBR_4800, cps9600 = CBR_9600, cps14400 = CBR_14400...
unit uDataType; (* Type Description Pointer Record ------------------------------------------------------------------------------ Boolean A logical value (true or false). PBoolean ByteBool An 8-bit logical value. (Boolean). WordBool An 16-bit logical value...
PROGRAM Ident; { Identical particles in quantum mechanics: Time development of two noninteracting identical particles in a one-dimensional infinite square well. } { By Dan Styer (dstyer@physics.oberlin.edu). Version 1.0. 29 August 1994. } { This version uses the CUPS utilities of 7 July 1994, including workarou...
unit MdUnit; {$mode objfpc}{$H+} interface uses Classes, SysUtils, DataStorage, DbUnit; type { TMdStorage } TMdStorage = class(TInterfacedObject) public DbTableInfoList: TStringList; Filename: string; procedure SaveToFile(); function LoadFromFile(): Boolean; procedur...
PROGRAM WorkWithQueryString(INPUT, OUTPUT); USES DOS; FUNCTION GetQueryStringParameter(Key: STRING): STRING; VAR I, N: INTEGER; Query, Strin: STRING; BEGIN Query := GetEnv('QUERY_STRING'); Strin := ''; N := POS(Key, Query) + LENGTH(Key) + 1; FOR I := N TO LENGTH(Query) DO IF Query[I] = '&' THEN...
unit PartyList; { TITLE: PROGRAMMING II LABS SUBTITLE: Practical 2 AUTHOR 1: Carlos Torres Paz LOGIN 1: carlos.torres@udc.es AUTHOR 2: Daniel Sergio Vega Rodriguez LOGIN 2: d.s.vega@udc.es GROUP: 5.4 DATE: 03/05/2019 } interface uses SharedTypes; const NULL = nil; type tPosL = ^tNode; tList =...
{************************************************ An Object to query Sphinx full text search engine using SphinxQL protocol (MySql Clone Protocol) ************************************************} unit Alcinoe.SphinxQL.Client; interface uses Alcinoe.MySql.Client, Alcinoe.MySql.Wrapper; Type {---...
unit flzma2; interface uses Classes, Windows, SysUtils; { * Error Codes * } const FL2_error_no_error = 0; FL2_error_GENERIC = 1; FL2_error_internal = 2; FL2_error_corruption_detected = 3; FL2_error_checksum_wrong = 4; FL2_error_parameter_unsupported = 5; FL2_error_parameter_outOfBound ...
// Fit4Delphi Copyright (C) 2008. Sabre Inc. // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software Foundation; // either version 2 of the License, or (at your option) any later version. // // This program ...
program ForLoop; var loopCount : Integer; begin {ForLoop} for loopCount := 1 to 10 do if (loopCount MOD 2 = 0) then writeln('value of loopCount: ', loopCount); end. {ForLoop}
unit ButtonComponent; interface uses System.SysUtils, System.Classes, FMX.Types, FMX.Controls, FMX.Layouts, FMX.Objects, System.UIConsts, FMX.StdCtrls, FMX.Ani, FMX.Effects, System.UITypes; type TButtonComponent = class(TLayout) protected LytContent: TLayout; private TxtValue: String; RecBg: TR...
unit LookupControls; { Create By LXM Modified By HYL } interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, stdctrls, dbtables, extctrls, RxCtrls, dbctrls, db, SelectDlg, PLabelPanel ,buttons; type EOperationInvalid = class(Exception); TLabelStyle = (Normal,Notnil...
unit ApkBuild; {$mode objfpc}{$H+} interface uses {$if defined(Windows)} {$define Emulator} Windows, {$elseif not defined(Darwin)} {$define Emulator} XWindow, {$endif} Classes, SysUtils, ProjectIntf, Forms, LamwSettings, LCLVersion; type { TApkBuilder } TApkBuilder ...
unit GerarBackup; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, IBServices, Spin, Buttons, ExtCtrls; type TFGerarBackup = class(TForm) BTGeraBack: TButton; Button2: TButton; Memo1: TMemo; IBBackupService1: TIB...
unit UFormatacao; interface uses System.SysUtils,IniFiles,ibdatabase,data.db; function FormatarCPFCNPJ(const Doc: String): String; function EliminarFormatacao(sTexto: String): String; //function LeIni(strArqIni, strSecao, strVariavel: string): string; implementation function FormatarCPFCNPJ(const Doc: String): Str...
unit TSTOHackSettings; interface Uses Classes, HsInterfaceEx, TSTOCustomPatches.IO, TSTOSbtp.IO, TSTOScriptTemplate.IO, TSTOHackMasterList.IO; Type THackIdxFileType = (hiftCustomPatch, hiftGameScript, hiftHackTemplate, hiftHackMasterList, hiftTextPools); THackIdxFileFormat = (hiffXml, hiffBin, hiffZip); ITS...
unit BaseWinFormApp; interface uses Forms, BaseApp, BaseForm, BaseWinApp; type PBaseWinFormAppData = ^TBaseWinFormAppData; TBaseWinFormAppData = record end; TBaseWinFormApp = class(TBaseWinApp) protected fBaseWinFormAppData: TBaseWinFormAppData; public ...
namespace Beta.Helpers; interface uses System, System.Globalization, System.Windows, System.Windows.Data; type BooleanToVisibilityConverter = public sealed class(IValueConverter) public method Convert(value: Object; targetType: &Type; parameter: Object; culture: CultureInfo): Object; method Conv...
unit UGlobals; interface const AppName = 'Maze'; AppVersion = 'v3.0'; AppAuthor = 'Kostas Symeonidis'; AppCopyright = '1996,2004 CyLog Software'; MIN_COLS = 2; MIN_ROWS = 2; MAX_ROWS = 256; MAX_COLS = 256; procedure ComputeMaxSize ( const a_iWidth, a_iHeight,...
{ ClickFORMS (C) Copyright 1998 - 2010, Bradford Technologies, Inc. All Rights Reserved. Purpose: A collection of map portals that interface with the old map manager. } unit UMapPortalMapMgr; interface uses UCell, UClasses, UMapPortalManager, UToolMapMgr; // *** Constants **************************...
unit uCadastro_Usuario; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uPadrao, StdCtrls, Mask, Focus, Buttons, Grids, DBGrids, ExtCtrls, ComCtrls, Menus, uManipulacaoDados, DB, ADODB, uDataMod...
{ $OmniXML: OmniXML/OmniXML_Types.pas,v 1.1 2008/08/31 15:28:15 mremec Exp $ } (******************************************************************************* * 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 * L...
(* Copyright (c) 2011-2012, Stefan Glienke 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 must retain the above copyright notice, this list of conditions ...
unit zutil; interface uses Windows, SysUtils, ShellAPI, Classes, Masks; const // Массив для перекодировки W-1251 --> DOS DOSDecode : array[0..$FF] of byte = ( $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b,$0c,$0d,$0e,$0f,$10,$11,$12,$13,$14, $15,$16,$17,$18,$19,$1a,$1b,$1c,$1d,$1e,$1f,$20,$21,$22,$23,...
unit NLibDateTime; interface uses System.Classes, System.SysUtils, System.UITypes, System.UIConsts, System.Types, Winapi.Winsock, Winapi.Windows; { Datetime type conversion } function StringToDateTime(ADateStr: string): TDateTime; function TryStringToDate(ADateStr: string; var AOutValue: TDateTim...
unit DatabaseAuthentificationFormViewModel; interface uses SystemAuthentificationFormViewModel, SysUtils, Classes; type TDatabaseAuthentificationFormViewModel = class (TSystemAuthentificationFormViewModel) private FCurrentDatabaseName: String; FDatabaseNames: TStrings; proced...
unit SignAndVerify_TLB; // ************************************************************************ // // WARNING // ------- // The types declared in this file were generated from data read from a // Type Library. If this type library is explicitly or indirectly (via // another type library referring to this type libr...
Program B10_60; Uses crt; Const InputFile = 'matsym3.in'; OutputFile = 'matsys3.out'; MaxNumber = 100; Var N: Longint; a: Array[1..MaxNumber, 1..MaxNumber] Of Byte; Procedure readFile; Var f: Text; i, j: Longint; Begin Assign(f, InputFile); Reset(f); Readln(f, n); For i := 1 To n Do For j :=...
unit xEmail_U; interface uses system.classes, xEmail_I; type TEmail = class (TInterfacedObject, IEmail, IEmailSendTo, IEmailSubject, iEmailBodyPlainText) strict private slSendTo : TStringList; sSubject : String; sBodyPlainText : String; private function GetSubject : St...
unit Options; {$include kcontrols.inc} interface uses {$IFDEF FPC} LCLType, LCLIntf, LResources, {$ELSE} Windows, Messages, {$ENDIF} SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, ExtCtrls, KControls, KHexEditor, Basic; type { TOptionsForm } TOptionsForm ...
unit Auxo.DependencyInjection; interface uses System.SysUtils, System.Generics.Collections, System.Rtti, Auxo.Core.Reflection; type IObjectFactory = interface procedure GetObject(var obj); end; TServiceProvider = class private FObjects: TDictionary<TRttiType, IObjectFactory>; constructor Cre...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1:...
{ Gerador de Números de Loteria – Crie um algoritmo que gere o número de um bilhete de loteria de acordo com as seguintes instruções: a) O número deverá ter 7 dígitos; b) Cada dígito deve ser armazenado numa posição de um vetor criado por você (ou seja, esse vetor terá que ter 7 posições); c) Para gerar o número, você ...
unit InfoMoneyTest; interface uses dbTest, dbObjectTest, TestFramework, ObjectTest; type TInfoMoneyTest = class(TdbObjectTestNew) published procedure ProcedureLoad; override; procedure Test; override; end; TInfoMoney = class(TObjectTest) function InsertDefault: integer; override; public fu...
unit UConstants; interface uses Winapi.Messages; const cINIFolder = 'SendDataWMS'; // время c1Sec = 1000; c1SecDate = 1/24/60/60; c1Minute = c1Sec * 60; // thread cCreateSuspended = True; cCreateRunning = False; // шаблоны сообщений cExceptionMsg = '[%s] %s'; cThreadExceptionMsg = ...
unit UGrid; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type TField = Array of Array of Boolean; type TGrid = class protected FField: TField; FRows, FCols: UInt16; function Neighbours (x, y: UInt16): Byte; public procedure SetSize (ARows, ACols: UInt16); procedure Calculate;...
Program tetris; Const HEIGHT = 20; // Altura do grid (área interna, sem contar as bordas) HeightPlusOne = 21; // Altura do grid + 1 WIDTH = 11; // Largura do grid (área interna, sem contar as bordas) WidthPlusOne = 12; // Largura do grid + 1 LEFT = -1; // Ident...
unit DiffTempCalibration; interface uses CommonCalibration; type TDiffTempCalibrationTable = class( TCalibrationTable ) private fBegTemp: integer; //обычная (не дифф.) температура в градусах! fEndTemp: integer; //обычная (не дифф.) температура в градусах! fMaxFactor: single; //максимальное значение кали...
unit SelectEditCommands; interface uses SysUtils, Classes, mapper, mvc_base, tiObject, SelectEditController, SelectEditViewFrm, AppCommands; type TSelectEditCommand = class(TCmdNotifyEvent) public function Controller: TSelectEditController; reintroduce; end; {: Create a new select param. } TCmdDoC...
(** * Utility for exporting very large files into multiple parts. *) unit ExportLargeFile; (** * Deletes files `[filename].001` through `[filename].999`. * * @param filename the prefix of the files to delete *) procedure clearLargeFiles(filename: String); var i: Integer; begin for i := 1 to 999 do begin ...
unit MeDocCOMTest; interface uses DB, TestFramework; type // Класс тестирует поведение класса TELOLAPSalers. TMedocCOMTest = class(TTestCase) protected // подготавливаем данные для тестирования procedure SetUp; override; // возвращаем данные после тестирования} procedure TearDown; override; p...
unit PhysicsContacts; interface Uses MapStructure, PhysicsParticles, PhysicsArifm, SysUtils, Windows, Math; Const EPS = 0.000001; VELOCITY_EPS = 0.00001; PullBack = 0.8; Type {############################################################################### TContact2P К...
{***************************************************************************} { } { Delphi.Mocks } { } { ...
// Fit4Delphi Copyright (C) 2008. Sabre Inc. // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software Foundation; // either version 2 of the License, or (at your option) any later version. // // This program is ...
unit PngBitBtn; interface uses Windows, Messages, Classes, Graphics, Controls, Buttons, pngimage, PngFunctions; type TPngBitBtn = class(TBitBtn) private FPngImage: TPngImage; FPngOptions: TPngOptions; FCanvas: TCanvas; FLastKind: TBitBtnKind; FImageFromAction: Boolean; FM...
unit UClasses; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TTransporte = class private FNome : string; public property Nome : string read Fnome write FNome; procedure Move(imetros : integer); virtual; published Constructor Create...
PROGRAM hello (output); {Write 'Hello, compiler''s world.' ten times.} VAR i : integer; BEGIN {hello} FOR i := 1 TO 10 DO BEGIN writeln('Hello, compiler''s world.'); END; END {hello}. {Number tokens} 0 1 20 00000000000000000032 31415926 3.1415926 3.1415926535897932384626433 0.0...
(******************************************************************************* The MIT License (MIT) Copyright (c) 2011 by Sivv LLC, Copyright (c) 2007 by Arcana Technologies Incorporated Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated document...
unit Unit_OpenGLWrapper; // // Created by: Alexander Oster - tensor@ultima-iris.de // (***** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or ...
unit UnitPic; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TFormPic = class(TForm) imgBitmap: TImage; procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); procedure FormShow(Sender: TObject);...
{ $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...
unit uFramework; interface uses System.Generics.Collections; type IObserver = interface procedure Atualizar(); end; TSubject = class abstract strict private FObservers: TList<IObserver>; public constructor Create(); procedure Attach(AObserver: IObserver); procedure Detach(AOb...
{***************************************************************************** * The contents of this file are used with permission, 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 * ht...
{ Run an adhoc query as a script - good for multiple queries, separated by ;s Bit of a hack though to get multiple queries running. Classes: TFormRunAsScript - The form ToDo: Remove the need to shell out to a script engine. Better to run the quesies from within the SQLManager process. } unit frm_runas...
{ $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...
unit Form.Main; interface uses System.SysUtils, System.Variants, System.Classes, System.JSON, System.Generics.Collections, System.Net.HttpClient, Winapi.Windows, Winapi.Messages, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireD...
Unit Work; Interface Uses Classes, HttpSend, GlobVar ; Var bCntRun : LongInt ; // кол-во работающих потоков bCntAll : LongInt ; // кол-во созданных потоков bCntDone : LongInt ; // кол-во отработавших потоков bCntErr : LongInt ; // кол-во потоков с ошибками bCntPars : LongInt ; // кол-во спарсен...
unit uHoldings; {$mode objfpc}{$H+} interface uses Classes, SysUtils, uLibrary; type IHolding = interface; IHoldingsEnumerator = interface ['{382D0026-DCFB-41C5-A134-A6DCCF1CE1F8}'] function GetCurrent: IHolding; function MoveNext: Boolean; property Current: IHolding read GetCurrent; en...
// Fit4Delphi Copyright (C) 2008. Sabre Inc. // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software Foundation; // either version 2 of the License, or (at your option) any later version. // // This program ...
unit Cliente; interface uses System.Classes ; Type TCliente = class public Nome : String; Telefone : String; Endereco : String; Cidade : String; UF : String; constructor Create; procedure CadastrarCliente; end; implementation { TCliente } procedure TCliente.Cad...
unit TNsRemoteProcessManager.Infrastructure.UNIX.ProcessController; interface uses TNsRemoteProcessManager.Domain.Interfaces.ProcessFunctionality, TNsRestFramework.Infrastructure.LoggerFactory, TNsRemoteProcessManager.Domain.Models.Process, {$IFNDEF FPC} System.Classes; {$ELSE} Process, Classes,...
unit Ai01; { ULAI01.DPR ================================================================ File: AI01.PAS Library Call Demonstrated: cbAIn() Purpose: Reads an A/D Input Channel. Demonstration: Displays the analog input on a user-specified ...
unit Alcinoe.iOSApi.AudioToolbox; interface uses Macapi.CoreFoundation; {$M+} const libAudioToolbox = '/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox'; const kSystemSoundID_Vibrate = 4095; type SystemSoundID = UInt32; {****************************************************...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://w3.collabrian.net/ClickFormsWS/Appraisal.asmx?WSDL // >Import : http://w3.collabrian.net/ClickFormsWS/Appraisal.asm...
unit Unit2; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, IdBaseComponent, IdComponent, IdUDPBase, IdUDPClient, Vcl.WinXCtrls; type TForm2 = class(TForm) IdUDPClient1: TIdUD...
unit Snk; {$mode objfpc}{$H+} interface uses Classes, SysUtils, RstrFld, Graphics; type TRGB = record R, G, B: integer; end; TPunkt = record X, Y: integer; Farbe: TRGB; end; TSnake = class private { private declarations } fTeile: array of TPunkt; ...
unit uPrincial; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type ITipoPrazo = interface ['{27A3189F-B95F-4762-8000-15672FE3DFD0}'] function ConsultarDescricao:string; function ConsultarJuros: string; function ConsultarProjecao(const...
unit IPGeoLocation.Providers.IPTwist; interface uses IPGeoLocation.Interfaces, IPGeoLocation.Core, System.Net.HttpClient, System.Classes; type {$REGION 'TIPGeoLocationProviderIPTwist'} TIPGeoLocationProviderIPTwist = class sealed(TIPGeoLocationProviderCustom) private { private declarations } protect...
unit GuideArticleLoss; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DB, DBTables, StdCtrls, ExtCtrls, Grids, DBGrids, Buttons, Datasnap.DBClient, dsdDB, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, dxSkinsCore, dxSk...
unit SharedMemoryProtocol; interface uses Winapi.Windows, System.SysUtils, System.Classes, SharedConst, SharedMemoryAllocator; type // передача файлов (учет состояний и т.д.) TRTransactionFileTransfer = class public FileName: String; // имя файла CurrentPosition: UInt64; // позиция в файле ис...
unit lPush; interface uses System.SysUtils, System.Types, System.UITypes, System.Generics.Collections, System.Classes, System.Variants, FMX.Types, FMX.Forms, System.Threading, System.DateUtils, System.JSON, System.PushNotification, FMX.Layouts, FMX.Memo, FMX.StdCtrls {$IFDEF ANDROID} , FMX.PushNotifica...
unit ConfigVersion; interface type TConfigVersion = class private function GetVersionNuevaAlArrancar: boolean; procedure SetVersionNuevaAlArrancar(const Value: boolean); public property VersionNuevaAlArrancar: boolean read GetVersionNuevaAlArrancar write SetVersionNuevaAlArrancar; end; implementa...
program clipping; {$IFNDEF HASAMIGA} {$FATAL This source is compatible with Amiga, AROS and MorphOS only !} {$ENDIF} { Project : clipping Source : RKRM } { * The following example shows the use of the layers library call * InstallClipRegion(), as well as simple use of the graphics library * regions funct...
unit frmUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Grids, VersInfo, ASLink, ExtCtrls, Buttons; type String16 = String[32]; EInvalidData = class(Exception); TForm1 = class(TForm) Button1: TButton; OpenDialog1: TOpenDialog; SaveDialo...
(***************************************************************************** * A simple bubble sort program. Reads integers, one per line, and prints * * them out in sorted order. Blows up if there are more than 49. * *****************************************************************************) PRO...
unit uSimulation; interface uses uTypes; var // Read Only GTime, // Global time GTimeStep: U4; // Time interval between GetGTime function TimeDifference(const NowTime, LastTime: U4): U4; overload; function TimeDifference(const NowTime, LastTime: U8): U8; overload; function IntervalFrom(const StartTi...
unit u_ml; {$mode objfpc}{$H+} interface uses Classes, SysUtils, dynmatrix, dynmatrixutils; type { LinearRegression } { TLinearRegression } TLinearRegression=class(TObject) Theta : TDMatrix; public procedure fit(X_train,y_train:TDMatrix; lambda:double = 0.5); function predict(X_test:TDMatrix):T...
unit uUnicodeTables; interface uses JvCharMap; type RFilter = record Name: string; Value: TJvCharMapUnicodeFilter; end; const FilterTable: array[TJvCharMapUnicodeFilter] of RFilter = ( (Name: '(keine)'; Value: ufUndefined ), (Name: 'Basic Latin (ASCII-Code...
//Verificado automaticamente em 16/06/2020 09:28 unit m_Empresa; { ================================================================================ | DATA |DESENVOLVEDOR|HISTORICO DA ALTERACAO DO CODIGO | |----------|-------------|-----------------------------------------------------| |02/04/202...
program testPOWER; {uses a function to calculate exponents} var n: integer; x: real; function POWER (x:real; n: integer): real; {finds x to the n for n a positive integer} var i: integer; prod: real; begin prod := 1; for i := 1 to n do prod := prod * x; POWER := prod; end; {POWER} ...
unit frmEfxMacro; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, lseu, lse_efx, ImgList, ComCtrls, ToolWin, ExtCtrls, StdCtrls, ActnList, SynEdit, SynMemo; type TEfxMacroFrame = class(TFrame) ImageList1: TImageList; ToolBar1: TToolBar; ToolB...