xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

CStrToVal()

Converts a character string to a value of specific data type.

Syntax

CStrToVal( <cString>, <cValtype> ) --> xValue

Arguments

<cString>
This is a character string to be converted to a value of a different data type.
<cValtype>
This is a single letter indicating the data type of the return value. The letters C, D, L, M, N, P and U are supported. Refer to function Valtype() for data type encoding.

Return

The function returns the converted value. If <cValtype> is not supported by CStrToVal(), a runtime error is raised.

Info

See also:CStr(), StoD(), Val(), Valtype(), ValToPrg(), ValToPrgExp()
Category: Conversion functions , xHarbour extensions
Source:rtl\cstr.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe