June 2002
Intermediate to advanced
816 pages
28h 12m
English
Keys
KeysCollection = Application.Keys
Returns a NameObjectCollectionBase.KeysCollection containing the string keys associated with all values stored in the Application collection.
KeysCollection
A variable of type NameObjectCollectionBase.KeysCollection that will receive the Keys property value.
The example loops through the collection of keys in the Application collection, and then displays the key name and the value associated with it by using the Text property of the Message control:
Sub Page_Load( )
Dim Key As String
Message.Text = "Application Keys:"
For Each Key in Application.Keys
Message.Text &= "<br/>Key: " & Key
Message.Text &= "<br/>Value: " & Application(Key)
Next
End SubThe Keys property provides one of many ways to iterate over the contents of the Application collection.
Read now
Unlock full access