Facebook

Course Name Start Date Time Duration Registration Link
No Training Programs Scheduled ClickHere to Contact
Please mail To sudhakar@qtpsudhakar.com to Register for any training

Thursday, September 2, 2010

Properties Collection Object - How to use other description property in current description object?

'###############################################
' Properties Collection Object
'###############################################

'Introduction:-
'This object is an extension of Description object. Using this we can do some with description object.
' This is used to add, remove properties for a description object.We can also count how many properties used for a description.

' The unique feature of this object is we can add a property which is used by other description object

'Ex:

'Create a Description for Link1
Set LnkDesc1=Description.Create
LnkDesc1("micclass").value="Link"
LnkDesc1("name").value="Gmail"

'Create a Description for Link2
Set LnkDesc2=Description.Create
LnkDesc2("name").value="Gmail"

LnkDesc2.Add LnkDesc1(0)

'In the above example Iam creating the description for link objects
'All link objects will have the same class value
' To remove the redundancy I have used the same property value in other link collection by specifying Property Index of a collection
' The property Index Start from '0'

No comments :

Post a Comment