VarUtils.VarI4FromStr

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From VarUtils.pas

	VarI4FromStr: function(strIn: WideString; LCID: Integer; dwFlags: Integer; lOut: Integer): HRESULT;


Unit: VarUtils

Type: variable

C++ Information

From VarUtils.hpp

	long (__stdcall *)(const System::WideString,int,int,int &) VarI4FromStr;


Unit: VarUtils

Type: variable

Description

VarI4FromStr is used to specify the function that makes the conversion from a WideString to a four bytes integer value.


Use VarI4FromStr to specify the function that makes the conversion from the WideString given through strIn to the four bytes integer value stored in lOut. The LCID parameter is a locale identifier and dwFlags specifies the flags used in the conversion.

The function stored in VarI4FromStr returns the result of the conversion operation, which can be one of the following.



Value Meaning

VAR_OK

The conversion was successful.

VAR_BADVARTYPE

The variant type of the input parameter is not valid.

VAR_OVERFLOW

The data stored in the output parameter does not fit in the destination type.

VAR_TYPEMISMATCH

The argument cannot be cast to the specified type.

VAR_INVALIDARG

Either one of the arguments is invalid.

VAR_OUTOFMEMORY

There is not enough memory to complete the conversion.



See Also

Personal tools
Translations
Newest Version