text stringlengths 14 6.51M |
|---|
(* ENUNCIADO
Escreva um programa em Pascal que leia 6 valores reais para as variáveis A,B,C,D,E, F e imprima o
valor de X após o cálculo da seguinte expressão aritmética:
X=((A+B)/(C-D)*E)/(F/A*B)+E
Seu programa deve imprimir a mensagem "divisao por zero" caso o denominador seja zero.
Caso isso não ocorra seu program... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
unit mnDBTestCase;
{
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;
type
TmnDBTestCase = class(... |
unit lanctoAusencias;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters,
cxContainer, cxEdit, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinCaramel,
dxSkinCoffee, dxSkinDarkRoom, dxSkinDarkSide... |
program exObjects;
type
Rectangle = object
private
length, width: integer;
public
constructor init(l, w: integer);
destructor done;
procedure setlength(l: integer);
function getlength(): integer;
procedure setwidth(w: integer);
function getwid... |
unit U_LinhaBase;
interface
uses
System.Classes, System.SysUtils, System.Rtti, U_Atributos;
type
TLinhaBase = class abstract(TObject)
private const
C_SEPARADOR = '|';
public
function GeraLinha() : String;
end;
TUtils = class
public
class function FormatarValor... |
unit UploadUnloadData;
interface
uses
Windows, Data.DB, Datasnap.DBClient, System.Classes, System.IOUtils, System.IniFiles,
dsdDB, VKDBFDataSet;
type
TdmUnloadUploadData = class(TDataModule)
spUnload: TdsdStoredProc;
UnloadDataCDS: TClientDataSet;
procedure DataModuleCreate(Sender: TObject);
priv... |
unit uZbutton;
{$S-,W-,R-,H+,X+}
{$C PRELOAD}
interface
uses Windows, Messages, Classes, Controls, Forms, Graphics, StdCtrls,
ExtCtrls, CommCtrl, ImgList;
const BT_HEIGHT = 24;
type
ZButtonState = (bzsUp, bzsDisabled, bzsDown, bzsExclusive);
ZButtonLayout = (blGlyphLeft, blGlyphRight, blGly... |
unit CustomException;
interface
uses
System.SysUtils, System.Classes;
type
TCustomException = class(System.SysUtils.Exception)
private
procedure SalvarLog(Mensagem: String);
public
constructor Create(Mensagem: String);
end;
implementation
uses
Vcl.Forms;
{ TCustomException }
constructor TCust... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
unit BuilderPizzaExample.Builder.Base.PizzaBuilderBase;
interface
uses
BuilderPizzaExample.Domain.Pizza,
BuilderPizzaExample.Processors.ICalculatePrice,
BuilderPizzaExample.Builder.Base.IPizzaBuilderBase,
BuilderPizzaExample.Domain.IPizza;
type
TPizzaBuilderBase = class(TInterfacedObject, IPizzaBuilderBase... |
unit RepositorioPessoa;
interface
uses
DB,
Auditoria,
Repositorio;
type
TRepositorioPessoa = class(TRepositorio)
protected
function Get (Dataset :TDataSet) :TObject; overload; override;
function GetNomeDaTabela :String; override;
function GetIdentific... |
{-----------------------------------------------------------------------------
Unit Name: DUSound
Author: Sebastian Hütter
Date: 2006-08-01
Purpose: Produce beeps via the system speaker (on Win9x and NT/2k/XP)
History: 2006-08-01 initial release
--------------------------------------------------------... |
unit Report_Goods_SalebyTransferDebtIn;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorReport, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, dxSkinsDefaultPainters,
dxSk... |
(*============================================================================
-----BEGIN PGP SIGNED MESSAGE-----
This code (c) 1994, 1997 Graham THE Ollis
GENERAL NOTES
=============
This is 16bit DOS TURBO PASCAL source code. It has been tested using
TURBO PASCAL 7.0. You will need AT LEAST version 5.0 ... |
unit FitManyArguments;
interface
uses
FitHeuristic, Classes, OlegVector, TeEngine, OlegType;
type
TFFManyArguments=class (TFFHeuristic)
private
fFileName:string;
fSL:TStringList;
fAllArguments:array of array of double;
fArgumentsName:array of string;
fArgumentNumber:byte;
procedure DataReading;
prot... |
unit treemaps;
interface
uses sysutils, windows, classes, contnrs, controls, gr32, gr32_image, math;
type
TTreeNode = class
protected
function getcaption: string; virtual;
procedure setcaption(const value: string); virtual;
public
r: tfloatrect;
function Size: integer; virtual; abstract;
pr... |
{*!
* 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 FastCGIAppImpl;
interface
{$MODE OBJFPC}
{$H+}
uses
Runnabl... |
{Common EXIF definitions and routines
Needed component: https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/fpexif/
plus fpEXIF patch for Yuneec + XMP from wp_XYZ in r7986 (2021-03-25)
See also: https://www.lazarusforum.de/viewtopic.php?f=18&t=13356
EXIF tags: https://exi... |
unit TSTOHackMasterListIntf;
interface
Uses Classes, HsInterfaceEx, HsStringListEx, HsStreamEx,
TSTOProjectIntf, TSTOScriptTemplateIntf, TSTORGBProgress;
Type
ITSTOHackMasterMovedItem = Interface(IInterfaceEx)
['{4B61686E-29A0-2112-86ED-11F68463C280}']
Function GetXmlFileName() : String;
Procedure S... |
unit URepositorioMunicipio;
interface
uses
UMunicipio
, UEntidade
, URepositorioDB
, SqlExpr
;
type
TRepositorioMunicipio = class(TRepositorioDB<TMUNICIPIO>)
public
constructor Create;
procedure AtribuiDBParaEntidade(const coMUNICIPIO: TMUNICIPIO); override;
procedure AtribuiEntidadePara... |
unit Comanda;
interface
uses
SysUtils,
Contnrs;
type
TComanda = class
private
Fnumero_comanda: integer;
Fcodigo :integer;
FAtiva :Boolean;
FMotivo :String;
public
property codigo :integer read Fcodigo write Fcodigo;
property numero_comanda :integer read Fnumero_co... |
{
Description: vPlot math unit.
Copyright (C) 2017-2019 Melchiorre Caruso <melchiorrecaruso@gmail.com>
This source 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 (a... |
unit FilteringProject;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls;
type
{ TFilteringForm }
TFilteringForm = class(TForm)
editKernel: TEdit;
imgSketch: TImage;
lblKernelSize: TLabel;
btnLoad: TButton;
btnSave: TButton;
... |
unit CustomConverter;
interface
uses
DBXJSONReflect,
MyObjects; //Needed by converter and reverter for TLaptops
var
ISODateTimeConverter: TStringConverter;
ISODateTimeReverter: TStringReverter;
StringListConverter: TTypeStringsConverter;
StringListReverter: TTypeStringsReverter;
LaptopListConverter: ... |
unit core_bullets;
{$mode objfpc}{$H+}
interface
uses
core_types, VectorGeometry,
core_orders_manager, core_utils, core_listofrecords, core_orders,
core_terrain_generator
{$IFNDEF SERVER} ,core_lights {$ENDIF}
;
type
eBulletTypes = (buBlaster,buPlazma);
{ TBullets }
TBullets = class
type
... |
unit Menu.Model.Conexoes.ConexaoFireDac;
interface
uses
Menu.Model.Conexoes.Interfaces, FireDAC.Comp.Client, System.Classes,
FireDAC.Comp.UI, FireDAC.Phys.PG,
FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf,
FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Asy... |
{$ifdef license}
(*
Copyright 2020 ChapmanWorld LLC ( https://chapmanworld.com )
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this li... |
program add(input, output);
USES System;
(*** Simple program to add 2 integer arrays element by element. ***)
const
size = 5;
type
intarray = array [1..size] of integer;
var
a1: integer;
a2: intarray;
Function PythagorasFunc(D: Real; B: Real) : Real; {The pythagoras theorem}
Begin
PythagorasF... |
unit GR32_TestGuiPng;
(* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1 or LGPL 2.1 with linking exception
*
* 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 Lice... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Generics.Collections,
superobject,
IdMultiPartFormData,
IdLogFile,
IdSSLOpenSSL,
IdHttp,
uAuthCalls,
JsonRpc, Vcl.ExtCtrls... |
unit SITE.Model;
interface
uses
System.Classes, uDWDatamodule, uDWAbout, uRESTDWServerEvents,
uDWConsts, 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.FB, FireDAC.Phys.FBDef, F... |
unit IdTestIMAP4;
interface
uses
IdTest,
IdIMAP4,
IdObjs,
IdGlobal,
IdSys;
type
TIdTestIMAP4 = class(TIdTest)
published
procedure TestStripCRLFs;
end;
TIdIMAP4Access = class(TIdIMAP4);
implementation
procedure TIdTestIMAP4.TestStripCRLFs;
var
aImap:TIdIMAP4Access;
... |
unit frmCropMark;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseForm, Vcl.StdCtrls,
Vcl.ComCtrls, VGCore_TLB, Vcl.Samples.Spin, Winapi.ActiveX, Vcl.ExtCtrls,
Vcl.ImgList, Vcl.Imaging.pngimage, System.Im... |
program sumatoria;
uses crt;
var termino:integer;
function valida(var rango:integer):boolean;
begin
if ((rango>20) and (rango<1000))then valida:=true else valida:=false;
end;
function calcular(var num:integer):real;
var i:integer=0;
var res :real=0;
var pos :boolean = true;
begin
while i<>num do
... |
unit Thred_Types;
interface
uses
{ Standard }
Classes, Windows, Graphics,
GR32,
{ Thred32 }
Thred_Constants;
type
// thred.h #346
THoopSetting = (hsSetCustomHoop = 1, // SETCUST -- set the custom hoop
hsSmallHoop = 2, // SMALHUP -- pfaf code for small hoop
... |
unit View.DepartmentListForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, View.TemplateForm, Data.DB, Vcl.Menus,
GrdPMenu, JvComponentBase, JvFormPlacement, Vcl.Grids, Vcl.DBGrids,
JvExDBGrids, JvDBGrid, ... |
{****************************************************
Alcinoe.AVLBinaryTree (Self-Balancing Binary Trees)
Binary trees that are self-balancing in the AVL sense
(the depth of any left branch differs by no more than
one from the depth of the right branch).
****************************************************}
unit ... |
(*
SMPEG library (MPEG-1) components
This file is a part of Audio Components Suite.
Copyright (C) 2002-2005 Andrei Borovsky. All rights reserved.
See the license file for more details.
This is the ACS for Linux and Windows version of the unit.
*)
{
Status: tested
}
unit acs_mpeg;
interface
uses
C... |
unit UPrefFAppStartUp;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
{ This is the Frame that contains the Appraisal StartUp Preferences}
interface
uses
Win... |
unit uTraveler;
interface
uses
uPerson;
type
TTraveler = class(TPerson)
private
FCountry: Integer;
FfirstName: string;
FSurename: string;
procedure SetCountry(const Value: Integer);
procedure SetfirstName(const Value: string);
procedure SetSurename(const Value: string);
published
... |
unit RKrnlUtils;
interface
uses
TlHelp32, Windows, Classes, SysUtils;
type
TProcessList32 = array of TProcessEntry32;
TModuleList32 = array of TModuleEntry32;
function ProcessIsRunning(const ExeName: string; const bSelfIgnored: Boolean): Boolean;
procedure GetProcessList(var ProcessList: TProcessList32);
p... |
unit UToolSketchMgr;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2008 by Bradford Technologies, Inc. }
{ This is the unit that display the results from the sketchers. It }
{ shows up to 5 sketches f... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
unit GameObject;
interface
uses
FMX.Layouts, FMX.Objects, System.Classes, FMX.Types,
Helper;
type
TGameObject = class abstract(TLayout)
private
ObjectType: TGameObjectType;
Img: TImage;
procedure SetImage(ImgName: string);
public
property Image: string write SetImage;
property BlockTy... |
unit FileCopyOptCnt;
interface
uses SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms,container, CompGroup,ExtUtils, AbilityManager,
ComWriUtils;
type
TctFileCopyOptions = class(TContainer)
cbAlwaysReplace: TCheckBox;
GroupBox1: TGroupBox;
Label1: TLabel;
cbSNe... |
{
TDiskDriveInfo Component Version 1.1 - Suite GLib
Copyright (©) 2009, by Germán Estévez (Neftalí)
http://msdn.microsoft.com/en-us/library/aa394132(VS.85).aspx
Utilización/Usage:
Basta con "soltar" el componente y activarlo.
Place the component in the form and active it.
MSDN Info:
... |
unit Characters;
interface
uses DBCon, AccountInfo, System.SysUtils, Data.DB;
type
TCharacter = record
CharID: Integer;
Promotion: Integer;
EXP: Integer;
Level: Integer;
end;
type
TCharacters = class
private
MySQL: TQuery;
AccInfo: TAccountInfo;
public
Chars: array of... |
unit FormSelectDatasource;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.AppEvnts;
type
TFrmSelectDataSource = class(TForm)
lstDatabase: TListBox;
btnOK: TButton;
btnCancel: TBu... |
// =============================================================================
// Module name : $RCSfile: FuncAux.pas,v $
// description : This unit implements subclasses of TFuncitonBase, which can be
// called as auxiliary functions in a script.
// Auxiliary Script Function
// Compil... |
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ ... |
unit DIOTA.Model.Neighbor;
interface
type
TNeighbor = class
private
FConnectionType: String;
FNumberOfRandomTransactionRequests: Integer;
FNumberOfInvalidTransactions: Integer;
FNumberOfSentTransactions: Integer;
FNumberOfNewTransactions: Integer;
FAddress: String;
FNumberOfAllTransact... |
unit mnWindows;
interface
uses Windows, Controls, Graphics, Classes, mnSystem, mnString, Messages, mnGraphics;
{--------------------------------
在Windows环境中创建和关闭Desktop。
mnCreateDesktop返回新创建的Desktop的句柄。
mnCloseDesktop返回是否成功关闭。
Tested in TestApp.
--------------------------------}
function mnCreateDesktop(con... |
unit NavigatorMain;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.TabControl, FMX.StdCtrls, FMX.Controls.Presentation,
FMX.Gestures, System.Actions, FMX.ActnList, FMX.ListBox, FMX.Edit,
FMX.Comb... |
unit ConfiguracoesNF;
interface
uses SysUtils, Contnrs, ParametrosNFCe, TipoRegimeTributario;
type
TConfiguracoesNF = class
private
FRegimeTributario :TTipoRegimeTributario;
Fcodigo_empresa :Integer;
Faliq_cred_sn :Real;
Faliq_icms :Real;
Faliq_pis :Real;
Faliq_cofins :Real;
Fnum_c... |
unit Exemplo4_1;
interface
uses
System.Classes, System.SysUtils, Xml.XMLDoc, Xml.XMLIntf, System.Json,
Data.DBXJSONReflect, Exemplo4;
type
TFichaUsuarioTXT = class(TFichaUsuario)
procedure Exportar(pArquivo: string); override;
end;
implementation
{ TFichaUsuarioTxt }
procedure TFich... |
unit Builder.Interfaces.IEngine;
interface
type
IEngine = Interface
['{8C4A5193-D845-459B-BD10-7154418E588B}']
function GetPotency: string;
end;
implementation
end.
|
unit PDBCustomMemonoEdit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Mask, ToolEdit, PDateEdit,dbctrls,db,PBaseMemoEdit;
type
TPDBCustomMemonoEdit = class(TPBaseMemoEdit)
private
FCustomDataLink : TFieldDataLink;
protected
{ Protected declarat... |
program project1;
uses
sysutils;
var
x:integer;
begin
repeat
Write('How much you want to withdraw: ');
Readln(x);
writeln;
if x mod 10 <> 0 then begin WriteLn('We are sorry, but smallest banknote is 10$'); writeln; end;
until (x mod 10) = 0;
writeln;
writeln('Banknote | Count');
writeln('-------... |
unit Unit1;
interface
uses
IniFiles, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Menus, Helpp;
type
TForm1 = class(TForm)
ComboBox1: TComboBox;
Find: TButton;
GroupBox: TGroupBox;
FindFileList: TListBox;
mm1: TMainMenu;
N1: TMenuItem;
... |
unit RichEditMB;
interface
uses
Windows, Messages, SysUtils, Classes, Controls, Forms, Dialogs,
StdCtrls,NewComCtrls,RichEdit;
type
TRichEditMB = class(TRichEdit2)
private
{ Private declarations }
protected
{ Protected declarations }
procedure CreateWnd; override;
//procedure CreateParams(v... |
unit AboutDialog;
{ SimThyr Project }
{ A numerical simulator of thyrotropic feedback control }
{ Version 4.0.0 (Merlion) }
{ (c) J. W. Dietrich, 1994 - 2017 }
{ (c) Ludwig Maximilian University of Munich 1995 - 2002 }
{ (c) Ruhr University of Bochum 2005 - 2017 }
{ This unit implements an about-box }
{ Source cod... |
unit uSetupDlg;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Mask, ToolEdit, Buttons, ExtCtrls;
type
TSetupDlg = class(TForm)
Panel1: TPanel;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
GroupBox1: TGroupBox;
rbDefPath: TR... |
{
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; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even ... |
unit zdatasetgroup;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, SQLDB, ZDataset, ZAbstractConnection, ZAbstractDataset,
ZAbstractRODataset, ZAbstractTable, DB, ZDbcIntfs, Dialogs;
type
{ TDatasetComponent }
TZDatasetComponent = class(TCollectionItem)
private
FAutoincGenerator: boolean;
... |
unit View.InvoiceForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX.StdCtrls, FMX.ExtCtrls, System.Rtti, FMX.Grid,
FMX.Layouts, FMX.Objects, FMX.Edit, FMX.ListBox,
... |
unit TSTOHackSettingsIntf;
interface
Uses Classes, HsInterfaceEx,
TSTOCustomPatchesIntf, TSTOSbtp.IO, TSTOScriptTemplate.IO, TSTOHackMasterList.IO;
Type
THackIdxFileFormat = (hiffXml, hiffBin, hiffZip);
ITSTOHackSettings = Interface(IInterfaceEx)
['{4B61686E-29A0-2112-9BE8-7A7F480881B7}']
Function Ge... |
unit Crud.Model.Entity.Produto;
interface
uses
SimpleAttributes;
type
[Tabela('tb_produto')]
TProduto = class
private
Fid_produto: integer;
Fid_categoria_produto: integer;
Fdata_cadastro: TDateTime;
Fnome_produto: string;
Fvalor_produto: double;
procedure Setdata_cadastr... |
unit USharedMem;
(* 共有メモリ *)
(* Copyright (c) 2002 Twiddle <hetareprog@hotmail.com> *)
interface
uses
SysUtils, Windows;
type
(*-------------------------------------------------------*)
THogeSharedMem = class(TObject)
protected
FMemory: Pointer;
FHandle: Cardinal;
FSize: Cardinal;
public
co... |
unit BCrypt.Intf;
interface
uses BCrypt.Types;
type
IBCrypt = interface
['{4C75D7B3-5850-4062-B0BE-7FDA5D98936B}']
function GenerateHash(const APassword: UTF8String; AHashType: THashType; ACost: Byte): string;
function CompareHash(const APassword: UTF8String; const AHash: string): Boolean;
function... |
unit AsyncTaskTestsU;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
TAsyncTaskTests = class(TObject)
public
[Test]
procedure TestAsyncTask;
end;
implementation
uses System.SyncObjs, System.SysUtils, System.Threading,
System.Classes, System.Generics.Collections, System.Net.HttpClient;... |
unit ScriptEditorCodigoDatos;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ScriptDatosEngine, uPSComponent, BDConstants, Script_Datos, Script_Util;
type
TScriptEditorCodigoDatos = class(TScriptDatosEngine)
private
Util: TScriptUtil;
sResultType: s... |
unit objOperador;
{$mode objfpc}{$H+}
interface
uses
dbutils, dOpf, dSQLdbBroker, SysUtils;
type
EOperador = class(Exception);
type
{ TOperador }
TOperador = class(TObject)
private
FId: int64;
FLoginAD: string;
FNome: string;
FEmail: string;
FDtCadastro: string;
... |
PROGRAM emirps (n);
VAR a, b : INTEGER;
{ Reverses an integer number }
FUNCTION reverse (n : INTEGER) : INTEGER;
BEGIN
reverse := 0;
WHILE n > 0 DO
BEGIN
reverse := reverse + (n MOD 10);
reverse := reverse * 10;
n := n DIV 10
END
END;
{ Returns 1 if the number is prime, else 0... |
unit uConfigBaseReg;
interface
{$TYPEINFO ON}
uses
Winapi.Windows, Registry;
type
IRegConfigurableSection = interface
['{41935A6A-6FFE-45D8-A3D6-FF74BD3E0655}']
{$REGION 'Private Getters and Setters'}
function GetSection: string;
function GetRootKey: HKEY;
function GetRootPath: string;
pro... |
(*
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... |
uses usstr_kv, ucst_ga;
const
outputStr: string = '';
var
opStack: TCStack;
function prior(c:char):byte;
begin
case c of
'(': prior := 1;
'+','-': prior := 2;
'*','/': prior := 3;
else prior := 0;
end;
end;
procedure mov2outputStr(c:char);
begin
outputStr := outputS... |
program CONEXUSCFGSVR;
{$mode objfpc}{$H+}
{$MACRO on}
{____________________________________________________________
| _______________________________________________________ |
| | | |
| | Config server for CONEXUS script | |
| | (c) 2018 Al... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
unit smsmanager;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, AndroidWidget;
type
{Draft Component code by "Lazarus Android Module Wizard" [10/13/2018 21:55:45]}
{https://github.com/jmpessoa/lazandroidmodulewizard}
{jControl template}
jSMSManager = class(jControl)
private
FHeaderBodyDelimiter... |
{**********************************************************************}
{ }
{ "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 comp... |
unit dhtPersist;
{
Initialize DHT local node ID from file.
Restore DHT routing table from file.
Save DHT routing table on exit and periodically.
}
INTERFACE
IMPLEMENTATION
uses NetAddr,ServerLoop,DHT,SysUtils,Store1,ECC;
const ndfn='nodes.dat';
const idfn='idhash.txt';
procedure Save;
var nd: FILE of tPeerPu... |
unit fmExportPatterns;
interface
uses
fmFormPatterns,
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, DB,
Dialogs, uniGUITypes, uniGUIAbstractClasses, uniProgressBar, ZDataset, QExport4,
uniGUIClasses, uniGUIForm, QExport4XLS, ZAbstractRODataset, ZAbstractDataset,
QExport... |
unit oScrbBars; { serializzazione dei movimenti su database
}
interface
type
TScrbBar = class
// CRUD ~ SCRIBA, senza delete
_ID,
_BAR_ID,
_JOB_ID,
_RECIPE_ID,
_POSITION_ID,
_RECIPE_SECS,
_TANK_SECS,
_FLAGS: integer;
_DROP_TIME,
_PICKUP_TIME: TDateTime;
class function ... |
unit USearchFile;
interface
uses
SysUtils{TSearchRec},Forms{application};
type
{TFindCallBack为回调函数,FindFile函数找到一个匹配的文件之后就会调用这个函数.
filename:找到的文件名(包括路径),你在回调函数中可以根据文件名进行操作.
info:找到的文件的记录信息,是一个TSearchRec结构.
bQuit:决定是否终止文件的查找}
TFindCallBack=procedure(const filename:string;const info:TSearchRec;... |
unit customcamera;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, AndroidWidget, systryparent;
type
TCustomCameraSurfaceCreated = Procedure(Sender: TObject) of object;
TCustomCameraSurfaceChanged = Procedure(Sender: TObject; width: integer; height: integer) of object;
TCustomCameraPictureTaken = Proc... |
namespace ConsoleClient;
interface
uses
System.Net.Http,
System.Threading,
IdentityModel.Client,
System.Linq;
type
Program = class
private
class method GetClientToken:TokenResponse;
class method CallApi(response:TokenResponse);
class method GetUserToken():TokenResponse;
public
class ... |
//----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4 (Public License)
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Anti-Grain Geometry - Version 2.4 Release Milano 3 (AggPas 2.4 RM3)
// Pascal Port By: Milan Marusinec al... |
UNIT Input;
(*< Defines classes to manage user input. *)
(*
Copyright (c) 2019 Guillermo Martínez J.
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone ... |
//Only compile for the OS X platform.
{$IF ( (NOT Defined(MACOS)) OR (Defined(IOS)) )}
{$MESSAGE Fatal 'AT.MacOS.Ini.Prefs.pas only compiles for the OS X platform.'}
{$ENDIF}
// ******************************************************************
//
// Program Name : Angelic Tech Mac OS X Library
// Program Version:... |
unit NodeTreeUnit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FGL, typinfo,
MUIClass.Group;
const
ProjectExtension = '.miprj';
type
// If an Eventhandler is specified we save the contents
// because we cant connect it to the object itself like other properties
TEventHandler = class
Name... |
unit editProductPrice;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, StdCtrls, DB, pngimage, ExtCtrls;
type
TfrmEditProductPrice = class(TForm)
DataSource1: TDataSource;
Label1: TLabel;
Label2: TLabel;
Button1: TButton;
... |
function IsSchrikkeljaar(jaar: integer): boolean;
begin
IsSchrikkeljaar := (jaar MOD 4) = 0;
IsSchrikkeljaar := IsSchrikkeljaar AND ( (jaar MOD 100) <> 0 );
IsSchrikkeljaar := IsSchrikkeljaar OR ( (jaar MOD 400) = 0 );
end;
|
unit RepositorioAuditoria;
interface
uses
DB,
Repositorio;
type
TRepositorioAuditoria = class(TRepositorio)
protected
function Get (Dataset :TDataSet) :TObject; overload; override;
function GetNomeDaTabela :String; override;
function GetIdentificador(Ob... |
unit ufrmExportFileSettings;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TfrmExportFileSettings = class(TForm)
btnOk: TButton;
lblLine: TLabel;
edtExportCodeNameValueCount: T... |
// Window List Component 1.5 by Jerry Ryle
//
// Aaugh! I accidentally uploaded the wrong source
// which had a nasty bug in the refresh procedure!
// Thanks to Serge, who found my mistake and suggested
// a few other improvements!
//
// This component will enumerate windows and return
// information abou... |
unit uAbastecimentoDao;
interface
uses uDM, ClasseAbastecimento, FireDac.Stan.Param;
type
TAbastecimentoDao = class
private
public
function gravar(objAbastecimento: TAbastecimento): boolean;
end;
implementation
function TAbastecimentoDao.gravar(objAbastecimento: TAbastecimento): boolean;
... |
unit UtilColors;
interface
uses Graphics;
type
TRGB = record
B: byte;
G: byte;
R: byte;
end;
THLS = record
H: byte;
L: byte;
S: byte;
end;
function RGBToHLS(PRGB: TRGB): THLS;
function HLSToRGB(PHLS: THLS): TRGB;
function RGBToColor(PR, PG, PB: Integer): TColor; overload;
fu... |
unit NvTestCase;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, NvmlApi, fpcunit, testutils, testregistry;
type
{ TNvTestCase }
TNvTestCase = class(TTestCase)
private
function CheckNotSupported(Exception: String): Boolean;
protected
procedure SetUp; override;
procedure TearDown; overr... |
unit RstrFld;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Graphics, Forms, ExtCtrls;
type
{ TRasterFeld }
TRasterFeld = class
private
{ private delcarations }
fRasterGroesse, fFeldBreite, fFeldHoehe: integer;
fMinX, fMinY, fMaxX, fMaxY: integer;
fCanvas: TCanvas;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.