You are on page 1of 18

DEPARTMENT OF TECHNICAL EDUCATION

ANDHRAPRADESH
Name : P. Sri Vidya
Designation : Lecturer
Branch : DCCP
Institute : G.P.W.Bheemili
Semester : VI Semester
Subject : Visual Basic II
Subject code : CCP- 603
Topic : DYNAMIC DATA
EXCHANGE
Sub Topic : Properties of Dynamic
Data Exchange
Duration : 50 min
Teaching Aids : PPT
CCP603.52 to 54 1
Objectives
On completion of this period, you would be able to:
 Know about Properties of Dynamic Data Exchange

CCP603.52 to 54 2
RECAP

 Features of Dynamic Data Exchange

CCP603.52 to 54 3
Properties of Dynamic Data Exchange
 Link Topic
 Link item
 Link mode
 Link time out
The above properties are to be set
 in order to make a control of VB
 like a form, a text box, a label, a picture box
 as destination

CCP603.52 to 54 4
Link Topic property

 Specifies the topic that can respond to a DDE


conversation

 Use Link topic with the link item property to specify


the complete data link
 Syntax:
Object.Link topic [=value]
E.g.: Text1.text =“Excel|sheet1”

CCP603.52 to 54 5
Link Item property:

Specifies the data passed to a destination control


 in a DDE conversation
 with another application
 Syntax:
Object.Link item [=string]
Eg:
Text 1.Link item=“R1C1”.

Row1 Column1
CCP603.52 to 54 6
Link Mode Property:

 Specifies the type of link used for a DDE


conversation
 The following are the different link modes available
 0-None - Data exchange is not permitted
 1-Automatic - The destination control
automatically receives data

CCP603.52 to 54 7
 2-Manual- The destination control only receives data
when it asks for the data
 3-Notify- The destination control receives notification
that data has exchanged, then data must be
asked manually

 Syntax:
Object.Link mode [=number]

CCP603.52 to 54 8
Link time out property:
 Specifies the amount of time a control waits
 for a response in a DDE conversation
 before raising an error
 If there is no response, before link time out period,
 an error is raised
 Syntax:
Object.Link time out[number]
 By default, the link time out property is set to
50(equivalent to 5 seconds)

CCP603.52 to 54 9
How VB converses with other
applications?
VB converses with other applications through
 Control-
 Allows a destination control on a visual basic form to
 initiate a conversation
 as specified by the control’s
 Link Topic and Link item properties

CCP603.52 to 54 10
How other applications converse with VB?
Other applications converse with VB through
Form-
 Allows a destination application to initiate
 a conversation with Visual Basic source form,
 as specified by the destination application’s
 Link Topic and Link item properties

CCP603.52 to 54 11
Quiz

1. Which properties are to be used to


specify the complete data link?

a) Linkitem, Linkmode
b) Linktopic, Linkitem
c) Linktopic, Linkmode
d) Linkitem, Linktimeout

CCP603.52 to 54 12
2. Which property prevents VB from
getting hang-up waiting for a
response.
a) Link topic
b) Link Mode
c) Link item
d) Link time out

3. Which of the following apply only to


destination?
a) Link topic
b) Link item
c) Link timeout
d) Both b) and c)
CCP603.52 to 54 13
4. Which link mode allows the
destination control to receive data
automatically.

a) None
b) Automatic
c) Manual
d) none

CCP603.52 to 54 14
Frequently asked questions.
1. List the properties of Dynamic Data Exchange
2. Explain properties of DDE

CCP603.52 to 54 15
Summary

 VB permits the controls to exchange data


dynamically by setting the following properties
 Link topic property- Topic that responds
 Link item property- data to be exchanged
 Link mode property- the mode of data exchange
 Link time out property- the time to wait for
response.

CCP603.52 to 54 16
ASSIGNMENT
1. Prepare two VB small applications and test
DDE.

CCP603.52 to 54 17
THANK YOU

CCP603.52 to 54 18

You might also like