text
stringlengths
14
6.51M
unit Q3BSP; interface uses OpenGL, Windows, Frustum, classes, Dialogs, math3d, q3shaders, q3types, q3SkyBox, cam; procedure ChangeGamma(var color: array of byte; factor: single); type TBSPFaceSort = record FaceIndex: integer; distance: single; end; var numSolid, numAdditive, numTran...
unit UzLogConst; interface type TMode = (mCW, mSSB, mFM, mAM, mRTTY, mOther); TBand = (b19, b35, b7, b10, b14, b18, b21, b24, b28, b50, b144, b430, b1200, b2400, b5600, b10g); TPower = (p001, p002, p005, p010, p020, p025, p050, p100, p200, p500, p1000); const HiBand = b10g; type TBandBool = array[b19..HiB...
unit uiwin.gdi; interface (* uiwin.gdi 用 . 代表对象 uiwin_drag 用 _ 代表处理过程 功能支持 *) uses Windows, ui.color; type PWinBitmap = ^TWinBitmap; TWinBitmap = packed record BitmapHandle : HBitmap; BitmapInfo : Windows.TBitmapInfo; Width ...
(* * 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 distributed in the hope that it will be use...
unit uDailyAmount; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, VclTee.TeeGDIPlus, AdvUtil, Vcl.Grids, AdvObj, BaseGrid, AdvGrid, VCLTee.TeEngine, VCLTee.Series, Vcl.ExtCtrls, VCLTee.TeeProcs, VCLTee.Chart...
unit sensormanager; {$mode delphi} interface uses Classes, SysUtils, And_jni, AndroidWidget; type //Hint ref: http://developer.android.com/reference/android/hardware/SensorEvent.html TSensorType = ( stNone= 0, // stAll = -1! stAccelerometer, // = 1 A constant describing an accelerometer sensor typ...
unit BDConstants; interface type TResultType = (rtBoolean = 0, rtCurrency, rtInteger, rtString); const FS_TYPE_DIRECTORY: char = 'D'; FS_TYPE_FILE: char = 'F'; BOOLEAN_SI: char = 'S'; BOOLEAN_NO: char = 'N'; POSICION_LARGO: char = 'L'; POSICION_CORTO: char = 'C'; CONSULTA_TIPO_CARACTERISTICA: char...
unit ObjDir; {********************************************** Kingstar Delphi Library Copyright (C) Kingstar Corporation <Unit>对象目录服务 一组相关对象注册在一个Category下面 <What> <Written By> Huang YanLai (黄燕来) <History> **********************************************} interface uses Classes, Contnrs; typ...
program diamond; var height, n, k, i: integer; begin while (height mod 2 = 0) or (height <= 0) do begin write('Please, enter your height of the diamond: '); read(height); end; writeln; n := height div 2; for k := 0 to n do begin for i := k to n - 1 do write(' ...
unit rrEvent; { Trida TRREv definuje udalost na kolejisti, na kterou je mozne reagovat. Typy udalosti: - obsazeni/uvolneni casti useku - zmena stavu IR cidla - uplynuti urcite doby Definicni string udalosti: - usek: "typ;state;part" - IR: "typ;state;irid" - cas: "typ;timeSec" } interface us...
unit uLibrarySaxParser; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Windows, SAX, SAX_XML, uLibrary, uSaxBase, uLibraryBuilder, typinfo; type {$REGION Factory} { TLibraryFactory } TLibraryFactory = class private fSaxReader: TSaxReader; fSaxHandler: TSaxHandler; fLibrary: ILibrar...
{$MODESWITCH RESULT+} {$GOTO ON} (************************************************************************* Cephes Math Library Release 2.8: June, 2000 Copyright 1984, 1987, 1995, 2000 by Stephen L. Moshier Contributors: * Sergey Bochkanov (ALGLIB project). Translation from C to pseudocode. See s...
unit uPickItemEditor; {$mode objfpc}{$H+} interface uses Classes, SysUtils, VirtualTrees, Windows, Forms, Menus, LResources, Controls, Dialogs, uLibrary, uPropertyEditorNew, uAdvancedPropertyEditor, uVtBaseEditor; type { TPickItemData } TPickItemData = class(TPropertyData) protected fPickIte...
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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/ ...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
Program P110312; {Hien thi menu} Uses Crt; Const menu: set of char = ['1'..'5','X','S','L','N','T']; Var ch: char; BEGIN Clrscr; Writeln(' 1. Xem '); Writeln(' 2. Sua chua '); Writeln(' 3. Loai bo '); Writeln(' 4. Nhap them'); Writeln(' 5. Thoat '); Write('Lua chon cua ban: '); Repeat ch:...
unit Attributes; interface type TFieldDataType = (fdString,fdDouble,fdExtended,fdCurrency,fdDatetime); DCTableAttribute = class(TCustomAttribute) private FTableName : string; public constructor Create(const TableName: string); property TableName: string read FTableName write FTableName;...
unit PlgCustomScriptAndPatches; interface uses PlgTSTOCustomPlugin, TSTOPluginIntf, TSTOScriptTemplate.IO, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TTSTOCustomScriptPlugin = class(TTSTOCustomPlugin) Private FScriptTemplates : ITSTOScriptTemplateHacksIO; ...
program icon_start; {$IFNDEF HASAMIGA} {$FATAL This source is compatible with Amiga, AROS and MorphOS only !} {$ENDIF} {$MODE OBJFPC}{$H+}{$HINTS ON} {$UNITPATH ../../../Base/CHelpers} {$UNITPATH ../../../Base/Trinity} {$IFDEF AMIGA} {$UNITPATH ../../../Sys/Amiga} {$ENDIF} {$IFDEF AROS} {$UNITPATH ../../../Sy...
unit IBAN.Bulgarian; interface uses System.Classes, System.SysUtils, System.Generics.Defaults, System.Generics.Collections, IBAN.Base; type /// <summary>Структура представяща български IBAN на съставните му части</summary> TBulgarianBank = packed record BankSwift: string; BankBIC: string; BankBra...
unit uDemoChangeDateFormat; interface uses uDemo; type TDemoChangeDateFormat = class(TDemo) strict private function MDYtoDMY(const Input: String): String; strict protected procedure Run; override; public class function Description: String; override; end; implementation uses SysUtils, Re...
unit NLDOnOffSwitch; interface uses Classes, Controls, Windows, Messages, Graphics, Themes; type TNLDOnOffSwitch = class(TCustomControl) private FMouseHover: Boolean; FOff: Boolean; FSliderRect: TRect; procedure SetMouseHover(Value: Boolean); procedure SetOff(Value: Boolean); ...
// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://localhost:49000/wsdl/ITest // Version : 1.0 // (4/28/2011 11:57:07 PM - 1.33.2.5) // ************************...
unit GpTiming; interface uses Windows, SysUtils, Classes, GpAutoCreate; type Profile = class class function DebugStart(const name: string): int64; class function DebugStop(const name: string; timeLimit: cardinal = INFINITE; const errMsg: string = ''; logOnly: boolean = false): int64; class pr...
unit Mac.NativeNotifications; interface uses System.SysUtils, Macapi.Foundation, Macapi.Helpers, Macapi.ObjectiveC, Macapi.ObjCRuntime, System.Classes; procedure ShowSystemNotification(const aTitle, aSubtitle, aText: string); procedure ShowSystemNotificationWithAction(const aTitle, aSubtitle, aText, aButton...
PROGRAM ThreeNumberSort; VAR a, b, c: INTEGER; swap_help: INTEGER; BEGIN Write('Please enter the first number: '); ReadLn(a); Write('Please enter the second number: '); ReadLn(b); Write('Please enter the third number: '); ReadLn(c); IF a > b THEN BEGIN swap_help := a; a := b;...
{ ID:because3 PROG:nuggets LANG:PASCAL } program nuggets; const maxn=65280; var f:array [1..maxn] of boolean; s:array [1..10] of longint; i,j,n,ans:longint; function min(a,b:longint):longint; begin if a>b then exit(b) else exit(a); end; function max(a,b:longint):longint; begin if a>b the...
unit CorrespondentAccountTest; interface uses dbTest, dbObjectTest, ObjectTest; type TCorrespondentAccountTest = class (TdbObjectTestNew) published procedure ProcedureLoad; override; procedure Test; override; end; TCorrespondentAccount = class(TObjectTest) function InsertDefault: integer; overr...
PROGRAM ArrayPlusPlus; CONST MAX_SIZE = 10; TYPE IntegerArray_1_10 = ARRAY [1..MAX_SIZE] OF INTEGER; IntegerArray_a_z = ARRAY['a'..'z'] OF INTEGER; DynamicIntegerArray = ARRAY [0..10] OF INTEGER; DynamicIntegerArrayCharIndex = ARRAY [CHAR] OF INTEGER; PROCEDURE InitArray(VAR arrayToInitialise: ARRAY OF INTEGER; i...
unit Form1; interface uses SmartCL.System, SmartCL.Graphics, SmartCL.Components, SmartCL.Forms, SmartCL.Fonts, SmartCL.Borders, SmartCL.Application, SmartCL.Grid, SmartCL.Grid.Columns; type TStock = record StockCode : string; Price : float; StockLevel : integer; end; TForm1 = c...
unit IdTestCoderQuotedPrintable; interface //http://www.freesoft.org/CIE/RFC/1521/6.htm uses IdCoder, IdCoderQuotedPrintable, IdObjs, IdStack, IdStream, IdTest, IdSys; type TIdTestCoderQuotedPrintable = class(TIdTest) private protected function EncDec(const aStr:string):...
unit LaunchLinks; {$mode objfpc}{$H+} interface uses Classes, SysUtils, LaunchPatch, LaunchReddit, LaunchFlickr, BaseModel, JSON_Helper; type IBaseLaunchLinks = interface(IBaseModel) ['{CD2B10FD-4184-42A2-BB85-D47DB841C103}'] function GetArticle: string; function GetFlickr: ILaunchFlickr; function ...
unit rLvUtils; interface uses ComCtrls; procedure ScrollToItem(LV: TListView; LI: TListItem); procedure ScrollToSelectedItem(LV: TListView); procedure ScrollToLastItem(LV: TListView); implementation uses Windows, Messages; procedure ScrollToItem(LV: TListView; LI: TListItem); var Fix: Integer; begin if As...
{*****************************************************************} { } { ModLink } { Copyright (C) 2002 - 2013 Ing. Ivo Bauer } { All Rights Reserved. ...
unit Controllers.User; interface uses Horse, GBSwagger.Path.Attributes, Models.User; type [SwagPath('users', 'Usuários')] TUserController = class private FRequest: THorseRequest; FResponse: THorseResponse; public [SwagGET('Listar usuários')] [SwagParamQuery('id', 'Código', False, True)] [...
unit ECText; //{$INCLUDE Versions.inc} interface uses Windows, SysUtils, Messages, Classes, Graphics, Controls, Forms, Dialogs, Menus, StdCtrls, ExtCtrls, Grids, contnrs, EStringGrid, Buttons; type TInplaceSpeedButton = class(TSpeedButton) {$IFDEF REQUESTALIGN_FIXED} protected ...
unit TelegaPi.Types.InlineQueryResults; interface uses REST.Json.Types, TelegaPi.Types.ReplyMarkups, TelegaPi.Types.InputMessageContents; type /// <summary> /// This object represents one result of an inline query. Telegram clients /// currently support results of the following 19 types /// /// </...
unit uMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Imaging.jpeg, IniFiles, Vcl.ExtCtrls, Vcl.Grids, Winapi.ShellApi, Winapi.TlHelp32, uFunctions; type TfrmMain = class(TF...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
unit dinamic_stack; {* implementação de estrutura de dados pilha utilizando ponteiros *} interface {* definição de tipos *} type data = integer; type node = record item : data; next : ^node; end; type pointer = ^node; type stack = record bottom : pointer; top : pointer;...
unit EspecificacaoMovimentosPorCodigoCaixa; interface uses Especificacao, Caixa; type TEspecificacaoMovimentosPorCodigoCaixa = class(TEspecificacao) private FCaixa :TCaixa; public constructor Create(Caixa :TCaixa); public function SatisfeitoPor(Objeto :TObject): Boolean; override; end; impl...
unit Alimama_Const; interface uses System.SysUtils,System.Classes, IdHashMessageDigest ; var //程序全局变量 Var_Params : TStringList; //请求参数列表 Var_MD5 : TIdHashMessageDigest5; //md5 ...
{$MODESWITCH RESULT+} {$GOTO ON} (************************************************************************* Copyright (c) 2009, Sergey Bochkanov (ALGLIB project). >>> SOURCE LICENSE >>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
unit IDETypes; {$mode objfpc}{$H+} interface uses fgl, NodeTreeUnit, typinfo; type TItemProp = class private FActive: Boolean; procedure SetActive(AValue: Boolean); public Name: string; Value: string; DisplayName: string; DisplayValue: string; Additional: string; IsSpecial: Boo...
Program projet; {$IFDEF FPC}{$MODE OBJFPC}{H$H+}{$ENDIF} USES Crt, sysutils; const N = 5; M = N * N; MORT = 0; VIE = 1; { exercise 3.1 et 3.2 } Type typePosition = record x, y : integer; end; tabPosition = array[0..M-1] of typePosition; typeGrille = array[0..N-1,0..N-1] of Integer; procedure affi...
namespace Sunko; type Methods = static class public static function GetFunc0(var t: Tree; funcname: string): object; begin funcname := funcname.ToLower; if funcname.StartsWith('ktx.') then begin try Result := KTX.KTX.FunctionCall(funcname); except on e: ...
unit UAMC_Util_ISGN; { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted © 1998-2012 by Bradford Technologies, Inc. } { Utility module for ISGN} interface uses Classes, IniFiles, Contnrs, UGlobals, UWinUtils,...
unit VBands; // %VBands : 表格形式的外观 (***** Code Written By Huang YanLai *****) interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs; type TVCustomBand = class; TVFrame = class(TPersistent) private FDrawLeft: boolean; FDrawTop: boolean; FDrawBottom: boolean; ...
unit UAMC_BuildENV; { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. } { This unit builds the ENV file or it exports the AIReady XML to the } { FNC Uploader where Appra...
unit DW.SysUtils.Helpers; {*******************************************************} { } { Kastri Free } { } { DelphiWorlds Cross-Platform Library } { ...
unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,ComWriUtils; type TForm1 = class(TForm) ListBox1: TListBox; Edit1: TEdit; Button1: TButton; Edit2: TEdit; procedure FormCreate(Sender: TObject); procedure Button1Click(Sender: T...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC FireMonkey Login dialog } { } { Copyright(c) 2004-2013 Embar...
{ Invokable interface ITxRxWS } unit TxRxWSIntf; interface uses InvokeRegistry, Types, XSBuiltIns, CommunicationObj; type ITxRxWS = interface(IInvokable) ['{8F256C8D-4844-411C-8018-B8E492EF5677}'] // ITxRxStatus function Get_Tx_Caldeo: boolean; safecall; function Get_Tx_Anodo: boo...
unit ConfigOptions; interface uses SysUtils, Classes, Contnrs, TypInfo, Graphics, Controls, Forms, StdCtrls, ExtCtrls, Buttons; type TOptionControl = class; TOptionList = class(TObject) private FItems: TObjectList; function GetCount: Integer; function GetItem(Index: Integer): TO...
{***************************************************************************} { } { DelphiUIAutomation } { } { ...
unit CMSInfo; { ------------------------------------------------------------------------------ } interface { ------------------------------------------------------------------------------ } uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ImageLink, StdCtrls, ExtCtrls, Co...
unit MPDBs; { 多用途数据库状态管理库 } interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,DB,DBTables; type TDBInteractState = ( isInactive, // 非活动状态 isBrowse, // 浏览 isUpdate, // 编辑(修改) isInsert, // 插入(增加) isQuery); // 查询(过滤) { 界面元素 公共 : 切换按键(浏览,编辑,插入,查询)...
{ www.arrayof.com.br - mario.guedes@arrayof.com.br } unit Cotacao.Dolar.Model; interface uses System.SysUtils, System.Classes, IdContext, IdBaseComponent, IdComponent, IdCustomTCPServer, IdTCPServer, IdTCPConnection, IdTCPClient; type TdmModel = class(TDataModule) IdTCPClient1: TIdTCPClient; private ...
unit USysInfo; { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. } interface uses Windows, Classes, SysConst,SysUtils,Registry; type TSysInfo = Class(TObject) ...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC Sybase SQL Anywhere driver } { } { Copyright(c) 2004-2013 Embar...
unit uScaleHelper; interface type ScaleHelper = class private class var FPPI: Integer; /// <summary> /// Current and last known PPI /// </summary> class procedure SetPPI(Value: Integer); static; public class property PPI: Integer read FPPI write SetPPI; end; implementation uses Vcl.Forms...
unit ReferenceFormViewModel; interface uses ReferenceFormDataSetHolder, SysUtils, Classes; type TReferenceFormViewModel = class private protected FDataSetHolder: TReferenceFormDataSetHolder; procedure SetDataSetHolder(const Value: TReferenceFormDataSetHolder); public ...
unit NewDevice; {$mode objfpc}{$H+} interface uses Classes, SysUtils, sqldb, IBConnection, FileUtil, RTTICtrls, Forms, Controls, Graphics, Dialogs, ExtCtrls, Grids, Buttons, EditBtn, StdCtrls, LCLProc, Windows, ComObj, ActiveX, Variants, Process, Settings, Databases; type { TNewDeviceForm } TNewDevice...
unit AntennaWSImpl; interface uses InvokeRegistry, Types, XSBuiltIns, AntennaWSIntf, CommunicationObj; type TAntennaWS = class(TCommObj, IAntennaWS) public //Status function Get_Local: WordBool; safecall; function Get_Ventilacion: WordBool; safecall; function Get_Status: RadarStatusEn...
(*--------------------------------------------------------*) (* Exercise 7 (BSP. 2 TempCheck) *) (* Developer: Neuhold Michael *) (* Date: 25.11.2018 *) (* Verson: 2.0 *) (* checking val...
unit TelaConsultaRapidaCupom; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DB, DBTables, RxQuery, Grids, DBGrids, ExtCtrls, StdCtrls, CartaoCredito, Buttons, Mask, ToolEdit, AdvGlowButton, DBClient, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cx...
unit UArchiveView; interface uses Windows, SysUtils, Classes, Messages, Controls, ComCtrls, StdCtrls, ExtCtrls, FileCtrl, Graphics, Forms, Dialogs, Menus, ARCHIVES, UImageTabSheet, UImagePageControl, UMSPageControl, UContentView, JLXPComCtrls; type TArchivePageControl = class(TImagePageControl) ...
(* * модуль містить дерево класів фреймів для введення інформації в звітах * *) unit XReportFrame; interface uses xutils_h, kernel_h, checkedlist, Windows, ExtCtrls,Classes, Dialogs, dxEditor, dxEdLib, Controls, SysUtils, dxTL, dxTLClms, uZFilterCombo; type //------------------------------------...
(* Copyright (c) 2011, 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 and t...
unit UShop; interface uses W3Image, W3Graphics, UShopItem, UShopData; type TShop = class(TObject) public Items : array [0 .. 4] of TShopItem; Loaded : boolean; constructor Create(); procedure ResetItems(); procedure Draw(canvas : TW3Canvas); procedure CheckClicked(xPos, yPos : integer)...
unit exfiredacdriver; interface uses Classes, SysUtils, DB, DBClient, DBXCommon, Variants, exExporter, FireDAC.Comp.Client, FireDAC.Stan.Param, FireDAC.Phys.Intf, FireDAC.Phys.SQLPreprocessor; type { TexFireDACProvider } TexFireDACDataSnapOptions = class(TPersistent) private FActive: Boolean; FSe...
//Only compile for the OS X platform. {$IF ( (NOT Defined(MACOS)) OR (Defined(IOS)) )} {$MESSAGE Fatal 'AT.MacOS.App.pas only compiles for the OS X platform.'} {$ENDIF} // ****************************************************************** // // Program Name : Angelic Tech Mac OS X Library // Program Version: 2017 ...
unit DIOTA.Dto.Response.RemoveNeighborsResponse; interface uses DIOTA.IotaAPIClasses; type TRemoveNeighborsResponse = class(TIotaAPIResponse) private FRemovedNeighbors: Integer; public constructor Create(ARemovedNeighbors: Integer); reintroduce; virtual; property RemovedNeighbors: Integer read FR...
unit uServiceController; interface uses System.SysUtils, System.Classes, REST.Types, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client, REST.Response.Adapter, REST.Client, Data....
unit ETL.Component; interface uses Vcl.ExtCtrls, System.Classes, Vcl.StdCtrls, Vcl.Controls, ETL.Form.Grid, ETL.FileProject.Interfaces; type TComponentETL = class(TPaintBox, IComponentETL, ISourceETL) strict private FUpdated: Boolean; FFormGrid: TFoGrid; FLabel: TLabel; ...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
{****************************************************************************} { } { XML Data Binding } { } { ...
unit Endpoint_Helper; {$mode ObjFPC}{$H+} interface uses Classes, SysUtils; function EndpointToModel(const Endpoint: string; const Model: IInterface): string; implementation uses fphttpclient, opensslsockets, JSON_Helper; type IHTTPClient = interface(IInterface) ['{EBA0E8BA-DF22-4F24-AE98-8E71E74314DB}'] ...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC DataSnap metadata } { } { Copyright(c) 2004-2013 Embar...
unit WSDLDataSetPropertyEditorsReg; interface uses Classes, DesignIntf, DesignEditors, XMLClientDataSet, WSDLItems, unit_SoapHelpers; Type TWSDLMethods = class(TPropertyEditor) Public Function GetAttributes: TPropertyAttributes; Override; Procedure GetValues(Proc: TGetStrProc); Override; Function AllE...
unit TestAsync; interface uses BaseTestRest, RestException; type TTestAsync = class(TBaseTestRest) private procedure _GET_CancelRequestUsingOnAsyncRequestProcessEvent; procedure _GET_CancelRequestWhenDestroyingTheRestClientObject; published procedure GET_CancelRequestUsingOnAsyncRequestProcessEvent...
Unit BPThread; // Общий модуль с классом TBPError и TBPThread Interface Uses Classes, SyncObjs, SysUtils ; Type TErrRec = Record fURL : String ; // ошибочный урл fSrc : String ; // имя файла - результата fErr : Integer ; // Код ошибки End ; PErrRec = ^TErrRec ; {----------------------...
unit GoodsKindTest; interface uses dbTest, dbObjectTest, TestFramework, ObjectTest; type TGoodsKindTest = class (TdbObjectTestNew) published procedure ProcedureLoad; override; procedure Test; override; end; TGoodsKind = class(TObjectTest) function InsertDefault: integer; override; public ...
program exer16; var val:real; f1,f2,f3:integer; begin read(val,f1,f2,f3); if (val < f1) then writeln('faixa 1') else if (val >= f1) and (val < f2) then writeln('faixa 2') else if (val >= f2) and (val < f3) then writeln('faixa 3') else if (val >= f3) then writeln('faixa 4'); end. //EXERCICIO: Escreva um ...
unit uZToolBar; interface uses Windows, Messages, SysUtils, Classes, Controls, ToolWin, ComCtrls, Graphics; type ZToolBar = class(TToolBar) private { Private declarations } bmp: TBitmap; procedure AdvancedCustomDrawButton(Sender: TToolBar; Button: TToolButton; State: TCustomDrawState...
unit UAniIcon; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Menus, WinUtils, ShellUtils, StdCtrls, FontStyles, ExtCtrls, ImgList; type TForm1 = class(TForm) LeftPopup: TPopupMenu; Button1: TButton; Button2: TButton; FontStyles1: TFontStyles; Label...
unit USpotForm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, UzLogConst, UzLogGlobal, UzLogQSO, URigControl; type TSpotForm = class(TForm) FreqEdit: TEdit; CallsignEdit: TEdit; CommentEdit: TEdit; Panel1: TPanel; SendButton: TB...
unit Parse.SQL.Params; interface uses Data.DB; type TParseSQLParams = class public class function WheresComma( const AParams: TParams ): string; class function FieldsComma( const AParams: TParams ): string; class function ParamWhere( const AParams: TParams ): string; class function ParamUpdat...
unit fmt.bitmap; interface uses Types, ui.color; type PBitmapCoreHeader = ^TBitmapCoreHeader; TBitmapCoreHeader = packed record bcSize : DWORD; bcWidth : Word; bcHeight : Word; bcPlanes : Word; bcBitCount : Word; end; PBitmapInfoHeader = ^TBitmap...
unit dmCuentaMovimientosBase; interface uses SysUtils, Classes, DB, kbmMemTable, Tipos, dmThreadDataModule; resourcestring ERROR_INTERNO_VENTA = 'Error interno en la venta de acciones: %d'; type TMovimientoInversion = (miAnadirCapital, miRetirarCapital, miCompraAcciones, miVentaAcciones); TCuentaMovimi...
unit midimanager; //by Marco Bramardi {$mode delphi} interface uses Classes, SysUtils, And_jni, AndroidWidget; type TOnMidiManagerDeviceAdded=procedure(Sender:TObject;deviceId:integer;deviceName:string;productId:string;manufacture:string) of object; TOnMidiManagerDeviceRemoved=procedure(Sender:TObject;devic...
unit AccumLayerUnit; {Neural Network library, by Eric C. Joyce Note that this file does NOT seed the randomizer. That should be done by the parent program.} interface {************************************************************************************************** Constants } const LAYER_NAME_LEN = 3...
unit Taskbar; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs; type TTaskbarIconNotify = procedure (what : integer) of object; type TTaskbarStateIcon = class(TComponent) public constructor Create(aOwner : TComponent); override; ...
unit CMDContabilizacion; interface uses SysUtils, Classes, DB, DBTables, kbmMemTable, Dialogs; type TRSeccion = record seccion: string; importe: real; gastosFac: real; unidad: string; unidades: real; importeNeto: real; end; TDMDContabilizacion = class(TDataModule) QFacturas: TQue...
{$ifdef DEBUG} {$D+,L+,Y+,R+,I+,C+,S+,V+,Q+} {$endif} unit Luts; interface const MaxTableSize = 8190; {maximalni pocet zaznamu v tabulce} type PPtrLookUpTag = ^TPtrLookUpTag; TPtrLookUpTag = record key, age : word; p : pointer; end; PLookUpTableArray = ^TLookUpTableArr...
unit fConfig; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, fMain; type TfrmConfig = class(TForm) txtUp: TEdit; txtDown: TEdit; txtLeft: TEdit; txtRight: TEdit; Label1: TLabel; Label2: TLabel; Label3: TLabel; Label4:...
{******************************************************************************* * * * TksLoadingIndicator - Loading indicator control * * ...
unit ThreadUnit; {$mode objfpc}{$H+} { Advanced example - Dedicated CPU } { } { This file contains the main functionality for our dedicated CPU example. } { ...
unit Splash; { SimThyr Project } { A numerical simulator of thyrotropic feedback control } { Version 4.0.6 (Merlion) } { (c) J. W. Dietrich, 1994 - 2022 } { (c) Ludwig Maximilian University of Munich 1995 - 2002 } { (c) Ruhr University of Bochum 2005 - 2022 } { This unit implements a splash screen, while other wind...
unit sysdef_char; interface const AC_NULL = AnsiChar(#$00); // AC_TAB = AnsiChar(#$09); // AC_LF = AnsiChar(#$000A); // AC_CR = AnsiChar(#$000D); // AA_CRLF : array[0..1] of AnsiChar = (#13, #10); AS_CRLF = AnsiString(#$0D#$0A); AC_SPACE ...