FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour hide xbrowse columns on init
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
hide xbrowse columns on init
Posted: Sat Feb 21, 2015 03:25 PM
Look the picture please :



for this timetable I use generally 10 Hours each day but the hour are set on a field of an archive sample :

m_maxore := iif(Left(DA->parame, 1) == "0", 10, Val(Left(DA->parame, 1))

for a sample on my school have only 6 hour for day
How I can make to hide the columns 7 ,8,9,10 for each days ?

I 'm using an array
aDataDay[ndocente][nOra]
aDataDay:=Array(ntotaleDocenti,61)
the ntotaleDocenti is the number of teacher
61 are the numbers of columns 1 for teacher and then 10 for each day

I need it because when I print the timetablw I need a big paper.. if I hive the empty columns I can have a good printed timetable

any solution please?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: hide xbrowse columns on init
Posted: Sat Feb 21, 2015 05:28 PM

Silvio,

Since the hours per day is known when building the array, perhaps it would be easier to adjust the array by leaving out the extra columns.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: hide xbrowse columns on init
Posted: Sun Feb 22, 2015 01:35 PM

oBrw:aCols[x]:Hide()

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion