[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
uCharToVal( cSource, uType )-> <uValue>
------------------------------------------------------------------------------
PARAMETER:
<cSource> Is a string expression to be converted into another type
<uType> Is a C,D,L or N variable, whose type determines the kind of
conversion we want to do with <cSource>
RETURNS:
<uValue> is the corresponding value obtained from <cSource> and
<uType>
DESCRIPTION:
uCharToVal() converts a string into a Date, Logical or a numerical value.
EXAMPLE:
+--------------------------------------------------------------+
| /* Several conversions */ |
| uCharToVal( "2345", nVar )-> 2345 |
| uCharToVal( "2345", cVar )-> "2345" |
| uCharToVal( "01.01.95", dVar )-> 01/01/95 |
| uCharToVal( ".T.", lVar )-> .T. |
+--------------------------------------------------------------+
SOURCE:
SOURCE\FUNCTION\WQOUT.PRG
See Also:
cValToChar
uValBlank
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson