TabSheet
Label
Label
Label
Label
Label
ListBox
ListBox
ListBox
Edit
ComboBox
BitBtn
TabSheet
Memo
procedure FormCreate(Sender: TObject)
procedure ListBox
procedure ListBox
procedure BitBtn
end;
var
QueryForm: TQueryForm;
implementation
{$R *
uses RSLTFORM;
procedure TQueryForm
begin
Screen
{ Populate the alias list }
with ListBox
begin
Items
Session
end;
{ Make sure there are aliases defined }
Screen
if ListBox
MessageDlg(
need at least one alias to use this demonstration
mtError
{ Default the drop
ComboBox
end;
procedure TQueryForm
var
strValue: string; { Holds the alias selected by the user }
bIsLocal: Boolean; { Indicates whether or not an alias is local }
slParams: TStringList; { Holds the parameters of the selected alias }
iCounter: Integer; { An integer counter variable for loops}
begin
{ Determine the alias name selected by the user }
with ListBox
strValue := Items
{ Get the names of the tables in the alias and put them in the
appropriate list box
in the list
ListBox
Session
CheckBox
CheckBox
ListBox
{ Make sure there are tables defined in the alias
error; otherwise
Screen
if ListBox
MessageDlg(
choose another
ListBox
end;
procedure TQueryForm
begin
Screen
try
{ First
if Table
Table
{ Open the selected table }
with ListBox
Table
with ListBox
Table
{ Open the table and put a list of the field names in the Fields
list box
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/25141.html