xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_ArrayBlock()

Creates a set/get code block for an array.

Syntax

HB_ArrayBlock( <aArray>, <nIndex> ) --> bCodeblock

Arguments

<aArray>
This is a variable holding the array to create s set/get code block for.
<nElement>
This is a numeric expression indicating the ordinal position of the array element to access. It must be in the range between 1 and Len(<aArray>).

Return

The function returns a code block accessing the array element <nIndex> of <aArray>. The code block accepts one parameter used to assign a value to the array element.

Description

Function HB_ArrayBlock() creates a code block that accesses one element of an array. It is normally used when a one dimensional array ise edited with Get() objects. The code block can be assigned to Get():block for editing the values stored in the array elements.

Info

See also:Array(), Get()
Category: Array functions , xHarbour extensions
Source:rtl\arrayblk.prg
LIB:xhb.lib
DLL:xhbdll.dll


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