Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b>setarray</b> automatically set an array to be browsed http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SetArray        Automatically set an array to be browsed
--------------------------------------------------------------------------------

   TWBrowse::SetArray( <aArray> )


 <aArray>          An array to be browsed.

  If you want to browse a multidimensional array you could use this METHOD
  to set the GoTop, Skip and GoBottom codeblocks properly and later change
  the :bLine of the browse to display some specific values.

  i.e.:

  local aArray := { { 1, 2, 3 }, { 4, 5, 6 },  ... }

  oBrw:SetArray( aArray )

  oBrw:bLine = { || aArray[ oBrw:nAt ][ 2 ] }

  You will see:        2
                       5
                       .
                       .

  Important: This METHOD sets the DATA :cAlias of the browse to "ARRAY"
  to internally know that it is browsing an array.


Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson