xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_SetIniComment()

Defines the delimiting characters for comments and inline comments.

Syntax

HB_SetIniComment( <cLineComment>, <cInlineComment> ) --> NIL

Arguments

<cLineComment>
This is a single character used to indicate comment lines. The default is ";".
<cInlineComment>
This is a single character used to indicate inline comments. The default is "#".

Return

The return value is always NIL.

Description

INI files may contain comment lines. They are recognized by a single character which can be changed with function HB_SetIniComment().

Info

See also:HB_ReadIni(), HB_WriteIni()
Category: File functions , xHarbour extensions
Source:rtl\hbini.prg
LIB:xhb.lib
DLL:xhbdll.dll

Example

// This example demonstrates the two possibilities for
// comments in an INI file.

   ; this is a line comment
   [sect1]
   key1 = value1 # this is an inline comment

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