text stringlengths 14 6.51M |
|---|
{-----------------------------------------------------------------------------
Unit Name: SLForms
Author: n0mad
Version: 1.2.8.x
Creation: 06.08.2003
Purpose: Forms with position and dimensions autosave
History:
-----------------------------------------------------------------------------}
unit SLForms;
... |
{
* Type=1001 酷Q启动
* 无论本应用是否被启用,本函数都会在酷Q启动后执行一次,请在这里执行应用初始化代码。
* 如非必要,不建议在这里加载窗口。(可以添加菜单,让用户手动打开窗口)
}
Function code_eventStartup:longint;
Begin
exit(0)
End;
{
* Type=1002 酷Q退出
* 无论本应用是否被启用,本函数都会在酷Q退出前执行一次,请在这里执行插件关闭代码。
* 本函数调用完毕后,酷Q将很快关闭,请不要再通过线程等方式执行其他代码。
}
Function code_eventExit:longint;
Begin
exit(0);
End;
{
* ... |
unit GameUnit; // implements the IGame interface
interface
uses BowlingInt;
type
TGame = class(TInterfacedObject, IGame)
private
FLine: TBowlLine;
function GetScoreByFrame: TBowlLine;
public
procedure Start;
procedure Roll(ARoll: integer);
property ScoreByFrame: TBowlLine read GetScoreByFra... |
unit MediaProcessing.Processor.VA.Any.Impl;
interface
uses SysUtils,Windows,Classes, SyncObjs, Generics.Collections, MediaProcessing.Definitions,MediaProcessing.Global,
MediaProcessing.Processor.VA.Any,MediaProcessing.VideoAnalytics,MediaProcessing.VideoAnalytics.Definitions;
type
TMediaProcessor_VA_Any_Impl= ... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit MapFieldsUnit;
interface
uses System.Generics.Collections;
type
TFieldsMap = class(TObject)
private
FMapDictionary: TDictionary<String, String>;
public
constructor Create(AFieldsMap: string);
destructor Destroy; override;
function Map(const ASourceFieldName: String): string;
end;
implem... |
unit luahelp;
interface
uses sysutils, System.Generics.Collections;
type
TNameFileMap = TDictionary<string, string>;
var
luaWorkScripts: TNameFileMap;
procedure InitLuaScriptFiles;
implementation
uses classes, myutils, StrUtils, System.Types;
function LuaPath: string;
begin
result := ExtractFileDir(... |
unit Ths.Erp.Database.Table.ParaBirimi;
interface
{$I ThsERP.inc}
uses
SysUtils, Classes, Dialogs, Forms, Windows, Controls, Types, DateUtils,
FireDAC.Stan.Param, System.Variants, Data.DB,
Ths.Erp.Database,
Ths.Erp.Database.Table;
type
TParaBirimi = class(TTable)
private
FKod: TFieldDB;
FSembol:... |
unit IdFTPListParsePCTCP;
interface
{$i IdCompilerDefines.inc}
uses
Classes,
IdFTPList, IdFTPListParseBase;
type
TIdPCTCPFTPListItem = class(TIdFTPListItem);
TIdFTPLPPCTCPNet = class(TIdFTPListBase)
protected
class function MakeNewItem(AOwner : TIdFTPListItems) : TIdFTPListItem; override;
class f... |
unit UntDMGeral;
interface
uses
System.SysUtils, System.Classes, 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, FireDAC.Phys.MySQL,
FireDAC.Phys.MySQLDef, FireDAC.VCLUI.Wait, FireDAC... |
{*******************************************************}
{ }
{ Borland Visibroker for Delphi Naming Service }
{ }
{ Copyright (C) 2000 Inprise Corporation }
{ ... |
unit ReconcileProd;
interface
uses MidProd, WebComp, HTTPApp, Classes, XmlBrokr, MidItems;
type
TReconcileGrid = class;
TReconcilePageElements = class;
TReconcilePageProducer = class(TCustomMidasPageProducer)
private
FReconcileGrid: TReconcileGrid;
FXMLBroker: TXMLBroker;
procedure SetReconcileGr... |
{ *********************************************************************** }
{ }
{ Delphi Runtime Library }
{ }
{ Copyright (c) ... |
// Copyright 2021 Darian Miller, Licensed under Apache-2.0
// SPDX-License-Identifier: Apache-2.0
// More info: www.radprogrammer.com
unit radRTL.BitUtils.Tests;
interface
uses
TestFramework;
type
TBitUtilsTest = class(TTestCase)
published
procedure TestExtractLastBits_ValueZero;
proced... |
{
Asynchronous wrapper around Synapse TBlockSocket.
(C) Sergey Bodrov, 2012-2018
When using UDP, remember, that it not session protocol, data delivery and correct
order not guaranteed. To start receive data, you must send empty packet to
remote side, it tell remote side return address.
From version 1.0.3 mu... |
unit SmartCombo;
{
-Source
https://stackoverflow.com/questions/9466547/how-to-make-a-combo-box-with-fulltext-search-autocomplete-support
-Author1
https://stackoverflow.com/users/1870653/nikb
-Author2
https://stackoverflow.com/users/7974700/mprot
-Edit
jsf3rd@nate.com
* add - FChar: cha... |
unit SomeFunction;
interface
uses
Classes;
const DirecName:array[1..4]of string=
('Iron','Boron','Temperature','Thickness');
ShortDirecName:array[1..4]of string=('Fe','B','T','d');
FileHeader='nFsrh nFBsrh dnsrh nF nFB dn';
function EditString(str:string):string;
function NumberToString(Number... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, rxdbgrid,
Forms, Controls, Graphics, Dialogs, StdCtrls,
DBGrids, Menus, ExtCtrls, DbCtrls, db, rxdbverticalgrid, rxmemds;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
CheckBox2: TCheckBox... |
unit rhlJenkins3;
interface
uses
rhlCore;
type
{ TrhlJenkins3 }
TrhlJenkins3 = class(TrhlHash)
private
m_hash: DWord;
protected
procedure UpdateBytes(const ABuffer; ASize: LongWord); override;
public
constructor Create; override;
procedure Init; override;
procedur... |
unit uRegistroBD;
interface
uses
classes,Contnrs, IBQuery,SqlExpr, SysUtils,
uRegistro;
type
TRegistroBD = class(TObject)
private
teste : String;
protected
Qry:TIBQuery;
public
function Inserir (const oRegistro: TRegistro) : Boolean; virtual;... |
{****************************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ }
{ Copyright (c) 2000, 2001 Borland Software Co... |
unit fODChangeUnreleasedRenew;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, ORCtrls, fAutoSz, uOrders, ORFn, ORDtTm, rOrders,
VA508AccessibilityManager, rODBase, rODMeds;
type
TfrmODChangeUnreleasedRenew = class(TFrmAutoSz)
memOrde... |
unit u_xpl_vendor_file;
{==============================================================================
UnitName = uxPLVendorFile
UnitDesc = XML Vendor Seed File Management Unit
UnitCopyright = GPL by Clinique / xPL Project
==========================================================================... |
unit proc_type_obj_5;
interface
implementation
uses System;
type
TProc = procedure(V: Int32) of object;
TC = class
private
FData: Int32;
procedure SetData(Value: Int32);
end;
procedure TC.SetData(Value: Int32);
begin
FData := Value;
end;
var
obj: TC;
p: TProc;
G: Int32;
... |
unit Blocks;
interface
uses Windows, Classes, DataTypes, SysUtils, RunObjts, uExtMath, IntArrays;
type
pPointer = ^Pointer;
TConversionType = (COLOR_BGR2BGRA, // 0,
COLOR_RGB2RGBA, // 0,
COLOR_BGRA2BGR, // 1,
COLOR_RGBA2RGB, // 1,
COLOR_BGR2RGBA, // 2,
COLOR_RGB2BGRA, // 2,
... |
unit WritingSQLUnit;
interface
uses
JoanModule,
TestClasses,
SysUtils, Generics.Collections, Classes, Contnrs;
type
TWritingData = class
private
public
procedure Insert(Writing: TWriting);
procedure Update(Writing: TWriting);
procedure Delete(QuestionNumber: integer; TestIndex: Integer);
... |
unit getbit_3;
interface
implementation
var
V: Int64;
B: Boolean;
procedure Test;
begin
V := Low(Int64);
B := getbit(V, 63);
end;
initialization
Test();
finalization
Assert(B);
end. |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
unit frmMain;
interface
u... |
/////////////////////////////////////////////////////////
// //
// FlexGraphics library //
// Copyright (c) 2002-2009, FlexGraphics software. //
// //
// FlexGraphics library fil... |
unit DCClassHelpers;
interface
uses
SysUtils,
Variants,
Data.Win.ADODB,
Generics.Collections;
type
TDCObjectHelper = class helper for TObject
procedure &With<T:class>(Action:TProc<T>);
end;
TDCADOParametersHelper = class helper for TParameters
procedure ForEach(Action:TProc<TParameter>);
end;... |
unit mygraphinmemory;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, dialogs, myGraph;
type
{ TMyGraphinMemory }
TMyGraphinMemory=class(TMyGraph)
private
FSorting: Boolean;
protected
procedure SortNodeInLevel(Level: TMyGraphLevel;Down:boolean=false);
public
c... |
Network Working Group Zaw-Sing Su (SRI)
Request for Comments: 819 Jon Postel (ISI)
August 1982
The Domain Naming Convention for Internet User Applications
1. Introduction
For m... |
{-----------------------------------------------------------------------------
TrendFollowert Name:
Author: Roman
Purpose:
History:
-----------------------------------------------------------------------------}
unit FC.Trade.Alerter.ParabolicTrend;
{$I Compiler.inc}
//{$DEFINE SMALL_ORDER}
interface
uses
Ty... |
unit TreeListQuery;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf,
FireDA... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Menus, ExtCtrls,
ComCtrls, Buttons, ActnList, StdCtrls, RichMemo, RichMemoUtils,
about, rtfprocessor;
type
{ TfrmMain }
TfrmMain = class(TForm)
actFileOpen: TAction;
actHelpAbout... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
{ GS1 interface library for FPC and Lazarus
Copyright (C) 2020-2021 Lagunov Aleksey alexs75@yandex.ru
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License,... |
unit PascalCoin.RPC.Block;
interface
uses PascalCoin.RPC.Interfaces;
type
TPascalCoinBlock = class(TInterfacedObject, IPascalCoinBlock)
private
Fblock: Integer;
Fenc_pubkey: String;
Freward: Currency;
Ffee: Currency;
Fver: Integer;
Fver_a: Integer;
Ftimestamp: Integer;
Ftarget: I... |
unit ProcessViewer;
interface
uses
Windows, SysUtils, Classes, TLHelp32, Math, PSAPI;
type
TWindowItem = record
WCaption: string;
Handle: Int64;
WClass: string;
end;
var
AllWindowsList: array of TWindowItem;
FCount, FCapacity, lcw1, lcw2: Integer;
WClassToFind1, ... |
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
(***********************************************************)
(* xPLRFX *)
(* part of Digital Home Server project *)
(* http://www.digitalhomeserver.net *)
(* info@digitalhomeserver.net *)
(****... |
{***************************************************************
*
* Project : Client
* Unit Name: ClientMain
* Purpose : Demonstrates basic interaction of IdTCPClient with server
* Date : 16/01/2001 - 03:21:02
* History :
*
****************************************************************}
unit ClientMai... |
{
AD.A.P.T. Library
Copyright (C) 2014-2018, Simon J Stuart, All Rights Reserved
Original Source Location: https://github.com/LaKraven/ADAPT
Subject to original License: https://github.com/LaKraven/ADAPT/blob/master/LICENSE.md
}
unit ADAPT.Streams.Abstract;
{$I ADAPT.inc}
interface
uses
{$IF... |
unit MediaStream.DataSource.File_;
interface
uses Windows,Classes,SysUtils, SyncObjs, uBaseClasses, MediaStream.DataSource.Base,
MediaProcessing.Definitions,MediaStream.Framer;
type
TMediaStreamDataSource_File = class;
TMediaStreamDataSourceFileEndedHandler = procedure (Sender: TMediaStreamDataSource) of obj... |
{
ID: asiapea1
PROG: latin
LANG: PASCAL
}
program latin;
const
maxn=7;
var
fin,fout:text;
row:array[2..maxn-1,1..maxn]of boolean;
col:array[1..maxn,1..maxn]of boolean;
a:array[1..maxn]of byte;
v:array[1..maxn]of boolean;
count:array[2..7]of longint;
{the index means the length of the lo... |
program iterate_proc;
{никоим образом не программа, просто набросок(полупсевдокод, лол) процедуры, выполняющей шаг расстановки ферзей
* бэктрекингом}
uses crt;
type
TQueenAction = (GetBoard, CheckingIfSolution, FindPlaceToNewQueen);
var
currQueen, itr : byte;
Q: pQueue;
FirstIteration: boolean;
Cu... |
{
Ultibo Timezone Builder Tool.
Copyright (C) 2021 - SoftOz Pty Ltd.
Arch
====
<All>
Boards
======
<All>
Licence
=======
LGPLv2.1 with static linking exception (See COPYING.modifiedLGPL.txt)
Credits
=======
Information for this unit was obtained from:
References
==========
Timezone Builder
==========... |
unit SpriteDevelop;
interface
uses Classes, Controls;
type
TSpriteDevelop = class;
TStageNotifier = procedure(StageManager: TSpriteDevelop; Previous, Current: integer) of object;
TSpriteDevelop = class(TComponent)
private
FCurrentLayer : integer;
FOnLayerChange: TStageNot... |
unit ComnDirs;
interface
uses Windows, SysUtils, Forms, shlobj;
{{Wrapper над SHGetFolderPath.
Возвращаемый Path без оканчивающего '\'}
function GetSpecialFolderPath(folder : integer) : string;
// утилиты: c:\ProgramData\Prosoft-Systems\EnergoSphere 7
function CommonAppDataPath() : string;
// и c:\ProgramData\Proso... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
unit Unit1;
interface
use... |
unit Dimmer;
interface
uses
Winapi.Windows, Winapi.Messages,
System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs;
type
TDimmerForm = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
... |
unit FIToolkit.ProjectGroupParser.Parser;
interface
uses
System.SysUtils, System.Types, Xml.XMLIntf;
type
TProjectGroupParser = class sealed
strict private
FXML : IXMLDocument;
private
function GetIncludedProjects : TStringDynArray;
function GetProjectGroupDir : String;
public
... |
Unit UnAtualizacao2;
interface
Uses Classes, DbTables,SysUtils;
Type
TAtualiza2 = Class
Private
Aux : TQuery;
DataBase : TDataBase;
procedure AtualizaSenha( Senha : string );
public
function AtualizaTabela(VpaNumAtualizacao : Integer) : Boolean;
function Atualiza... |
unit MD5.FileList;
// Что должен уметь FileList
// 1.Хранить в себе список файлов вместе со структурой каталогов
// (а также все атрибуты файла: размер, атрибуты, время создания, доступа и последней записи)
// 2.Уметь записывать себя в файл контрольных сумм (обычного и расширенного формата)
// 3.Уметь читать себя... |
{ ****************************************************************************** }
{ * ZDB 2.0 Core, create by.qq600585 * }
{ * https://zpascal.net * }
{ * https://github.com/PassByYou888/zAI ... |
program Z;
uses graphABC;
const
H = 480;
W = 600;
X1 = W div 2;
Y1 = H div 2;
winColor = clWhite;
RAD = 180 / pi;
procedure Brush
(
color: System.Drawing.Color;
style: System.Drawing.Drawing2D.DashStyle;
width: integer
);
{ Sets brush opt... |
unit uUtil;
interface
uses
System.SysUtils, sEdit, sSpinEdit, System.RegularExpressions, System.Classes, Vcl.Clipbrd, Vcl.StdCtrls, Vcl.Controls, WinHttp_XE;
const
UpCaseAlphabat: TSysCharSet = ['A' .. 'Z']; // 65 ~ 90
DownCaseAlphabat: TSysCharSet = ['a' .. 'z']; // 97 ~ 122
Numberic: TSysCharSet = ['0' .. ... |
unit WinPrinterUtils;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils
{$IF Defined(MSWINDOWS)}
,windows, winspool
{$ENDIF}
;
{$IF Defined(MSWINDOWS)}
function GetPrinterDuplexParam(InPrinterName: String): Boolean;
function SetPrinterDuplexObsolete(hWnd: HWND; InDevice: String; InIsItDuplex: Boolean)... |
unit intensive.Services.Generic;
interface
uses
SimpleInterface,
SimpleDAO,
SimpleAttributes,
SimpleQueryFiredac,
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,
FireDAC.P... |
{$R-} {Range checking off}
{$B+} {Boolean complete evaluation on}
{$S+} {Stack checking on}
{$I+} {I/O checking on}
{$N-} {No numeric coprocessor}
{$M 65500,16384,655360} {Turbo 3 default stack and heap}
program FITCURVE; {Fits parameters to a discount function using coupon bond
pri... |
unit xProtocolType;
interface
const
/// <summary>
/// 最大命令值, 下面命令不得超过这个值
/// </summary>
C_MAX_ORDER = 10000;
{通用}
C_GET_VERSION = 1; // 获取版本
C_SET_ADDR = 2; // 获取版本
{语音 时钟}
C_VOICE_PLAY = 10; // 播放语音
C_TIME_SET = 11; // 设置时钟
/// <summary>
//... |
unit SockAppNotify;
{$R-}
interface
uses
Classes, SysUtils, IdTCPClient, idTCPConnection,
SockTransport, IndySockTransport,
HTTPApp, IdUDPServer, IdSocketHandle, IdUDPClient, SyncObjs, Contnrs;
{$IFDEF LINUX}
const
sExecWaitToken = 'webappdbgtoken';
{$ENDIF}
type
TWebAppInfo = class(TObject)
public
... |
{ Copyright (C) 1998-2006, written by Shkolnik Mike, Scalabium Software
E-Mail: mshkolnik@scalabium.com
mshkolnik@yahoo.com
WEB: http://www.scalabium.com
}
unit SMToolBar;
interface
{$I SMVersion.inc}
uses Classes, Messages, Windows, Controls, ComCtrls;
type
TSMToolbar = class(TToolb... |
unit frmUserList;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Actions, Vcl.ActnList,
Vcl.XPStyleActnCtrls, Vcl.ActnMan, Vcl.Menus, Vcl.ComCtrls, uUserInfo;
type
TfUserList = class(TForm)... |
{$INCLUDE ..\cDefines.inc}
unit cWriters;
{ }
{ Writers v3.03 }
{ }
{ This unit is c... |
unit uGBProcura;
interface
uses
System.SysUtils, System.Classes, Vcl.Controls, Vcl.ExtCtrls, uGBMontaSelect,
Data.DB, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Vcl.Forms;
type
TGBProcura = class(TPanel)
private
_edit : TEdit;
_btn : TBitBtn;
_MS : TGBMontaSelect;
FLookupChave: Variant;
F... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, SynEdit, SynFacilHighlighter, Resource,
Forms, Controls, ResourceStrings, SplashScreen,
Dialogs, ComCtrls, ExtCtrls, Menus, StdCtrls, ActnList, khexeditor, SettingsFrame,
//The pascal compiler
Compiler,
Configuration;
type
TPro... |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
{ ---------------------------------------------------------------------------- }
{ BulbTracer for MB3D }
{ Copyright (C) 2016-2017 Andreas Maschke }
{ ---------------------------------------------------------------------------... |
// Ported CrystalDiskInfo (The MIT License, http://crystalmark.info)
unit SMARTSupport.Fallback.SSD;
interface
uses
BufferInterpreter, Device.SMART.List, SMARTSupport,
Support;
type
TSSDFallbackSMARTSupport = class(TSMARTSupport)
public
function IsThisStorageMine(
const IdentifyDevice: TIdentifyDev... |
{
ctypesmapping.pas
Copyright (C) 2011 Andrew Haines andrewd207@aol.com
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 ... |
unit TestForIn;
interface
implementation
type
TStringArray = array of String;
procedure Demo1(const List: TStringArray);
var
S: String;
begin
for S in List do
writeln(S);
end;
end.
|
{----------------------------------------------------------------------------}
{ Written by Nguyen Le Quang Duy }
{ Nguyen Quang Dieu High School, An Giang }
{----------------------------------------------------------------------------}
... |
UNIT PARSE;
(* parse a string *)
interface
CONST
(* Most args that will be parsed *)
MaxArg = 50;
PROCEDURE ParseString( VAR strc : WORD;
instr : STRING;
delim : CHAR);
(* the number of args in instr is returned in strc *)
(* delim is the argument delimiter, ... |
{
@html(<b>)
HTTP Server Connection
@html(</b>)
- Copyright (c) Danijel Tkalcec
@html(<br><br>)
Introducing the @html(<b>) @Link(TRtcHttpServer) @html(</b>) component:
@html(<br>)
Server connection component for TCP/IP communication using HTTP requests.
Received data will be processed to gather Reque... |
unit IdStackConsts;
interface
uses
{$IFDEF LINUX}
Libc;
{$ELSE}
IdWinsock;
{$ENDIF}
type
TIdStackSocketHandle = TSocket;
var
Id_SO_True: Integer = 1;
Id_SO_False: Integer = 0;
const
{$IFDEF LINUX}
TCP_NODELAY = 1;
{$ENDIF}
// Protocol Family
Id_PF_INET = PF_INET;
// Socket Type
Id_SOCK_STREAM ... |
unit U_ComComm;
{
*功能:串口异步通讯,协议解释
}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Dialogs, StdCtrls, ExtCtrls,DateUtils,U_MyFunction;
const WM_COMM_RECEIVE_DATA = WM_USER + 11111;
//线程状态
type TThreadStatus=(
ThreadStatus_Freeed,//0-已释放;
ThreadStatus_Running,//1-正在... |
unit ExtraChargeTypeQuery;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf,
... |
unit unit1;
interface
implementation
Function DEL_ALL_SPACE(S: String): String;
Var
CNT, N : Integer;
STR, S1 : String;
begin
Result := '';
CNT := 1;
STR := Trim(S);
N := Length(STR);
While CNT <= N do
begin
S1 := Copy(STR, CNT ,1);
if IsKanjiUp(S1) then
begin
If( CNT ... |
unit typeid_2;
interface
implementation
function GetType<T>(const Value: T): string;
begin
case typeid(Value) of
dtInt8: Result := 'i8';
dtInt16: Result := 'i16';
dtInt32: Result := 'i32';
dtInt64: Result := 'i64';
dtUInt8: Result := 'u8';
dtUInt16: Result := 'u16'; ... |
unit WiseFocus;
interface
uses
ExtCtrls, SysUtils, DateUtils,
WiseHardware, WiseDaq, WisePort, WiseEncoder, WisePin, WiseLogger,
cbw;
type TWiseFocusState = (FocusIdle, FocusMovingUp, FocusMovingDown );
type TWiseFocus = class(TWiseObject)
private
UpPin, DownPin: TWisePin;
Encoder: TWis... |
PROGRAM CurvModl;
{$I FLOAT.INC}
{$DEFINE DEBUG}
uses MathLib0;
CONST
r_default = 0.10;
v_default = 0.20;
Periods = 20; { periods }
VAR
r, { one period rate }
v, { volatility in percent per period }
F,
SpotRate,
PsubN : Float;
n : WORD;
{~~~~~~~~~~~~~~~~~~~~~~~... |
unit TestBufferInterpreter.SCSI;
{
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, BufferInterpret... |
unit IdAntiFreezeBase;
interface
uses
Classes,
IdBaseComponent,
IdException;
const
ID_Default_TIdAntiFreezeBase_Active = True;
ID_Default_TIdAntiFreezeBase_ApplicationHasPriority = True;
ID_Default_TIdAntiFreezeBase_IdleTimeOut = 250;
ID_Default_TIdAntiFreezeBase_OnlyWhenIdle = True;
type
TIdAntiFre... |
{**********************************************************}
{ }
{ Zip Compression Algorithm for TinyDB }
{ }
{**********************************************************}
unit Compress... |
PROGRAM Sieve (Input, Output);
(* Sieve of Eratosthenes for finding primes 2 <= N <= Max
P.D. Terry, Rhodes University, 2016 *)
CONST
Max = 32000 (* largest number allowed *);
TYPE
SIEVES = ARRAY [2 .. Max] OF BOOLEAN;
VAR
I, N, K, Primes, It, Iterations : INTEGER (... |
unit gfx_tga;
{***********************************************************************
Unit gfx_tga.PAS v1.2 0801
(c) by Andreas Moser, amoser@amoser.de,
Delphi version : Delphi 4
gfx_tga is part of the gfx_library collection
You may use this sourcecode for your freewareproducts.
You m... |
unit uDownloads.Model.Conexao.Firedac;
interface
uses
System.SysUtils, uDownloads.Model.Interfaces,
Data.DB, 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, FireDAC.Phys.SQLite,
FireDAC.Phy... |
const
MAX = 1000000;
type
TCondition = record
l, r, op: integer;
end;
var
line: string;
fin, fout: text;
Conditions: array of TCondition;
Number: array [1..6] of integer;
i, j, count: integer;
function ToCond(l: string): TCondition;
var
operand: string;
begin
result.l :... |
unit ProCierreMes;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Mask, RxToolEdit, RXSpin, StdCtrls, RXCtrls, StrMan, ESBDates;
type
TfraCierreMes = class(TFrame)
xlbNombre: TRxLabel;
mmoMsg: TMemo;
xlbDias: TRxLabel;
RxLabel1: TRxLabel;
... |
unit BCEditor.Highlighter.Colors;
interface
uses
System.Classes, Vcl.Graphics, BCEditor.Highlighter.Info;
type
TBCEditorHighlighterElement = record
Background: TColor;
Foreground: TColor;
Name: string;
Style: TFontStyles;
end;
PBCEditorHighlighterElement = ^TBCEditorHighlighterE... |
unit SFPLib;
{$MODE Delphi}
interface
uses
Math, LCLIntf, LCLType, LMessages, SysUtils;
type
SFPvalue = object
S,F,P: Extended;
end;
type
RGBvalue = object
R,G,B: Byte;
end;
type
RGBrange = object
rmax,rmin: Byte;
gmax,gmin: Byte;
bmax,bmin: Byte;
end;
type
SFPrange = object
... |
Program time;
Var
upo_hour, hour, min, sec: Integer;
Begin
Write ('Write the time in seconds : ');
Read(sec);
hour:= (sec div 3600);
upo_hour:= (sec mod 3600);
min:= (upo_hour div 60);
sec:= (sec mod 60);
Writeln (hour,'hr');
Writeln (min,'min');
Writeln (sec,'sec')
End. |
unit uStringEntwickler;
{$H+}
interface
uses
Classes, SysUtils, fgl, uGrammatik;
type TCardinalList = TFPGList<Cardinal>;
type TStringEntwickler = class
private
FGrammatik: TGrammatik;
{ Dieser Speichert den entwickelten String. Wenn es Parameter gibt, so enthaelt dieser
Platzhalter fuer die tatsa... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
unit frmMain;
interface
u... |
unit u_complex;
interface
uses
SysUtils;
type
//Представление комплексного числа в виде: re — дейсвтительная часть, im — мнимая
TComplex=record
re, im:real;
end;
//иницилизация числа
function u_InitComplex(re1, im1:real):TComplex;
//Ввод компл. числа
procedure u_InputComplex(massage:string; var aRes:TCom... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 16384,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
April '2000
Problem 80 O(NLgN) Greedy Method
}
program
MinimumMeanTime;
const
MaxN = 100;
var
N : Integer;
T, Map : array [1 .. MaxN] of Integer;
Mean : Extended;
I : Integer;
procedur... |
unit TipoRelatorioDataUn;
interface
uses
SysUtils, Classes, FMTBcd, Provider, osSQLDataSetProvider, DB, SqlExpr, osUtils,
osCustomDataSetProvider, osSQLDataSet;
type
TTipoRelatorioData = class(TDataModule)
MasterDataSet: TosSQLDataset;
MasterProvider: TosSQLDataSetProvider;
MasterDataSe... |
{-----------------------------------------------------------------------------
Author: Roman Fadeyev
Purpose: Реализация IStockDataSource для файлов формата MetaTrader 4
History:
-----------------------------------------------------------------------------}
unit FC.StockData.MT.StockDataSource;
{$I Compiler.i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.