StringResourceEncoder: Encode

Encode

Encodes a string into a string table.



 Public Function Encode(
	  ByRef Value As Variant,
	  ByRef ResourceName As Variant,
	  Optional ByRef ResourceType As Variant,
	  Optional ByRef LanguageID As Variant ) As Boolean

Parameters

Value
[ByRef] Variant. The string to be encoded.
ResourceName
[ByRef] Variant. The name of the string. This must be a numeric value.
ResourceType
[ByRef] Optional. Variant. The type of resource to be encoded.
LanguageID
[ByRef] Optional. Variant. The Locale ID this resource is associated with.

Return Values

Boolean -  Returns True if the encoder was able to encode the value, False otherwise.

Remarks

Any value can be passed in. No exception is thrown. If the value is not a string then the function returns False.

The ResourceName should be a numeric value.

The LanguageID can be a CultureInfo object, a culture name, or an LCID. If the LanguageID is not supplied, then the current culture is used.

See Also

Project CorLib Overview

Class StringResourceEncoder Overview