Contents Index Topic Contents | ||
Previous Topic: ConvertedString Property Next Topic: NewChatItems Property |
MaxStringLength Property
Returns the maximum length of some string properties.
Syntax
value=object.MaxStringLength(StringType)
Parameters
value Required. A long integer that receives the maximum length of some string properties. object Required. An object expression that evaluates to an MsChatPr control. StringType Required. A variable of enumStringType type. If the StringType parameter is set to stServerMessage, MaxStringLength returns the maximum length, in bytes, of any message sent to the server. For regular IRC servers, this value is 512 bytes. This variable is customizable on IRCX servers and could, for example, be 2048 bytes. The following list itemizes the other values defined by the servers. These values might change in future server versions.
MaxStringLength(stChannelAccount) = 31 MaxStringLength(stChannelClientData) = 255 MaxStringLength(stChannelHostKey) = 31 MaxStringLength(stChannelKeyword) = 31 MaxStringLength(stChannelLanguage) = 31 MaxStringLength(stChannelName) = 200 MaxStringLength(stChannelOnJoin) = 255 MaxStringLength(stChannelOnPart) = 255 MaxStringLength(stChannelOwnerKey) = 31 MaxStringLength(stChannelRating) = 255 MaxStringLength(stChannelSubject) = 31 MaxStringLength(stChannelTopic) = 160 Remarks
Access is read-only.
Example
Dim lMaxMessageLen As Long lMaxMessageLen = MsChatPr1.MaxStringLength(stServerMessage)
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.