Method of calling Delphi stored procedure

Online on this issue a lot of posts, but often not very comprehensive, the author also encountered a lot of practical problems in the use, such as the parameters do not exist Ah, type no reference ah, and so on. Below I try to carefully to achieve

Thinking about the button's OnClick in Delphi

Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Stdctrls, Extctrls;TypeTForm1 = Class (tform)Panel1:tpanel;Button1:tbutton;Procedure Button1Click (Sender:tobject);Procedure Panel1click

Now, Date, time, CurrentYear

SysUtils.Now; SysUtils.Date; SysUtils.Time; SysUtils.CurrentYear; unit Unit1; interface uses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs; type  TForm1 = class(TForm)   procedure FormCreate(Sender: TObject)

Monthoftheyear, Weekoftheyear, Weekofthemonth, dayOfTheYear ... Relative time

Sysutils.dayofweek ();Dateutils.monthoftheyear ();Dateutils.weekoftheyear ();Dateutils.weekofthemonth ();Dateutils.nthdayofweek ();Dateutils.dayoftheyear ();Dateutils.dayofthemonth ();Dateutils.dayoftheweek ();DateUtils.SysUtils.DayOfWeek

Yearsbetween, Monthsbetween ... Yearspan, Monthspan ... Time interval

DateUtils.YearsBetween(); DateUtils.MonthsBetween(); DateUtils.WeeksBetween(); DateUtils.DaysBetween(); DateUtils.HoursBetween(); DateUtils.MinutesBetween(); DateUtils.SecondsBetween(); DateUtils.MilliSecondsBetween(); DateUtils.YearSpan();

Message response of ListView column width Change in delphi

Unit Unit1; Interface uses Windows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms, Dialogs, Stdctrls, comctr    Ls,commctrl;   Type phd_notify=^hd_notify;    TForm1 = Class (Tform)

Delphi's Drawing function [12]

Wonderful XOR or operation, on these simple code, repeatedly click on the button ...procedure TForm1.Button1Click(Sender: TObject); begin  Canvas.Pen.Color := clYellow; {指定笔颜色为黄色}  Canvas.Pen.Width := 20;    {笔宽 20}  Canvas.Pen.Mode := pmXor;  

Delphi's Drawing function [9]

Statement of the first Overload:Textrect ( Rect:trect; Rectangle X, Y:integer; {Relative to the position of the form} Const text:string {text});{If the text you want to output exceeds the specified rectangle, it will not be displayed}

Delphi's Drawing function [6]

unit Unit1; interface uses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs, StdCtrls; type  TForm1 = class(TForm)   Button1: TButton;   Button2: TButton;   procedure FormCreate(Sender: TObject);   procedure

Delphi's Drawing function [5]

Add Panel1, PaintBox1, and Button1 to the form, as follows: procedure TForm1.Button1Click(Sender: TObject); var  cvs: TCanvas; begin  {PaintBox1 就像窗体一样, 也有 Canvas 属性}  PaintBox1.Canvas.Brush.Color := clRed;

Delphi's Drawing function [4]

unit Unit1; interface uses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs, StdCtrls; type  TForm1 = class(TForm)   Button1: TButton;   Button2: TButton;   Button3: TButton;   Button4: TButton;   Button5: TButton;

Delphi's Drawing function [2]

Drawings need to have paper, brush, brush; Delphi has Canvas, Pen, Brush. Canvas is the canvas, such as the Canvas property of the form, the canvas of the form; Pen is a brush, you can set pen color, pen width, and so on; Brush is a brush, you

Delphi Language Learning 9-static and dynamic loading of functions

1. Static loading Procedure dosomething; External ' mylib. DLL '; 2. Dynamic loading Uses Windows,;Type Ttimerec = Record Second:integer; Minute:integer; Hour:integer; End Tgettime = procedure (var time:ttimerec); Thandle = Integer;

Delphi Language Learning 8-Class members (fields and methods)

1.Class Fields Example 1 member variableType Tancestor = Class Value:integer; End Tdescendant = Class (Tancestor) value:string; Hides the Inherited Value field EndVar Myobject:tancestor;Begin MyObject: = tdescendant.create;

The entry example of Delphi Class (7): Traversing all the parent classes of the form

Unit Unit1; interface uses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs, StdCtrls; type  TForm1 = class(TForm)   Button1: TButton;   Button2: TButton;   Button3: TButton;   Button4: TButton;   procedure

Example of the introduction of Delphi Class (6): Class Reference example

Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Stdctrls, Extctrls;TypeTForm1 = Class (Tform)Radiogroup1:tradiogroup;Procedure Formmousedown (Sender:tobject;

The entry example of Delphi Class (4): Property

Class Unit unit Person; interface type  TPerson = class(TObject)  private   FName: string;   FAge: Integer;  public   procedure SetName(const strName: string);   procedure SetAge(const intAge: Integer);   property Name: string read FName write

The entry example of Delphi Class (2): Digital box

Class Unit unit NumBox; interface type  TNumBox = class  private   FCount: Integer;  public   procedure AddOne;   procedure AddFive;   procedure ZeroCount;   function GetCount: Integer;  end; implementation { TNumBox } procedure TNumBox.AddOne;

Several methods of realizing file downloading with Delphi

zip

The author recently developed the system needs to write a download file function. Previously used BCB invoke API written very cumbersome, suddenly remembered that there is an API can be done, so early in the morning to search. This API is

Do not use any Third-party controls in DELPHI7 to implement the XP style that you can drag on the toolbar

A little bit of free time today, by the way, it's not something esoteric, but practical, it might be useful for friends who don't want third-party controls but want to add some effect. The effect of the implementation is as shown in figure: Step

Total Pages: 64722 1 .... 44464 44465 44466 44467 44468 .... 64722 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.