xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Default()

Assigns a default value to a variable.

Syntax

Default( @<varName>, <xDefaultValue> ) --> NIL

Arguments

@<varName>
This is the symbolic names of the variable to assign a default value to. The variable must be passed by reference.
<xDefaultValue>
This value is assigned to <varName> when the variable has the value NIL. i.e. when it is not initialized.

Return

The function returns always NIL.

Info

See also:DEFAULT TO
Category: CT:Miscellaneous , Miscellaneous functions , xHarbour extensions
Source:ct\util.prg
LIB:xhb.lib
DLL:xhbdll.dll


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