text
stringlengths
14
6.51M
unit uother; {$mode objfpc}{$H+} interface uses Classes, SysUtils, StrUtils; type TByteArray = array of byte; function ExtractText(const Str: string; const Delim1, Delim2: char): string; function ExtractBetween(const Value, A, B: string): string; procedure Split(Delimiter: char; Str: string; ListOfStrings: TSt...
unit U_ListeDC; interface uses SysUtils; type ListeVide = class(SysUtils.Exception); IterateurFin = class(SysUtils.Exception); IterateurDebut = class(SysUtils.Exception); ELEMENT = CARDINAL; P_CELLULE = ^CELLULE; CELLULE = record elt : ELEMENT; suiv : P_CELLULE; pr...
unit Comaker; interface uses Entity, ADODB, DB, Employer; type TComaker = class(TEntity) private FName: string; FComakeredLoans: integer; FEmployer: TEmployer; function GetHasId: boolean; public procedure Add; override; procedure Save; override; procedure Edit; override; pro...
unit ATipoFundo; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, Componentes1, ExtCtrls, PainelGradiente, BotaoCadastro, StdCtrls, Buttons, Db, Mask, DBCtrls, DBTables, Tabela, CBancoDados, Grids, DBGrids, DBKeyViolation, Localizacao, DBClient; ...
unit fODChangeEvtDisp; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, fAutoSz, StdCtrls, ORFn, ExtCtrls, ORCtrls, VA508AccessibilityManager; type TfrmChangeEventDisp = class(TfrmAutoSz) lblTop: TMemo; pnlTop: TPanel; lstCVOrders: TCaptionListBox; pnlBot...
Unit REMDiskListModel; Interface Uses Windows, ComCtrls, ListModel, RemDiskDll, RemDiskClass, Generics.Collections; Type TRemDiskListModel = Class (TListModel<TRemDisk>) Private FDiskList : TList<TRemDisk>; FDiskMap : TDictionary<Cardinal, TRemDisk>; Protected Function GetColumn(AItem:TRemDisk;...
unit f03_findCategory; interface uses utilitas, buku_handler; { KAMUS } var inp : string; kategori : array [1..5] of string = ('sastra','sains','manga','sejarah','programming'); { DEKLARASI FUNGSI DAN PROSEDUR } procedure filter_kategori(var data_bersih : tabel_buku; data_kotor : tabel_buku; kategor...
unit IdHeaderCoder; interface uses IdEmailAddress; type TTransfer = (bit7, bit8, iso2022jp); CSET = set of Char; const csSPECIALS: CSET = ['(', ')', '[', ']', '<', '>', ':', ';', '.', ',', '@', '\', '"']; kana_tbl: array[#$A1..#$DF] of Word = ( $2123, $2156, $2157, $2122, $2126, $2572, $2521, $2523,...
unit Router4DelphiDemo.View.Router; interface type TRouters = class private public constructor Create; destructor Destroy; override; end; var Routers : TRouters; implementation uses Router4D, Router4DelphiDemo.View.Pages.Index, Router4DelphiDemo.Views.Layouts.Main, Router4DelphiDe...
unit ANovaTransportadora; { Autor: Rafael Budag Data Criação: 25/03/1999; Função: Cadastrar uma nova transportadora Data Alteração: 25/03/1999; Alterado por: Motivo alteração: } interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formulario...
unit KennlinienStandardDefault; interface const //Konstanten für Drahtdurchmesser D_06 = '0,6mm'; //Drahtdurchmesser 0,6 D_08 = '0,8mm'; //Drahtdurchmesser 0,8 D_09 = '0,9mm'; //Drahtdurchmesser 0,9 D_10 = '1,0mm'; //Drahtdurchmesser 1,0 D_12 = '1,2mm'; //Drahtdurchmesser 1...
unit FileCtrl; { LLCL - FPC/Lazarus Light LCL based upon LVCL - Very LIGHT VCL ---------------------------- This file is a part of the Light LCL (LLCL). This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was no...
unit YanTuMiaoShu; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, Grids, ExtCtrls, DB; type TYanTuMiaoShuForm = class(TForm) Gbox: TGroupBox; sgEarth: TStringGrid; gbox2: TGroupBox; lblD_t_name: TLabel; Label1: TLabel;...
unit gExpressionFunctions; { Author: Steve Kramer, goog@goog.com } interface Uses Classes , System.Types , SysUtils , Contnrs , gExpressionEvaluator , gExpressionOperators ; Type TFunction = Class(TOperator) Public ParameterCount : Integer; Function Precedence : Integer;Override; Pro...
unit IdLogEvent; interface uses Classes, IdLogBase; type TLogItemStatusEvent = procedure(ASender: TComponent; const AText: string) of object; TLogItemDataEvent = procedure(ASender: TComponent; const AText: string; const AData: string) of object; TIdLogEvent = class(TIdLogBase) protected FOnReceiv...
unit ejb_sidl_javax_ejb_s; {This file was generated on 28 Feb 2001 10:06:55 GMT by version 03.03.03.C1.06} {of the Inprise VisiBroker idl2pas CORBA IDL compiler. } {Please do not edit the contents of this file. You should instead edit and } {recompile the original IDL which was located in th...
(* InternetExpress Example. The default page displays a customer list. Clicking on a link displays a master detail form. The master detail page has a link that returns to the customer list. This link is only executed after asking the user if pending updates can be discarded. Demonstrates: TWebModul...
unit UClasses; interface uses Windows, Messages, Classes, Controls, TntControls, StdCtrls, Graphics, TntClasses, TntSysUtils, TntStdCtrls, SysUtils, Dialogs, TntButtons, Forms; const IDI_SubEditMinWidth = 40; IDI_SubBtnMinWidth = 22; { TGcxCustomEdit } type TGcxCustomEdit = class(TTntCustomEdit) priv...
unit fGMV_DateRange; { ================================================================================ * * Application: Vitals * Revision: $Revision: 1 $ $Modtime: 12/20/07 12:43p $ * Developer: ddomain.user@domain.ext/doma.user@domain.ext * Site: Hines OIFO * * Descripti...
{ Mystix Copyright (C) 2005 Piotr Jura 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 i...
unit uFaceApi.Servers.Types; interface type TFaceApiServer = ( fasGeneral, fasWestUS, fasEastUS2, fasWestCentralUS, fasWestEurope, fasSoutheastAsia ); const CONST_FACE_API_MAIN_SERVER = 'api.cognitive.microsoft.com'; CONST_FACE_API_SERVER_URLS: array [TFaceApiServer] of string = ( ...
unit ResizeObject; interface uses SysUtils, Windows, Classes, Graphics, Controls, ExtCtrls; type TKindSpots = (ksLeft, ksLeftTop, ksLeftBottom, ksTop, ksTopRight, ksRight, ksBottom, ksBottomRight); TSpots = set of TKindSpots; TObjectSpot = record Kind : TKindSpots; Sport : TShape; end...
{*******************************************************} { } { Borland Delphi Visual Component Library } { CGI/WinCGI Web server application components } { } { Copyright (c) 1997,2001 Bor...
{*************************************************************************** * * Orion-project.org Lazarus Helper Library * Copyright (C) 2016-2017 by Nikolay Chunosov * * This file is part of the Orion-project.org Lazarus Helper Library * https://github.com/Chunosov/orion-lazarus * * This Library is free soft...
{*******************************************************} { } { Delphi LiveBindings Framework } { } { Copyright(c) 2012-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit form_SecureErase; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Shredder, Spin64; type TfrmSecureErase = class(TForm) rbEntireDrive: TRadioButton; rbFreeSpace: TRadioButton; cbOverwriteMethod: TComboBox; Label1: TL...
unit MaskEditImpl1; interface uses Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls, ComServ, StdVCL, AXCtrls, DelCtrls_TLB, Mask; type TMaskEditX = class(TActiveXControl, IMaskEditX) private { Private declarations } FDelphiControl: TMaskEdit; FEvents: IMaskEditXEvents; p...
{$INCLUDE ..\cDefines.inc} unit cFileUtils; { } { File utility functions v3.02 } { } { This unit is...
{*********************************************} { TeeBI Software Library } { Base abstract Algorithm class } { Copyright (c) 2015-2016 by Steema Software } { All Rights Reserved } {*********************************************} unit BI.Algorithm; interface u...
unit BCHELP; interface procedure ShowCommands; implementation uses Dos, Crt; procedure ShowCommands; procedure Pause; var C: Char; begin Write ('-- More --'); C := ReadKey; if C = #0 then C := ReadKey; WriteLn; end; begin WriteLn; WriteLn ('DOS commands:'); Wri...
{*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1997-1999 Borland Software Corporation } { ...
unit mCoverSheetDisplayPanel_CPRS_ProblemList; { ================================================================================ * * Application: Demo * Developer: doma.user@domain.ext * Site: Salt Lake City ISC * Date: 2015-12-21 * * Description: Prob...
unit constexpr_generic_1; interface implementation function Sum<T>(a, b: T): T; pure; begin Result := a + b; end; var VI: Int32; VF: Float32; VS: string; procedure Test; begin VI := Sum<Int32>(1, 4); VF := Sum<Float32>(1.1, 4.2); VS := Sum<string>('AA', 'BBB'); end; initialization Test(...
{*****************************************************************************} { { Pascal Binding for Qt Library { ...
unit uGMV_Utils; interface uses SysUtils ,Forms; Type TVitalFunction = ( vfInit, vfAdd, vfSubtract); function TitleCase(Value: string): string; function StrToFloatDef(const Str: string; Def: extended): extended; procedure VitalMath(var Value: string; FuncValue, Default: extended; Func: TVitalFuncti...
unit uFromHik86Task; interface uses System.SysUtils, System.Classes, IniFiles, SyncObjs, IOUtils, Generics.Collections, IdBaseComponent, IdComponent, IdCustomTCPServer, IdCustomHTTPServer, IdHttp, IdUri, IdHTTPServer, IdContext, Types, uLogger, uGlobal, uTypes, UInterface, uPassList; type TFromHik86Task = cl...
unit frm_ediciontugs; {$mode objfpc}{$H+} interface uses Classes, SysUtils, db, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls, DBGrids, Buttons, DbCtrls, ZDataset, dmediciontugs ; type { TfrmEdicionTugs } TfrmEdicionTugs = class(TForm) btnBorrar: TBitBtn; btnSalir: TBitBtn; ...
// // Created by the DataSnap proxy generator. // 23/02/2015 23:20:16 // unit Proxy; interface uses System.JSON, Datasnap.DSProxyRest, Datasnap.DSClientRest, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System.Classes, System.SysUtils, Data.DB, Data.SqlExpr, Data.DBXDBReaders, D...
program TestCase; procedure switch(sel : Integer); begin case sel of 0: WriteLn('hello 0'); 1: WriteLn('hello 1'); 2: WriteLn('hello 2'); 3,4: WriteLn('hello 3 or 4'); 5..10: WriteLn('hello 5 through 10'); otherwise begin WriteLn('unrecognize selector:'); Wri...
program _demo; Array[0] var Y : TReal1DArray; N : AlglibInteger; I : AlglibInteger; T : Double; P : BarycentricInterpolant; V : Double; DV : Double; D2V : Double; Err : Double; MaxErr : Double; begin // // Demonstration // Write(Format('PO...
unit PascalCoin.RPC.Test.RawOp; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Edit, FMX.Controls.Presentation, FMX.Layouts, FMX.ScrollBox, FMX.Memo, PascalCoin.Utils.Interfaces, F...
unit fPCEProvider; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ORCtrls, ExtCtrls, uPCE, ORFn, fBase508Form, VA508AccessibilityManager; type TfrmPCEProvider = class(TfrmBase508Form) cboPrimary: TORComboBox; lblMsg: TMemo; btnYes: TButton; ...
unit Test.GeomerLastValues; interface uses Windows, TestFrameWork, GMGlobals, Classes, GeomerLastValue; type TGeomerLastValueTest = class(TTestCase) private glv: TGeomerLastValue; procedure SetUpSlowCNT_DI; protected procedure SetUp; override; procedure TearDown; override; published proce...
unit NestedTypesForm; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Layouts, FMX.Memo, FMX.Controls.Presentation, FMX.ScrollBox; type TForm1 = class(TForm) Memo1: TMemo; B...
unit uFH; {$mode objfpc}{$H+} { Example 08 File Handling } { } { This example demonstrates just a few basic functions of file handling which } { is a major topic in itself. ...
unit NtUtils.Security.Acl; interface uses Winapi.WinNt, Ntapi.ntdef, NtUtils.Security.Sid, NtUtils.Exceptions; type TAce = record AceType: TAceType; AceFlags: Byte; Mask: TAccessMask; Sid: ISid; function Size: Cardinal; function Allocate: PAce; end; IAcl = interface function Acl:...
unit ncaFrmTrocoMax; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, Vcl.Menus, Vcl.StdCtrls, cxButtons, LMDControl, LMDCust...
unit ncaFrmConfigCaixaFechamento; { ResourceString: Dario 11/03/13 Nada para para fazer } interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ncaFrmBaseOpcao, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Menus, cxControls, cxContainer, cxEdit, StdCtrl...
unit simple_proc_call_1; interface implementation var G: Int32; procedure Test; begin G := 3; end; initialization Test; finalization Assert(G = 3); end.
unit FSXcontrol; interface uses Classes, SimConnect, Windows, Messages; const // Define a user message for message driven version of the example WM_USER_SIMCONNECT = WM_USER + 2; EVENT_SIM_START = 1; EVENT_SIM_STOP = 2; type TVarChangeCallbackProcedure = procedure(pValue: Double) of object; PAutopil...
unit Vigilante.Infra.ChangeSetItem.DataAdapter; interface uses System.SysUtils, System.Classes; type IChangeSetItemAdapter = Interface(IInterface) ['{E115CA1F-DF9A-49C5-A931-0EACF0BD7F20}'] function GetAutor: string; function GetDescricao: string; function GetArquivos: TArray<TFileName>; prop...
{ *********************************************************************** } { } { Delphi / Kylix Cross-Platform Runtime Library } { } { Copyright (c)...
unit fODVitals; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, fODBase, ComCtrls, ExtCtrls, StdCtrls, ORCtrls, ORDtTm, VA508AccessibilityManager; type TfrmODVitals = class(TfrmODBase) cboMeasurement: TORComboBox; cboSchedule: TORComboBox; calStart: TORDat...
{ *************************************************************************** } { } { Kylix and Delphi Cross-Platform Visual Component Library } { } ...
unit Model.Entity.Produto; interface uses SimpleAttributes; type [Tabela('PRODUTO')] TPRODUTO = class private FGUUID :String; FCODIGO :String; FDESCRICAO :String; FPRECO :Currency; FNCM :Integer; FALIQUOTA :Currency; FST :Integer; FSTATUS :Integer; FDATA...
unit AddNoiseUnit; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls; type TAddNoiseForm = class(TForm) Label1: TLabel; TrackBar: TTrackBar; ButtonOK: TButton; ButtonCa...
{ @html(<b>) Plugable Message Client component @html(</b>) - Copyright (c) Danijel Tkalcec @html(<br><br>) Introducing the @html(<b>) @Link(TRtcMessageClient) @html(</b>) component: @html(<br>) Plugable Client component can be used for direct client-server in-memory connections, or for "plugging" RTC...
unit caMatrixDataset; {$INCLUDE ca.inc} interface uses // Standard Delphi units Windows, SysUtils, Classes, DB, {$IFDEF D7_UP} Variants, {$ENDIF} // ca units caLog, caBaseDataset, caMatrix, caUtils, caClasses; type //-----------------------------------------------------------------...
unit bFormatter; interface uses system.sysutils, strutils; type TFormatter = class private class function formatType(v: string): string; class function unformatType(v: string): string; class function parseType(inputedType: string): string; public class function parseModel(v: string): string; ...
unit DebitPosting; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BasePopup, Vcl.StdCtrls, RzLabel, Vcl.Imaging.pngimage, Vcl.ExtCtrls, RzPanel, System.Rtti, DateUtils, Math; type TDiminishingType = (dtNone...
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+} {$M 1024,0,0} { by Behdad Esfahbod Algorithmic Problems Book September '1999 Problem 37 O(N3) Karp's Algorithm } program MinimumAverageWeightCycle; const MaxN = 100; NoEdge = 10000; var N, S : Integer; G, P, Ans : array [0 .. MaxN, 0 .. MaxN] of Intege...
unit System.NetEncoding.Base64Url; interface uses System.SysUtils, System.Classes, System.NetEncoding; type TBase64UrlEncoding = class(TBase64Encoding) protected function DoDecode(const Input, Output: TStream): NativeInt; override; function DoDecode(const Input: array of Byte): TBytes; overload; overri...
unit IdDNSResolver; interface uses Classes, IdResourceStrings, SysUtils, IdGlobal, IdUDPClient; const IdDNSResolver_ReceiveTimeout = 4000; const //fBitCode Bits and Masks cQRBit = $8000; //QR when 0 = Question when 1 Response cQRMask = $EFFF; cOpCodeBits = $7800; //Operation Code See Constansts ...
{=============================================================================== Copyright(c) 2010, 北京北研兴电力仪表有限责任公司 All rights reserved. 电能表 通讯类型单元 ===============================================================================} unit xDL645Type; interface const C_645_RESET_TIME = 1; // 广...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit Language; interface uses Types; type PLangItem = ^TLangItem; TLangItem = object(TObject) Name, Value: PString; constructor Init(const AName, AValue: String); destructor Done; virtual; end; const Quiet: Boolean = False; LanguagePool: PCollection = Nil; procedure lngInit; function lngLoad: Boolean; p...
{*************************************************************************** * * Orion-project.org Lazarus Helper Library * Copyright (C) 2016-2017 by Nikolay Chunosov * * This file is part of the Orion-project.org Lazarus Helper Library * https://github.com/Chunosov/orion-lazarus * * This Library is free soft...
{**********************************************************************} {* Иллюстрация к книге "OpenGL в проектах Delphi" *} {* Краснов М.В. softgl@chat.ru *} {**********************************************************************} unit Unit1; interface use...
unit IWCompText; {PUBDIST} interface uses Classes, {$IFDEF Linux}QControls,{$ELSE}Controls,{$ENDIF} IWControl, IWHTMLTag; type TIWCustomText = class(TIWControl) protected FLines: TStrings; FRawText: boolean; FWantReturns: boolean; // // procedure TextChangedNotification; override; p...
program Todo; {$mode objfpc} uses JS, Classes, SysUtils, Web; type task = record name: String; completed: Boolean; end; var newTaskName: String; tasks: array[0 .. 100] of task; numberOfTasks: Integer; listElement, inputElement, submitButton: TJSElement; procedure SortByCompleted(); var result...
{*******************************************************} { } { Delphi Runtime Library } { } { File: OleCtl.h } { Copyright (c) Micro...
unit Util; interface uses Classes, SysUtils,Controls,StdCtrls; type TStringFunction=function(S:String):Boolean; function ComponentToString(C:TComponent):String; procedure StringToComponent(S:String;C:TComponent); function FileToString(const FileName: AnsiString): AnsiString; procedure StringToFile(const FileName, Co...
unit uPaiControle; interface { for caAtributo in rpPropriedade.GetAttributes do if caAtributo is TCampoTabelaExterna then fCampo.ProviderFlags := fCampo.ProviderFlags + [pfInUpdate];} uses uConexaoBanco, uLigacao, uConstrutorSQL, uAtributosCustomizados, SysUtils, Classes, Variants, uRESTDWPoole...
{*******************************************************} { } { Delphi Runtime Library } { ISAPI/NSAPI Web server application components } { } { Copyright(c) 1995-2018 Embar...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 2016 Embarcadero Technologies, Inc. } { All rights rese...
program JTower; (* copyright 1991 by Art Steinmetz *) (* freely distributable *) {$N+,E+} (* {$DEFINE DEBUG} *) uses CRT, Graph, Drivers, MathLib0, {FLOAT, Max, Min , ln10 } KeyCodes, { GetKey, ESC } BoundRgn; { MarkHorizLine } CONST X0 = 1.5; y0 = 1.5; ColorChanges = 32; CheatF...
unit WkeWebView; interface uses SysUtils, Classes, Messages, Windows, WkeTypes, WkeApi, WkeIntf, Imm; type TWkeWebView = class; TWkeTimer = class private FInterval: Cardinal; FWindowHandle: HWND; FOnTimer: TNotifyEvent; FEnabled: Boolean; procedure UpdateTimer; procedure SetEnabled...
Uses Graph,Crt; Const Eps=0.001; H:Real=0.01; {************************************************} Function K:Real; Function F(X:Real):Real; Begin F:=2*X-Sin(X)-3; End; Function Fs(X:Real):Real; Begin Fs:=2+Cos(X); End; Var Xo,Xi,E1:Real; Const Eps=0.01; Begin Xo:=0; Xi:=Xo; Repeat Xo:...
unit bool_arith_mixed_1; interface implementation function GetBool(Cond: Boolean): Boolean; begin Result := Cond; end; var A: Boolean = True; R1, R2, B: Boolean = False; procedure Test; begin R1 := A and (not B); R2 := (not B) and A; end; initialization Test(); finalization Assert(R1); Assert...
//==================================================================// // uHilang // //------------------------------------------------------------------// // Unit yang menangani hal-hal yang berhubungan dengan kehilangan // //==================================...
unit iaExample.TaskData; interface type TExampleTaskData = class private fId:Integer; fSomeAttribute:string; public constructor Create(const pId:Integer; const pSomeAttribute:string); property Id:Integer read fId write fId; property SomeAttribute:string read fSomeAttribute wr...
{*******************************************************} { } { Delphi Runtime Library } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit DmCSDemo; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, DBTables, DB; type TDmEmployee = class(TDataModule) SalesTable: TTable; SalesSource: TDataSource; CustomerTable: TTable; CustomerSource: TDataSource; ShipOrderProc: TStoredProc; Emplo...
unit UFrmContact; interface uses FMX.Forms, FMX.StdCtrls, FMX.Edit, System.Classes, FMX.Types, FMX.Controls, FMX.Controls.Presentation, // DzXMLTable; type TFrmContact = class(TForm) Label1: TLabel; EdName: TEdit; Label2: TLabel; EdAddress: TEdit; Label3: TLabel; EdPhone: TEdit; C...
unit OpenDocumentUnit; interface uses Winapi.Windows, System.Generics.Collections; type TDocument = class(TObject) private protected class procedure GetFileNames(const AFileName, AFileExts: string; L: TList<String>); static; public class procedure Open(Handle: HWND; const AFolders, AFileName, A...
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+} {$M 1024,0,655360} { by Behdad Esfahbod Algorithmic Problems Book April '2000 Problem 83 O(D2N) Dynamic Method } program ThreeProcessors; const MaxN = 30; MaxD = 100; type TArr = array [0 .. MaxD, 0 .. MaxD] of Byte; var N, D : Integer; Dy : array...
program Sample; procedure Output(A : Integer; B : Integer); begin WriteLn(A, ', ', B) end; begin Output(7, 8) end.
{ *************************************************************************** } { } { Kylix and Delphi Cross-Platform Visual Component Library } { Internet Application Runtime } ...
unit DTMain; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, BASS, Math; const MV_LEFT = 1; MV_RIGHT = 2; MV_UP = 4; MV_DOWN = 8; XDIST = 70; YDIST = 65; XCENTER ...
PROGRAM PoleFigury ( output ); VAR r : REAL; error_r : INTEGER; a,b : REAL; error_a,error_b : INTEGER; opcja : SHORTSTRING; FUNCTION PoleKola(r :REAL): REAL; BEGIN PoleKola:=Pi * r * r; END; FUNCTION PoleElipsy(a : REAL; b: REAL): REAL; BEGIN PoleE...
unit HGM.SQLang; interface uses System.Classes, System.SysUtils, System.Generics.Collections; type TFieldType = (ftInteger, ftString, ftFloat, ftDateTime, ftBlob, ftBoolean, ftParam); TDIType = (diInc, diDec, diDiv, diMul); TWhereUnion = (wuAnd, wuOr, wuNotAnd, wuNotOr); TField = record private fu...
unit Token; interface type TTokenKind = (tkUndefined, tkIdentifier, tkStringConstant, tkCharConstant, tkIntegerConstant, tkRealConstant, tkConstantExpression, tkLabelIdentifier, tkTypeIdentifier, tkClassIdentifier, tkReservedWord, tkSpecialSymbol, tkParameter, tkProgram, tkUni...
unit OriUtils_TChart; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Graphics, TAGraph, TASeries; type TChartHelper = class helper for TChart public function HasSeries(ASeries: TBasicChartSeries): Boolean; end; procedure ChooseSeriesColor(Series: TLineSeries); function GetLineSer...
unit CryptMessage; {$mode delphi} interface uses Classes, SysUtils, ExtCtrls, Graphics, StdCtrls, Controls, Dialogs; const clHighLightMsg = TColor ($FFC0C0); type { TMessages } TMessages = class(TCustomControl) private fImg :TImage; fName :TLabel; fText :TLabel; fDate :TLabel; function GetDate...
// // This unit is part of the GLScene Project, http://glscene.org // {: FRTrackBarEdit<p> Frame combining a TrackBar and an Edit.<p> <b>Historique : </b><font size=-1><ul> <li>05/10/08 - DanB - Removed Kylix support <li>29/03/07 - DaStr - Renamed LINUX to KYLIX (BugTrackerID=1681585) ...
unit BillsFrm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Grids, Db, DBTables, DBGrids, ExtCtrls, DBCtrls, BtrDS, Menus, StdCtrls, Buttons, ComCtrls, SearchFrm, {Sign, }PaydocsFrm, Common, Basbn, Utilits, CommCons, BillFrm, BankCnBn; type TBillsForm ...
unit MainClientForm; { Use the "GateCli" component to configure this Client to connect with your Gateway. } interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Buttons, rtcInfo, rtcLog, rtcConn, rtcSystem, rtcGateConst...
unit ExLibrary; interface uses Classes,SysUtils,SyncObjs,Dialogs,Variants, Math ; type addrRecord = record addrArray : array[0..6] of string; end; //============================================================================== // 암호화에 사용되는 기본 키값 //==========================================================...
{**********************************************} { TBubbleSeries (derived from TPointSeries) } { Copyright (c) 1995-2004 by David Berneda } {**********************************************} unit BubbleCh; {$I TeeDefs.inc} interface { TBubbleSeries derives from standard TPointSeries. Each point in the series i...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...