| xHarbour Reference Documentation > Preprocessor Reference |
![]() |
![]() |
Voids a previously defined #xcommand or #xtranslate directive.
#xuncommand <searchPattern> #xuntranslate <searchPattern>
The directives #xuncommand and #xuntranslate remove a previously defined #xcommand or #xtranslate directive. The removed translation rule becomes unavailable and can be redefined.
#xuncommand/#xuntranslate match the entire translation rule previously defined with #xcommand or #xtranslate. The similar to #uncommand/#untranslate directives, in contrast, match only the first keyword in the corresponding #command or #translate directive.
| See also: | #command | #translate, #uncommand | #untranslate |
| Category: | Preprocessor directives , xHarbour extensions |
// The example demonstrates the effect of removing a translation rule.
#xcommand COMMAND <x> => A_Command( <x> )
#xcommand COMMAND <x> WITH <y> => B_Command( <x>, <y> )
PROCEDURE Main
** PPO file:
COMMAND x // A_Command(x )
COMMAND x WITH y // B_Command(x,y )
#xuncommand COMMAND <x>
COMMAND x // COMMAND x
COMMAND x WITH y // B_Command(x,y )
RETURN
http://www.xHarbour.com