Harbour MiniGUI 2.9.5 (Forum Test I)

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

Post Reply
User avatar
Roberto Lopez
HMG Founder
Posts: 3986
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Harbour MiniGUI 2.9.5 (Forum Test I)

Post by Roberto Lopez »

Code: Select all

- Harbour MiniGUI 2.9.5 Changelog:


	English:
	--------

	- New: 'Filled' clause for PRINT RECTANGLE command. Contributed 
	by Rathinagiri.

	- New: 'DATA' section for reports. It allows to define an 'iterator' and
	'Stopper' conditions. 
	
		BEGIN DATA
			ITERATOR	<xExpression>
			STOPPER		<xExpression>
		END DATA

	This new feature is useful for use (ie) arrays instead tables for reports.

	Sample:

		Public i := 1
		Public aRows [ 20 ] [ 3 ]
		...
		DEFINE REPORT TEMPLATE
			BEGIN DATA
				ITERATOR	i++
				STOPPER		i == 20 
			END DATA
			...
			BEGIN DETAIL
				BANDHEIGHT	6
				BEGIN TEXT
					EXPRESSION	aRows [i] [1]
				...
			END DETAIL
		...			
		END REPORT		

	Full Sample: \hmg\samples\report.advanced\demo8.prg

	Español:
	--------

	- Nuevo: Cláusula 'Filled' para el comando PRINT RECTANGLE. Contribución
	de Rathinagiri.

	- Nuevo: Sección 'DATA' para el generador de reportes. Por medio de esta 
	sección puede definirse un 'Iterador'y un 'Stopper'.

		BEGIN DATA
			ITERATOR	<xExpression>
			STOPPER		<xExpression>
		END DATA

	Esta nueva característica es útil, por ejemplo, para usar arrays en lugar
	de tablas para los reportes.

	Ejemplo:

		Public i := 1
		Public aRows [ 20 ] [ 3 ]
		...
		DEFINE REPORT TEMPLATE
			BEGIN DATA
				ITERATOR	i++
				STOPPER		i == 20 
			END DATA
			...
			BEGIN DETAIL
				BANDHEIGHT	6
				BEGIN TEXT
					EXPRESSION	aRows [i] [1]
				...
			END DETAIL
		...			
		END REPORT		

	Ejemplo Completo: \hmg\samples\report.advanced\demo8.prg


Attachments
hmg295-test-1.rar
(379.53 KiB) Downloaded 265 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Rathinagiri
Posts: 5276
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 174 times
Been thanked: 190 times
Contact:

Post by Rathinagiri »

Oh! Thanks a lot Roberto!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
esgici
Posts: 4523
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 400 times
Been thanked: 112 times
Contact:

Post by esgici »

Thanks a lot Maestro :D

Best Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
luisvasquezcl
Posts: 1150
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 15 times
Been thanked: 15 times
Contact:

Post by luisvasquezcl »

Great Roberto,
excelent utility.
regards,
Luis Vasquez.

User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Been thanked: 1 time
Contact:

Post by Vanguarda »

Thank a lot Master.
Great work.
with best regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/

User avatar
mol
Posts: 3285
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 241 times
Been thanked: 146 times
Contact:

Post by mol »

Good work! Many thanks (especially for filled rectangle :lol:, because that was my problem - many thanks for Rathi for his solution!)

User avatar
gfilatov
Posts: 714
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 27 times
Been thanked: 313 times
Contact:

Post by gfilatov »

Roberto Lopez wrote:- Harbour MiniGUI 2.9.5 Changelog:
...
- New: 'DATA' section for reports. It allows to define an 'iterator' and
'Stopper' conditions.

BEGIN DATA
ITERATOR <xExpression>
STOPPER <xExpression>
END DATA

This new feature is useful for use (ie) arrays instead tables for reports.

Full Sample: \hmg\samples\report.advanced\demo8.prg
Hi Roberto,

There is a problem (empty preview) at the second running of the report sample.
Please be so kind to revise a small correction of the sample demo8.prg at the folder \hmg\samples\report.advanced :arrow:

Code: Select all

#include "minigui.ch"

Function Main

	Public i := 1
	Public aRows [ 20 ] [ 3 ]

	aRows [1]	:= {'Simpson','Homer','555-5555'}
	aRows [2]	:= {'Mulder','Fox','324-6432'} 
	aRows [3]	:= {'Smart','Max','432-5892'} 
	aRows [4]	:= {'Grillo','Pepe','894-2332'} 
	aRows [5]	:= {'Kirk','James','346-9873'} 
	aRows [6]	:= {'Barriga','Carlos','394-9654'} 
	aRows [7]	:= {'Flanders','Ned','435-3211'} 
	aRows [8]	:= {'Smith','John','123-1234'} 
	aRows [9]	:= {'Pedemonti','Flavio','000-0000'} 
	aRows [10]	:= {'Gomez','Juan','583-4832'} 
	aRows [11]	:= {'Fernandez','Raul','321-4332'} 
	aRows [12]	:= {'Borges','Javier','326-9430'} 
	aRows [13]	:= {'Alvarez','Alberto','543-7898'} 
	aRows [14]	:= {'Gonzalez','Ambo','437-8473'} 
	aRows [15]	:= {'Batistuta','Gol','485-2843'} 
	aRows [16]	:= {'Vinazzi','Amigo','394-5983'} 
	aRows [17]	:= {'Pedemonti','Flavio','534-7984'} 
	aRows [18]	:= {'Samarbide','Armando','854-7873'} 
	aRows [19]	:= {'Pradon','Alejandra','???-????'} 
	aRows [20]	:= {'Reyes','Monica','432-5836'} 

	LOAD REPORT DEMO8

	DEFINE WINDOW Win_1 ;
		ROW 0 ;
		COL 0 ;
		WIDTH 400 ;
		HEIGHT 400 ;
		TITLE 'Hello Report' ;
		WINDOWTYPE MAIN 

		DEFINE MAIN MENU
			POPUP 'File'
				ITEM 'Execute Report'	ACTION ( i := 1, ExecuteReport('Demo8',.t.,.t. ) )
			END POPUP
		END MENU

	END WINDOW

	Win_1.Center

	Win_1.Activate

Return Nil

:idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein

User avatar
Roberto Lopez
HMG Founder
Posts: 3986
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez »

gfilatov wrote:
There is a problem (empty preview) at the second running of the report sample.
Please be so kind to revise a small correction of the sample demo8.prg at the folder \hmg\samples\report.advanced :arrow:
You are right.

I've ran the program a lot of times, but I've never ran the report twice :)

Thanks!

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
sudip
Posts: 1446
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India
Has thanked: 5 times
Been thanked: 2 times

Post by sudip »

Hello Master Roberto,

Thanks a lot! Now, we can work with Report Generator (with array) when we are using SQL datababases :D

So, can we expect final release of version 2.9.5 soon?

With best regards.

Sudip
With best regards,
Sudip

User avatar
Roberto Lopez
HMG Founder
Posts: 3986
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez »

sudip wrote:Hello Master Roberto,

Thanks a lot! Now, we can work with Report Generator (with array) when we are using SQL datababases :D

So, can we expect final release of version 2.9.5 soon?

With best regards.

Sudip
Theoretically we could work with anything (besides arrays) since 'Iterator' and 'Stopper' works with any expression.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

Post Reply