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>bline</b> retrieves an array of expressions for each column. http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 bLine           Retrieves an array of expressions for each column.
--------------------------------------------------------------------------------

 FiveWin actual browse differs from the MsDos version that it does not
 manage column objects (we will soon have a powerful column based one!).

 The bLine DATA is a codeblock that will return an Array. We use that
 array to paint each row of the browse. We adopted this system to obtain
 the highest execution speed, though lately we have been able to get the
 same speed working on column based one (the one we are developing now).

 When you specify the clause:

       REDEFINE LISTBOX ... ;
          FIELDS <Expression1, Expression2, ..., ExpressionN> ;
          ...

 We are building automatically through the pre-processor the following
 codeblock:

 <oBrw>:bLine = { || { <Expression1>, <Expression2>, ..., <ExpressionN> } }

 As you see, we generate a CodeBlock that returns an array that holds
 that list of expressions.

 If you don't supply those expressions, FiveWin will automatically generate
 a :bLine based on the fields of the selected workarea. See WBROWSE.prg
 function _aFields().

 You may freely modify the :bLine codeblock even during the execution of
 a browse!

 i.e.: If you want to exchange two columns of the browse, you just
 need to change the :bLine to return a different array:

 <oBrw>:bLine = { || { <Expression2>, <Expression1>, ..., <ExpressionN> } }

 We plan to offer backwards compatibility with this current browse, though
 shortly we will implement a column based one.


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