Vous êtes sur la page 1sur 7

http://www.alshater.

net

22
:
1 :

...


Fax Mobil WPhon HPhon LName FName Num

)A(15

)A(15

)A(15

)A(15

Email

Web

)A(40) A(40) A(15) A(15

ss City Country


)A(15

)A(15

Num .

.

:
1 MyPhon C Data

Data ) Data
. Paradox
2 Alias Myphon C:\MyPhon\Data BDE
Administrator . Database Desktop

3 Database Desktop Paradox

:
Secondary Indexes Table properties Define
Fname Lname Ok
. FNameIndex

Define Lname FName ....


. LNameIndex
4 Phonebook Alias MyPhon
. C:\MyPhon\Data
:
2 :



)
140

http://www.alshater.net

)
(

:

: )
( .

: .
: Memo
Memo

Alpha

.
.
:
:

141

http://www.alshater.net

1 :

BiDiMode
Caption
Hieght
Width
Position

bdRightToLeft

470
750
poScreenCenter

2 TabControl Win32 :
alTop
Align
True
MultiLine
tsButtons
Style
Tabs

True
HotTrack
3 Panel Standard :
alClient
Align
bvLowered
Bevelinner
bvRaised
BevelOuter
Caption
''
4 : Table
MyPhone
DatabaseName
Phonebook
TableName
FnameIndex
IndexName
True
Active
Num
DisplayLabel .
5 : DataSource : Tabcontrol
Table1
Dataset
6 : DbGrid
alClient
Align
DataSource1
DataSource
Titel +
Aligment taCenter
7 : GroupBox : Panel
Caption

142

http://www.alshater.net

8 : RadioButton1 GroupBox1
Caption

True
Checked
RBTName
Name
9 : RadioButton2 GroupBox1
Caption

RBTLname
Name
10 : Edit1 : GroupBox1
Text
"
11 : Button GroupBox1
Caption

BtnSearch
Name
:


: RBTName
;'table1.IndexName := 'FnameIndex
;' ' =btnSearch.Caption :

: RBTLname
;'table1.IndexName := 'LnameIndex
;' ' =btnSearch.Caption :
Tabcontrol

OnCahnge Tabcontrol1
:
if RBTName.Checked then
table1.Filter := 'fname = ' + quotedstr( tabcontrol1.Tabs[tabcontrol1.tabindex]+ '*') else
)'*' table1.Filter := 'Lname = ' + quotedstr( tabcontrol1.Tabs[tabcontrol1.tabindex]+
...
:

143

http://www.alshater.net

Edit1 ) (

Filter : BtnSearch
;table1.Filtered := false
;)]table1.FindNearest([edit1.text
.............
:


HPhon WPhon
Mobil
:

1 : GroupBox : Panel
Caption

2 Edit2
Text

"

3 : Button
Caption

BtnPhSearch
Name
:

;Table1.Filtered := false
if not Table1.Locate('HPhon',edit2.text,[]) then
if not Table1.Locate('WPhon',edit2.text,[]) then
if not Table1.Locate('Mobil',edit2.text,[]) then
; ) ' ' (showmessage

....

: C:\MyPhon Main.pas
. MyPhone

: GroupBox : Panel
Caption

144

http://www.alshater.net

Button Caption
: Data control

DBGrid Memo
) DBGrid DBGrid ReadOnly ( .
:
bdRightToLeft
BiDiMode
Caption

poScreenCenter
Position
DataEnter
Name
Main Uses Table1
:
. DataEnterU
DBEdit Label DBNavigator

) ( Label
DataSource . Form1.DataSource1

DBEdit DataField Label .


:
; DataEnter.ShowModal
DBGrid
OnDbClick DBGrid1
; DataEnter.ShowModal

145

http://www.alshater.net

:
QReport
:
: 7

QReport
Rave
QReport 7 :
Commponnant install package add
dclqrt60.bpl Bin . Delphi7
:

Main Uses
Table1 . Printform Name
QuickRep Qreport :

True HasColumnHeader : Band HasDetail


HasPageHeader . HasPagefooter
Dataset . Form1.DataSource1
QRlabel Page Header " Caption "

Column Header QRlabel :

Detail QRDbText Dataset

Page Footer QRSysData data ... Page Number


. PrintUnit
QUickRep1 Preview .
:
Printform.QuickRep1.Preview

146

Vous aimerez peut-être aussi