使用基本的jdbc连接mysql,获取数据. 创建实体类user: package com.json; public class user { private int id; private String username; public int getId() { return id; } public void setId(int id) { this.id = id; } private String password; private score score; public user()
unit UColor; interface uses windows, sysutils, classes, graphics; function HexToInt(Hexa: String): LongWord; function ColorToString(color: TColor): String; function WebColorToDelphiTColor(webcolor: String): TColor; function HexToTColor(sHtmlColor: St
1.Bookmark var p:pointer; procedure TForm1.Button1Click(Sender: TObject);//加个标签 begin p:=cxGrid1DBTableView1.DataController.DataSet.GetBookmark; end; procedure TForm1.Button2Click(Sender: TObject);//行焦点定位到标签 begin cxGrid1DBTableView1.DataContr
procedure TForm1.Button2Click(Sender: TObject); var R: Variant; begin R := MemTableEh1.Lookup('Name',Edit1.Text,'Name'); if not VarIsNull(R) then ShowMessage(R); end;
uses EncdDecd; function FileToBase64(FileName: string): string; var MemoryStream: TMemoryStream;begin Result := ''; MemoryStream := TMemoryStream.Create; try MemoryStream.LoadFromFile(FileName); Result := EncodeBase64(MemoryStream.Memory, M