How do I display a two-dimensional array in the table style on the screen?

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

How do I display a two-dimensional array in the table style on the screen?

#1 Post by Eugene Lutsenko »

How do I display a two-dimensional array in the table style on the screen?

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How do I display a two-dimensional array in the table style on the screen?

#2 Post by rdonnay »

Code: Select all

#INCLUDE "dcdialog.ch"

FUNCTION Main()

LOCAL GetList[0], oBrowse, aDir := Directory()

@ 0,0 DCBROWSE oBrowse DATA aDir SIZE 65,20 ;
      FONT '10.Lucida Console'

DCBROWSECOL ELEMENT 1 HEADER 'File Name' WIDTH 20 PARENT oBrowse

DCBROWSECOL ELEMENT 2 HEADER 'File Size' WIDTH 10 PARENT oBrowse

DCBROWSECOL ELEMENT 3 HEADER 'File Date' WIDTH 10 PARENT oBrowse

DCBROWSECOL ELEMENT 4 HEADER 'File Time' WIDTH 10 PARENT oBrowse

DCREAD GUI FIT TITLE 'Browsing a 2-Dimensional Array'

RETURN nil

* -----------

PROC appsys ; RETURN
The eXpress train is coming - and it has more cars.


Post Reply