Contents Index Topic Contents | ||
Previous Topic: Item Property Next Topic: ValidItems Property |
ItemValid Property
Determines if a specific ItemName is valid in the object.
Syntax
value=object.ItemValid(ItemName)
Parameters
value Required. A Boolean variable that determines if an ItemName is valid. object Required. An object expression that evaluates to a ChatItems object. ItemName Required. A string expression. Remarks
Access is read-only.
Examples
The OnServerProperty event has a ServerItems parameter that is a ChatItems object. This event occurs in the following example:
MsChatPr1.QueryServerProperty "Info"To extract the data attached to the "Info" ItemName, the following example is valid, given that the "Info" property is an array of strings.
If(ServerItems.ItemValid("Info")) Then Dim vInfo As Variant Dim strInfo As String Dim iIndex As Integer vInfo = ServerItems.Item("Info") strInfo = " " If(Not IsEmpty(vInfo)) Then For iIndex = LBound(vInfo) To UBound(vInfo) strInfo = strInfo + "<" + CStr(vInfo(iIndex)) + ">" Next iIndex End If End IfSee Also
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.