Get() > Instance variables |
Array element subscript when array is edited.
Data type: | A | Default: | NIL |
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
http://www.xHarbour.com