ResCursorEncoder: Encode

Encode

Encodes the StdPicture cursor.



 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 StdPicture to be encoded.
ResourceName
[ByRef] Variant. The identifier for the resource value. This can be a String or Number.
ResourceType
[ByRef] Optional. Variant. Identifies the type of resource this is. If this is not supplied, then the type is derived from the value.
LanguageID
[ByRef] Optional. Variant. The LocaleID the value 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 bitmap then the function returns False.

The ResourceName can be a String or 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 ResCursorEncoder Overview