Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

delphiѧϰ

 1.[Error] DCansactionIformationManagement.pas(171): String literals may have at most 255 elements
[Fatal Error] DCMain.pas(32): Could not compile used unit 'DCansactionIformationManagement.pas'
±¨´í£º‘²»Õý³£¶¨ÒåÁ˲ÎÊý¡£ÌṩÁ˲»Ò»Ö»ò²»ÍêÕûÐÅÏ¢’
½â¾ö·½·¨£ºÓï·¨
Êý¾Ý¶¨ÒåÒªÒ»ÖÂ
2.Edit19.Text:= FieldbyName('SQTcost') ¶ÁÈ¡Êý¾Ý
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ComCtrls, TeeProcs, TeEngine, Chart, DbChart,
  ExtCtrls, Series
3.maskedit1.text:=datetostr(Date()); »ñÈ¡µ±Ç°ÈÕÆÚ
¼ÓÒ»¸ötimer¿Ø¼þ£¬systemÀïÃæÓУ¬ÊÇÒ»¿é±íµÄÑù×Ó£¬ºÇºÇ¡£
Ë«»÷½øÈëontimerʼþ£¬È»ºóдÏÂÄãµÄ´úÂ룺
Statusbar1.Panels[0].Text:='ϵͳÈÕÆÚ£º'+datetostr(Now)£»
Statusbar1.Panels[1].Text:='ϵͳʱ¼ä£º'+timetostr(Now)£»
OPENÖ»ÓÃÀ´SELECT
EXECSQL ÓÃËùÓеÄ
prepared¸æËß·þÎñÆ÷×¼±¸Òª¸É»îÁË
Óзµ»ØÒ»Ð©¼Ç¼µÄÓÃOPEN
²»ÐèÒª·µ»Ø¼Ç¼µÄÓÃEXECSQL
¾ÍÊÇ˵һ°ãÓÃselect ÒªÓÃOPEN
¶øÏñinsert .dropµÈÖ»ÒªÓÃExecSql
4.GetCursorValues(tmpX,tmpY);  { <-- get values under mouse cursor }
      Label1.Caption:=GetVertAxis.LabelValue(tmpY)+
                      ' '+
                      GetHorizAxis.LabelValue(tmpX);»ñÈ¡×ø±êÖµ
5.¹ö¶¯ ´úÂë  procedure TDemoForm.SpeedButton1Click(Sender: TObject);
begin
  HorizScroll(10);
end;
procedure TDemoForm.SpeedButton4Click(Sender: TObject);
begin
  HorizScroll(-10);
end;
procedure TDemoForm.SpeedButton2Click(Sender: TObject);
begin
  VertScroll(-10);
end;
procedure TDemoForm.SpeedButton3Click(Sender: TObject);
begin
  VertScroll(10);
end;
6.Çå³ýϵÁУºif dbchart1.SeriesCount>=0 then
  begin
  for i:=0 to dbchart1.SeriesCount-1 do
    begin
    &nbs


Ïà¹ØÎĵµ£º

Ò»¸ödelphi³ÌÐòÔ±µÄ¿ª·¢Ï°¹ß

                                                   ......

delphi stringÀàÐÍתintegerʱ³ö´íµÄ¼ì²â

procedure TForm1.Button1Click(Sender: TObject);
Var
  Num: Integer;
Begin
  Try
    Num:=StrToInt(Edit1.Text);
    Edit2.Text:=IntToStr(Num*Num);
  Except
    On EConvertError Do   ShowMessage(Edit1.Text+'ÎÞ·¨×ª³ÉÕûÊý!'); ......

֪ʶС½á(Delphi)

1) Error loading midas.dll     ûÓÐ×¢²ámidas.dll ÔËÐÐRegSver32.exe midas.dll
2)Result := GetProcAddress(FGDIPlusLibrary, PChar(ProcName));±àÒë ³öÏÖÕâÑùµÄÎÊÌ⣬Ӧ¸ÃÊÇÉèÖ÷½ÃæµÄÎÊÌ⣬Project->Options->Complier->Hugestrings ¹³ÉϾÍokÁË£¡
3) TCheckListBoxÓиöitemEnable ......

ÓÃdelphi°ÉÒ»¸öwordÎĵµ×·¼Óµ½ÁíÍâÒ»¸öwordÎĵµÖÐ

uses ComObj;
var WordApp: Variant;
begin
WordApp := CreateOleObject('Word.Application');
WordApp.Documents.open('c:\1.doc');
WordApp.Selection.InsertFile('c:\2.doc','',False,false,false);
WordApp.Selection.InsertFile('c:\3.doc','',False,false,false);
WordApp.ActiveDocument.SaveAs('C:\4.doc' ......

×ܽáÒ»ÏÂdelphiÖÐSQLÓï¾äÖÐÒýºÅ

×ܽáÒ»ÏÂSQLÓï¾äÖÐÒýºÅ(')¡¢quotedstr()¡¢('')¡¢format()ÔÚSQLÓï¾äÖеÄÓ÷¨ÒÔ¼°SQLÓï¾äÖÐÈÕÆÚ¸ñʽµÄ±íʾ(#)¡¢('')
ÔÚDelphiÖнøÐÐ×Ö·û±äÁ¿Á¬½ÓÏà¼Óʱµ¥ÒýºÅÓÃ('''),ÓÖÒýºÅÓÃ('''')±íʾ
Ê×Ïȶ¨Òå±äÁ¿
var
AnInt:integer=123;//ΪÁË·½±ãÔڴ˶¼¸øËüÃǸ³³õÖµ¡£ËäÈ»¿ÉÄÜÔÚÒý¸³³õÖµÔÚijЩÇé¿öϲ»¶Ô
AnIntStr:string='456'; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ