xHarbour Reference Documentation > Preprocessor Reference xHarbour Developers Network  

#xcommand | #xtranslate

User defined command or translation rule for the preprocessor.

Syntax

#xcommand    <searchPattern>  =>  <resultPattern>
#xtranslate  <searchPattern>  =>  <resultPattern>

Arguments

<searchPattern>
This is the definition of a pattern to search for in the PRG source code. The => characters are part of the preprocessor directive and must be used as separator between <searchPattern> and <resultPattern>.
<resultPattern>
This is the definition of a pattern to replace <searchPattern> with in the PRG source code.

Description

The #xcommand and #xtranslate directives work exactly like #command and #translate with the exception, that they match all characters of keywords. #command and #translate match keywords only up to the first four characters.

Info

See also:#command | #translate, #xuncommand | #xuntranslate
Category: Preprocessor directives

Example

//   See the example for #command | #translate

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