Поделиться через


LookupTable.Value

LookupTable.Value

The Value property indicates, with a single string, the entire key-value record at the given index within the file.

Syntax

Property LookupTable.Value(index) As Variant

Parameters

  • i
    The index of the record to retrieve within the file.

Return values

The Value property holds a variant representing the key-value string at the supplied index within the file.

Example

The following snippet illustrates a few of the methods and properties of the LookupTable object.

    ...
Set oLookupTablectry = Server.CreateObject("Passport.Lookuptable")

strPath = "\path\to\datafile\"
oLookupTablectry.LoadValues strPath & "Country.dat",2

Response.Write ("")
For counter = 0 to oLookupTablectry.Count -1
    entries = Split(oLookupTablectry.Value(counter), ",")
    Response.Write("<Option value'" & entries(3) & "'>" & entries(0))
Next
Response.Write ("")
    ...

Remarks

The Value property is read-only.

See Also

Passport LookupTable Object | GeoID Dictionaries | LookupTable.Count | LookupTable.Key | LookupTable.KeyExists | LookupTable.LoadValues | LookupTable.LookupValue