text stringlengths 14 6.51M |
|---|
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLTrail<p>
Creates a trail-like mesh.
Based on Jason Lanford's demo. <p>
<b>History : </b><font size=-1><ul>
<li>23/08/10 - Yar - Added OpenGLTokens to uses, replaced OpenGL1x functions to OpenGLAdapter
<li>03/04/07... |
{*********************************************************************
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Autor: Brovin Y.D.
* E-mail: y.brovin... |
{
Eulerian Tour
Flory Algorithm O(N2)
Input:
G: Directed (not nessecerily simple) connected eulerian graph
N: Number of vertices
Output:
CLength: Length of tour
C: Eulerian tour
Reference:
West
By Ali
}
program
EulerianTour;
const
MaxN = 50 + 2;
var
N: Integer;
G: array[1 .. MaxN, 1 .. Ma... |
unit lib_db;
interface
uses Windows, Messages, SysUtils, Variants, Classes, ADODB, uDmConexao, DBClient, Provider, DB, ADOInt;
type
TMapaValor = class
protected
FChave : String;
FValor : Variant;
FAdicional : String;
public
constructor create(const chave : string; valor : var... |
unit IdRawBase;
interface
uses
Classes,
IdComponent, IdGlobal, IdSocketHandle,
IdStackConsts;
const
Id_TIdRawBase_Port = 0;
Id_TIdRawBase_BufferSize = 8192;
GReceiveTimeout = 0;
GFTTL = 128;
type
TIdRawBase = class(TIdComponent)
protected
FBinding: TIdSocketHandle;
FBuffer: TMemoryStream;
... |
{*******************************************************}
{ }
{ Delphi LiveBindings Framework }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
unit UNumeroCampo;
interface
uses
Contnrs,
uRegistro;
type
TNumeroCampo = class(TRegistro)
private
fID : Integer;
fCodigo : String;
fDescricao : String;
procedure SetCodigo(const Value: String);
procedure SetDescricao(const ... |
// Ported CrystalDiskInfo (The MIT License, http://crystalmark.info)
unit SMARTSupport.Seagate.SSD;
interface
uses
BufferInterpreter, Device.SMART.List, SMARTSupport, Support;
type
TSeagateSSDSMARTSupport = class(TSMARTSupport)
private
function GetTotalWrite(const SMARTList: TSMARTValueList): TTotalWrite;
... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit eSocial.Controllers.Interfaces;
interface
uses
eSocial.Models.DAO.Interfaces,
eSocial.Models.Entities.Competencia,
eSocial.Models.Entities.Operacao,
eSocial.Models.Entities.Configuracao;
type
IControllerCompetencia = interface
['{D0B306D9-C0AC-483D-9AE4-EF68784F8711}']
function DA... |
unit ExpressionLanguage4Delphi.Types;
interface
uses System.Classes;
type
{$SCOPEDENUMS ON}
TCondicaoFiltro = (IGUAL, MAIOR, MAIOR_IGUAL, MENOR, MENOR_IGUAL, DIFERENTE, INTERVALO, COMECE, CONTENHA, TERMINE, NAO_NULO, NULO,
SEQUENCIA, INTERVALO_NAO, COMECE_NAO, CONTENHA_NAO, TERMINE_NAO, SEQUENCIA_NAO, MES_IGUA... |
unit ATipoContrato;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
Componentes1, ExtCtrls, PainelGradiente, StdCtrls, Mask, DBCtrls, Tabela,
DBKeyViolation, BotaoCadastro, Buttons, Db, DBTables, CBancoDados,
Localizacao, Grids, DBGrids, DBClient;
... |
unit FrameDialogs;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, ComCtrls, Graphics, Dialogs,
ExtCtrls, DataBases, AddFriendDlg, Transports;
type
{ TFrameWithDialogs }
TFrameWithDialogs = class(TFrame)
ImageList: TImageList;
ListView: TListView;
PageControl: ... |
unit Main;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Vcl.ExtCtrls,
Vcl.Mask,
JvExMask,
JvToolEdit,
Vcl.Samples.Spin,
Vcl.Buttons,
PngSpeedButton,
System.ImageLi... |
unit ClassUpdates;
interface
uses Classes, ComCtrls, SKonstanty;
type TUpdateItem = class
private
procedure LoadFromFile( InfoFile : string );
procedure LoadListkyFromFile( ListkyFile : string );
procedure SaveToFile;
procedure SaveListkyToFile;
public
FileName : string;... |
unit CoordTransform;
interface
uses LatLon;
function ConvertOSGB36toWGS84(pOSGB36 : TLatLon) : TLatLon;
function ConvertWGS84toOSGB36(pWGS84 : TLatLon) : TLatLon;
implementation
uses Math;
type
TEllipse = record
a : double;
b : double;
f : double;
end;
TDatumTransform = record
tx : dou... |
unit Unit1;
interface
uses
System.SysUtils, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.ExtCtrls, Vcl.StdCtrls,
//GLS
GLScene, GLObjects, GLVectorGeometry, GLTexture, GLCadencer,
GLMesh, GLWin32Viewer, GLState, GLColor, GLCrossPlatform,
GLCoordinates, GLBaseClas... |
program myName;
var
myName: array[1..16] of char; {User's name}
begin
writeln('What is your name?');
readln(myName);
writeln('Hello,', myName, '!');
end.
|
{ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: QuickReport 3.0 for Delphi 3.0/4.0/5.0 ::
:: ::
:: Simple report for print the contents of a stringlist ::
:: ::
... |
unit Nodes;
//{$MODE Delphi}
interface
uses
Classes, SysUtils;
type
TNodeKind = Integer;
TNode =
class(TObject)
protected
FAnno: TStringList;
public
// construction/destruction
constructor Create; virtual;
constructor CreateList(const AList: array of TNode);... |
unit LoanMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseDocked, Vcl.StdCtrls, RzLabel,
Vcl.ExtCtrls, RzPanel, Vcl.Mask, RzEdit, RzDBEdit, RzBtnEdt, Vcl.DBCtrls, RzDBCmbo, SaveIntf, RzButton, RzRadCh... |
PROGRAM RevString(INPUT, OUTPUT);
PROCEDURE Reverse(VAR FileInp: TEXT);
VAR
Ch: CHAR;
BEGIN{Reverse}
IF NOT EOLN(FileInp)
THEN
BEGIN
READ(FileInp, Ch);
Reverse(FileInp);
WRITE(Ch)
END;
END;{Reverse}
BEGIN{RevString}
Reverse(INPUT);
END.{RevString}
|
unit Device.SMART.List;
interface
uses
SysUtils, Generics.Collections;
type
EEntryNotFound = class(EArgumentException);
TSMARTValueEntry = record
ID: Byte;
Current: Byte;
Worst: Byte;
Threshold: Byte;
RAW: UInt64;
end;
TSMARTValueList = class(TList<TSMARTValueEntry>)
public
functi... |
{ ---------------------------------------------------------------------------- }
{ HeightMapGenerator MB3D }
{ Copyright (C) 2017 Andreas Maschke }
{ ---------------------------------------------------------------------------... |
UNIT myStringUtil;
INTERFACE
USES math, strutils, sysutils, myGenerics, zstream, Classes, huffman, LazUTF8;
TYPE T_charSet=set of char;
T_byteSet=set of byte;
T_escapeStyle=(es_javaStyle,es_mnhPascalStyle,es_pickShortest,es_dontCare);
T_stringEncoding=(se_testPending,se_ascii,se_utf8,se_mixed)... |
unit CameraConfigUtils;
interface
uses
System.SysUtils,
Androidapi.JNIBridge,
Androidapi.JNI.Hardware,
Androidapi.JNI.JavaTypes,
Androidapi.Helpers,
Androidapi.Log;
type
TCameraConfigUtils = class sealed
private
class var Tms: TMarshaller;
class function findSettableValue(name... |
unit WebSocketServer;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, ssockets, fgl, wsutils, wsstream;
type
TRequestData = record
Host: string;
Path: string;
Key: string;
Headers: THttpHeader;
end;
{ TWebsocketHandler }
TWebsocketHandler = class
public
function Accept(const... |
program Sample;
var
H : String;
procedure CopyPrint1(G: String);
var F : String;
begin
F := G;
F[1] := 'M';
WriteLn('F: ', F);
WriteLn('G: ', G);
end;
procedure CopyPrint2(var G: String);
var F : String;
begin
F := G;
G[1] := 'M';
WriteLn('F: ', F);
WriteLn('G: ', G);... |
unit uObjPool;
interface
uses
Windows,
Classes,
SysUtils,
SyncObjs;
type
TCreateNewPoolObj = function: TObject of object;
TPoolItem = class
private
InUse : Boolean;
Obj : TObject;
public
constructor Create(AObj: TObject);
destructor Destroy; override;
end;
TObjectPool = c... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit uCustomEdit;
interface
uses
Windows, SysUtils, Classes, Controls, Forms, StdCtrls, Vcl.Mask, Vcl.ComCtrls;
type
TEditMultiLine = class(TEdit)
private
FMultiline: Boolean;
FEnabled: Boolean;
procedure FSetEnabled(Value: Boolean);
protected
procedure CreateParams(var Params:TCreateParams);overrid... |
unit dosheader;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
const
IMAGE_SIZEOF_SHORT_NAME = 8;
IMAGE_NUMBEROF_DIRECTORY_ENTRIES = 16;
IMAGE_FILE_RELOCS_STRIPPED = $0001;
IMAGE_FILE_EXECUTABLE_IMAGE = $0002;
IMAGE_FILE_LINE_NUMS_STRIPPED = $0004;
IMAGE_FI... |
Unit ExFile;
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: Bill BEAM
Description: The TExFile component is used to launch one or more processes.
A single instance of the component can keep track of multiple
processes and provides a variety of us... |
unit frm_xplTimer;
{$mode objfpc}{$H+}
{$r *.lfm}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
ComCtrls, Buttons, StdCtrls, ExtCtrls, RTTICtrls, RTTIGrids,
u_xpl_timer;
type
{ TfrmxPLTimer }
TfrmxPLTimer = class(TForm)
Label1: TLabel;... |
unit adot.Hash;
{
TDigest = record
Simple API for block / chain hashing
Supported hashes:
MD5, SHA1, SHA2, BobJenkins32 (System.Hash)
CRC32, Adler32 (System.ZLib)
TDigests = record
Simple API for single data block hashing
Hashing helpers (mix function etc)
}
interface
uses
System.Z... |
PROGRAM SortingAlgorithms;
TYPE IntArray = ARRAY [1..100] OF INTEGER;
VAR
numComp, numAssign: LONGINT;
(* Less Than *)
FUNCTION LT(a, b: INTEGER): BOOLEAN;
BEGIN (* LT *)
Inc(numComp);
LT := a < b;
END; (* LT *)
PROCEDURE Swap(VAR a, b: INTEGER);
VAR t: INTEGER;
BEGIN (* Swap *)
t := a;
a := b;
b := t;
... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
Buttons;
type
{ TfrmSellingPrice }
TfrmSellingPrice = class(TForm)
bmbReset: TBitBtn;
btnCalculateSellingPrice: TButton;
edtCost: TEdit;
edtProfit: TEdit;
edtVat: T... |
unit fPatientEd;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
fPCEBase, StdCtrls, ORCtrls, CheckLst, ExtCtrls, Buttons, uPCE, rPCE, ORFn,
fPCELex, fPCEOther, ComCtrls, fPCEBaseMain, VA508AccessibilityManager;
type
TfrmPatientEd = class(TfrmPCEBaseMain)
lblUnder... |
unit JATypes;
{$mode objfpc}{$H+}
{$PACKRECORDS 2} {required for compatibility with various amiga APIs}
{$i JA.inc}
interface
uses
{Amiga} Exec;
type
{32-bit float}
Float32 = Single;
PFloat32 = ^Float32;
{64-bit float}
Float64 = Double;
PFloat64 = ^Float64;
{unsigned 8-bit integer}
UInt8... |
unit ufrmLogin;
interface
{$I ThsERP.inc}
uses
System.SysUtils, System.Classes, Vcl.Controls, Vcl.Forms, Vcl.Samples.Spin,
Vcl.StdCtrls, FireDAC.Comp.Client, Vcl.Dialogs, Winapi.Windows, Vcl.Graphics,
Vcl.AppEvnts, Vcl.ExtCtrls, Vcl.ComCtrls,
xmldom, XMLDoc, XMLIntf,
Ths.Erp.Helper.Edit,
Ths.Erp.Helper.... |
{
Translation of "ImGui SDL2 binding with OpenGL" example, using SDL2 headers provided by https://github.com/ev1313/Pascal-SDL-2-Headers
In this binding, ImTextureID is used to store an OpenGL 'GLuint' texture identifier. Read the FAQ about ImTextureID in imgui.cpp.
You can copy and use unmodified imgui_impl_* f... |
{*******************************************************************************
用于程序中的错误调试
创建人:TJH
创建日前:2009-11-26
描述:...
*******************************************************************************}
unit CaptureDebug;
interface
uses
Windows, Classes, SysUtils, Forms;
Type
TDebug = class(TObject)
public... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
(**********************************************************************************)
(* Code generated with NexusDB Enterprise Manager Data Dictionary Code Generator *)
(* *)
(* Version: 3,0401 ... |
unit untIniIO;
interface
uses
Classes, SysUtils, IniFiles, Forms, Windows;
const
csIniDataConfigSection = 'DataConfig';
{Section: DataConfig}
csIniDataConfigserverAddr = 'serverAddr';
csIniDataConfigserverName = 'serverName';
csIniDataConfigserverPort = 'serverPort';
csIniDataConfiguserName = 'userNam... |
unit MsgLog;
interface
uses
Classes,
Graphics;
type
TLog = class(TObject)
private
FMsg: string;
FLog: TStringList;
public
constructor Create;
destructor Destroy; override;
procedure Turn;
procedure Add(const Msg: string);
function Get: string;
procedure Render(Canvas: TCanva... |
{**********************************************}
{ TTriSurfaceSeries Editor Dialog }
{ Copyright (c) 1996-2004 by David Berneda }
{**********************************************}
unit TeeTriSurfEdit;
{$I TeeDefs.inc}
interface
uses {$IFNDEF LINUX}
Windows, Messages,
{$ENDIF}
SysUtils, ... |
PROGRAM test;
VAR
x : integer;
BEGIN
writeln('Hello world');
x := 5;
writeln('x = ', x);
writeln('third');
END.
|
unit Pizzaria;
interface
uses
System.SysUtils, InterfacePizzaria;
type
TPizzaria = class(TInterfacedObject, IPizzaria)
private
Pizza: string;
public
constructor Create(Pizza: string);
procedure EntregarPizzas;
procedure ReceberDinheiro;
end;
implementation
{ TPizzaria }
constructor TPizz... |
program client;
{$APPTYPE CONSOLE}
uses
SysUtils,
ScktComp,
StdCtrls;
type
_Client = class
socket: TClientSocket; // объект класса TClientSocket для соединения с сервером
text: string; // сообщение
procedure connect(); // метод соединения с сервером
procedure send(); // метод отправки сообщения
pr... |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
{ Functions to compute MD5 message digest of files or memory blocks,
according to the definition of MD5 in RFC 1321 from April 1992.
Copyright (C) 1995, 1996, 2000-2005 Free Software Foundation, Inc.
Author: Frank Heckenbach <frank@pascal.gnu.de>
Based on the C code written by Ulrich Drepper
<drepper@gnu.a... |
unit ncShellStart;
{
ResourceString: Dario 13/03/13
}
interface
uses
Windows,
SysUtils,
ShellApi;
procedure ShellStart(aCmd: String; aParams: String=''; aDirectory: String=''; FormHWND: HWND = 0);
procedure ShellStartCustom(aCmd, aParams, aDir: String; FormHWND: HWND; nShow: Integer = SW_SHOWNORMAL; aVerb:... |
unit vr_zipper;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, zipper,
{$IFDEF UTILS_MIN}vrUtilsMini{$ELSE}vr_utils, vr_classes{$IFDEF VER3},
LazUTF8{$ENDIF}, FileUtil{$ENDIF};
type
{ TvrZipper }
TvrZipper = class(TZipper)
private
FBasePath: string;
FCaseSensitive: Boo... |
unit uRangeList;
interface
uses Generics.Collections, Generics.Defaults, uRange, uRangeElement,
uDataModule, variants;
type
TRangeList = class(TObject)
private
FRangeList: TDictionary<Integer, TRange>;
procedure AddRangeToDB(aRange: TRange);
procedure AddElementToDB(aRangeElement: TRa... |
unit fPtDemo;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, ORCtrls, ORFn, ComCtrls, fBase508Form,
VA508AccessibilityManager, uReports, U_CPTEditMonitor;
type
TfrmPtDemo = class(TfrmBase508Form)
lblFontTest: TLabel;
memPtDemo: TRichEdit;
... |
////////////////////////////////////////////////////////////////////////////////
//
//
// FileName : SUISkinForm.pas
// Creator : Shen Min
// Date : 2002-08-06
// Comment :
//
// Copyright (c) 2002-2003 Sunisoft
// http://www.sunisoft.com
// Email: support@sunisoft.com
//
////////////////... |
unit Test.Devices.Altistart22;
interface
uses Windows, TestFrameWork, GMGlobals, Test.Devices.Base.ReqCreator, GMConst,
Test.Devices.Base.ReqParser;
type
TAltistart22ReqCreatorTest = class(TDeviceReqCreatorTestBase)
protected
function GetDevType(): int; override;
procedure DoCheckRequests(); overrid... |
program dltiket;
uses crt;
type
Tiket = record
nokursi : integer;
nama : string[18];
alamat : string[14];
nohape : string[12];
kodetujuan : string;
tujuan : string;
kodekelas : integer;
ke... |
unit ncDMcommPlus;
{
ResourceString: Dario 12/03/13
}
interface
uses
SysUtils, Classes, nxdb, nxsdServerEngine, nxreRemoteServerEngine, DB, ExtCtrls,
nxllComponent, nxllTransport, nxptBasePooledTransport, nxtwWinsockTransport, ncCommPlusIndy;
type
TdmCommPlus = class(TDataModule)
nxTCPIP: TnxWinsockTra... |
{
$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 rights reserv... |
unit uMisc;
interface
uses
Winapi.Windows, Winapi.Messages,
System.SysUtils, System.Classes, System.Character, System.Variants,
Generics.Collections, Generics.Defaults,
VCL.Forms;
type
TArg< T > = reference to procedure( const Arg: T );
// Generate Temp FileName uses Windows API GetTempFileName()
function... |
unit ncnxServerPlugin;
interface
{$I NEX.INC}
uses
Classes,
Windows,
ExtCtrls,
nxptBasePooledTransport,
nxllTypes,
nxllList,
nxllComponent,
nxllTransport,
nxllPluginBase,
nxllSync,
ncNetMsg,
ncClassesBase;
type
TncnxServerPlugin = class(TnxBasePluginEngine)
private
FNexServ : TncSe... |
unit TestSortUses;
(*------------------------------------------------------------------------------
Delphi Code formatter source code
The Original Code is TestSortUses, released Sept 2004.
The Initial Developer of the Original Code is Anthony Steele.
Portions created by Anthony Steele are Copyright (C) 1999-2... |
Program testeFeldZweitMax (input, output);
{ testet die Funktion FeldZweitMax }
Const
FELDGROESSE = 10;
Type
tIndex = 1..FELDGROESSE;
tFeld = array [tIndex] Of integer;
Var
Feld : tFeld;
i : integer;
function FeldZweitMax (Var inFeld : tFeld) : integer;
var
Max, ... |
program Sample;
var
H, G : String;
procedure hello(s : String);
var hstr : String;
begin
hstr := 'Hello';
WriteLn(hstr, ' ', s);
end;
begin
H := 'World';
G := H;
hello(G);
end.
|
{ **********************************************************}
{ }
{ DeskMetrics Installer Library }
{ Copyright (c) 2011 }
{ http://deskmetrics.com }
{ ... |
unit uZYZLogic;
interface
uses
System.Classes, System.UITypes,System.SysUtils, System.Types,System.Generics.Collections,
FMX.Dialogs,FMX.Types, uPublic,uEngine2DSprite,uEngine2DExtend;
const
SQUIRREL_INTERVAL = 5000;
BOARDER_BLINK_INTERVAL = 500;
START_APPLE_RANGE = 4; // 在1-4随机选取一个appleSprite为第一个... |
unit Annotation.Utils;
interface
uses
System.Types;
function ViewportToImage(const ViewportPoint: TPoint;
const ViewportWidth, ViewportHeight, ImageWidth, ImageHeight: integer) :TPoint;
function IsOnImage(const Point: TPoint;
const ViewportWidth, ViewportHeight, ... |
unit u_select_inscription;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
StdCtrls;
type
{ Tf_select_inscription }
Tf_select_inscription = class(TForm)
btn_ok: TButton;
edt_code: TEdit;
edt_nom: TEdit;
edt_num: TEdit;
lbl_c... |
{Except for source code formatting, this is a verbatim copy of:
Niklaus Wirth, "Algorithms + Data Structures = Programs", Program 4.7,
pp 252--257, Prentice-Hall, 1976. Compiled and tested with GNU Pascal.}
program Btree(input, output);
{B-tree search, insertion and deletion}
const
n = 2;
nn = 4; {pag... |
{-------------------------------------------------------------------------------
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/
So... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLStrings<p>
String constants that are used in many GLScene units<p>
<b>History :</b><font size=-1><ul>
<li>16/09/10 - YP - Added glsUnknownParam
<li>23/02/07 - DaStr - Added glsDot, glsUnsupportedType, glsUncompatibleType... |
1 program TextFileCounter;
2 { Etienne van Delden, 0618959, <date> }
3 { Dit programma telt het aantal woorden, getallen, regels en tekens van de
4 input file die men ingeeft.}
5
6
7
8 const
9 letter = ['a' .. 'z', 'A' .. 'Z']; // type letter
10 cijfer = ['0' .. '9']; // ... |
unit uDemo;
interface
uses
System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
//GLS
GLScene, GLVectorGeometry, GLCadencer, GLWin32Viewer, GLCrossPlatform,
GLBaseClasses, GLSimpleNavigation, GLObjects, GLCoordinates, GLContext,
GLSCUDA, GLSCUDACo... |
unit settingsScreen;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, uEncrypt;
type
TfrmSettings = class(TForm)
Label1: TLabel;
edtOldPassword: TEdit;
edtNewPassword: TEdit;
edtRepeatPassword: TEdit;
Label2: TLabel;
... |
unit CustomDrawTreeView;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, ExtDlgs, StdCtrls, ExtCtrls, ColorGrd, ImgList, Menus;
type
TCustomDrawForm = class(TForm)
TV: TTreeView;
ImageList: TImageList;
MainMenu1: TMainMenu;
Drawing1: TMenuItem;... |
unit GridSystem.ColumnEditor;
interface
uses
FMX.Dialogs, System.SysUtils, System.Classes, System.UITypes, DesignEditors, DesignIntf, GridSystem.ColumnDlg, GridSystem.Types;
type
TGridSystemColumnComponentEditor = class(TComponentEditor)
private
procedure ShowDesigner;
public
function GetVerbCount: I... |
unit MetroVisCom;
//# BEGIN TODO Completed by: author name, id.nr., date
{ Etienne van Delden, 0618959, 09-05-2008}
//# END TODO
interface
uses
Classes, Contnrs, Graphics, IniFiles,
Planner, VisCom, StringValidators;
type
TVisLine = class; // forward
//=====================================... |
unit BCEditor.Editor.Undo;
interface
uses
Classes, BCEditor.Consts, BCEditor.Types;
type
TBCEditorUndo = class(TPersistent)
strict private
FMaxActions: Integer;
FOnChange: TNotifyEvent;
FOptions: TBCEditorUndoOptions;
procedure DoChange;
procedure SetMaxActions(Value: Integer)... |
UNIT TreeUnit;
INTERFACE
TYPE NodePtr = ^Node;
Node = RECORD
left, right: NodePtr;
val: string;
count: integer;
END;
Tree = NodePtr;
FUNCTION NewNode(x: string): NodePtr;
PROCEDURE DisposeTree(var t: Tree);
FUNCTION GetHighestCount(t: Tree): NodePtr;
(... |
program recdemo(input,output);
type
TEmployee = record
name : string[25];
address : string[40];
age : byte;
position : string[10];
commision : real;
end;
var
x : TEmployee;
begin
x.name := 'Paul Doher... |
unit u_Downloader_Indy;
{$ifdef fpc}
{$mode delphi}
{$endif}
interface
uses Classes,
IdHTTP,
IdComponent,
IdHeaderList;
type TDownloadAbordEvent = procedure(aSender : TObject; anError : integer) of object;
{ TDownloader }
TDownloader = class
private
IdHTTP:... |
unit ResltFrm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, DB, DBTables, Grids, DBGrids, StdCtrls;
type
TQueryForm = class(TForm)
QueryLabel: TLabel;
DBGrid1: TDBGrid;
DataSource: TDataSource;
Query: TQuery;
Session: TSession;
Statu... |
unit classe.professor_disciplina;
interface
Uses TEntity, AttributeEntity, SysUtils, classe.disciplina;
type
[TableName('Professor_Disciplina')]
TProfessor_Disciplina = class(TGenericEntity)
private
// FDisciplina : TDisciplina;
FIdProfessor:integer;
FIdDisciplina:integer;
procedure setIdProf... |
{-------------------------------------------------------------------------------
// Authentication Demo
//
// Description: Three Handlers to Know, They Are (In Order):
// ApacheOnAccessChecker......Access Control
// ApacheOnCheckUserId........Authentication
// ApacheOnAuthChecker.... |
unit String_Handle;
interface
uses Classes, SysUtils, ASGSQLite3, StdCtrls;
function getString_List(inputString: String): TStringList;
procedure getList_fromDB(asqQU_Temp: TASQLite3Query; sql_str: String; fieldNM: String;
var ccb_box: TComboBox);
implementation
function getString_List(inputString: String): TStr... |
unit TreeEditorCommands;
interface
uses
UndoRedo, Nodes, TreeEditor, Repr, Dialogs, SysUtils,
RE, RERepr, Prop, PropRepr, MyMath, MathRepr;
type
// ===== DoClear ===================================================
TCommand_DoClear =
class(TCommand)
protected
// command parameters
... |
unit Vigilante.Aplicacao.DI;
interface
uses
System.Generics.Collections, ContainerDI.Base, ContainerDI.Base.Impl;
type
TAplicacaoDI = class(TContainerDI)
public
class function New: IContainerDI;
procedure Build; override;
end;
implementation
uses
System.SysUtils, ContainerDI,
Vigilante.Compilac... |
program parcialjulio18;
const
MAX_LETRAS = 6;
MAX_PALABRAS = 4;
type
TLetras = 'a'..'z';
Texto = record
letras : array[1..MAX_LETRAS] of TLetras;
tope : 0 .. MAX_LETRAS;
end;
Diccionario = array[1..MAX_PALABRAS] of Texto;
procedure LeerTexto(var entrada:Texto);
var tmp : char;
i : integer;
begin
... |
unit nkMQTTClient;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, MQTT, MQTTReadThread;
type
{ TnkMQTTClient }
TnkMQTTClient = class(TComponent)
private
FClient:TMQTTClient;
FClientId: string;
FPingInterval: integer;
FPort: integer;
... |
(* fib.pas - Compute fibonacci numbers *)
program fibonacci;
const LAST = 30; (* A constant declaration *)
var n : integer; { Variable declaration }
(* A function declaration *)
function fib(n : int) : int ;
begin
if n <= 1 then ... |
unit ltr43api;
interface
uses SysUtils, ltrapitypes, ltrapidefine, ltrapi;
const
// Коды ошибок
LTR43_NO_ERR =0;
LTR43_ERR_WRONG_MODULE_DESCR =-4001;
LTR43_ERR_CANT_OPEN =-4002;
LTR43_ERR_INVALID_CRATE_SN =-4003;
... |
unit Router;
{$MODE Delphi}
interface
uses
speed,
uProcess,
sysutils, httpdefs, fpjson, jsonparser,
Generics.Collections; // TList
// global methods
procedure RouterInit(_c : config; _l : list; _h : hook);
procedure jsonResponse(var res: TResponse; data: String; code : integer=200);
procedure SetProcess(req: TReque... |
unit Persistence.Entity.State;
interface
uses
System.Classes,
Spring,
Spring.Persistence.Mapping.Attributes,
Persistence.Consts;
type
TCommonState = class(TObject)
strict private
FId: int;
FName: string;
FStateId: int;
protected
property Id: int read FId write FId;
property Name: s... |
unit ImageKnifeDocument;
{$MODE Delphi}
interface
uses RectGrid, Classes, Graphics, SysUtils;
type
TImageKnifeDocument = class
private
FNormalImageFilename: String;
FOverImageFilename: String;
FRectGrid: TRectGrid;
FFilename: String;
FNormalImage: TPicture;
FOverImage: TPicture;
func... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 2018-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
{*!
* Fano Web Framework (https://fanoframework.github.io)
*
* @link https://github.com/fanoframework/fano
* @copyright Copyright (c) 2018 Zamrony P. Juhara
* @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT)
*}
unit RouterImpl;
interface
{$MODE OBJFPC}
uses
contnrs,
Rout... |
unit FamilySearchQuery;
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, Fi... |
unit webservice1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs,
blcksock, sockets, Synautil, LazLogger, fpsimplejsonexport, fpjson,
sqldb, strutils, Windows;
type
TAction = (acInsert, acSelect, acUpdate, acDelete);
TRoute = class(TObject)
path: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.