xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

StringToLiteral()

Creates a literal character string from a string.

Syntax

StringToLiteral( <cString> ) --> cLiteralString

Arguments

<cString>
This is a character string to create a literal string from.

Return

The function converts <cString> to a literal string and returns the result.

Description

Literal character strings are strings that can be processed by the macro compiler and produce the original string. The function StringToLiteral() searches <cString> for quotes and non-printable characters, and replaces them with adequate characters which produce the original when processed by the macro compiler.

Info

See also:&, CStr(), HB_Serialize(), 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