Previous Topic

Next Topic

Book Contents

Book Index

Value - Method

method Value(Index: Number): String

Available for StringList Objects. Returns the Value for the index number in the list as a string.

Value method syntax has these named arguments:

Parameter

Description

Index

Required. The index number to return the Value for.

For example:

Dim StringList as Object

StringList = CreateObject("Accredo.StringList")

StringList.AddPair("A", "Alpha")

StringList.AddPair("B", "Beta")

StringList.AddPair("G", "Gamma")

StringList.AddPair("Z", "Zeta")

Print StringList(0)

will return "lphaA", as this is the value for the indexnumber in the list.