Get() > Instance variables xHarbour Developers Network  

oGet:subscript

Array element subscript when array is edited.

Info

Data type:ADefault:NIL

Description

When the data code block references a variable holding an array, the instance variable :subscript must be assigned an array whose element(s) contain the numeric subscript(s) pointing to the array element that is to be edited by the Get object. For example:

   LOCAL aArray := { "One", "Two" }
   LOCAL bData  := {|| aArray }
   LOCAL oGet   := Get():new( ,, bData )

   oGet:subscript := {2}

   ? oGet:varGet()     // result: Two

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