
HMGSCRIPT 2012 FUNCTION REFERENCE (R021)
----------------------------------------


WINDOW: 
-------

Element: DIV 

You can use all the properties, events and methods availables for it via DOM.

Syntax:

	Window( cId , cCaption , nWidth , nHeight )



BUTTON: 
-------

Element: INPUT (Type: BUTTON)

You can use all the properties, events and methods availables for it via DOM.

Syntax:

	Button( cId , cParentId , nRow , nCol , cCaption , cOnClick )



LABEL: 
------

Element: SPAN

You can use all the properties, events and methods availables for it via DOM.

Syntax:

	Label( cId , cParentId , nRow , nCol , cValue )



TEXTBOX: 
--------

Element: INPUT (Type: TEXT)

You can use all the properties, events and methods availables for it via DOM.

Syntax:

	TextBox( cId , cParentId , nRow , nCol , cValue )



IMAGE: 
------

Element: IMAGE

You can use all the properties, events and methods availables for it via DOM.

Syntax:

	Image( cId , cParentId , nRow , nCol , cSrc )



PANEL: 
------

Element: DIV 

You can use all the properties, events and methods availables for it via DOM.

Syntax:

	Panel( cId , cParentId , nRow , nCol , nWidth , nHeight , cValue )



MSGINFO: 
--------

Syntax:

	MsgInfo( cMessage , cCaption )



RELEASE:
--------

Releases a window.

Syntax:

	Release( cId )


APPEND: 
-------

Appends a record.

Syntax:

	Append( cTable , aColumns , aValues )



DELETE: 
-------

Delete records matching the cForExpr.

Syntax:

	Delete( cTable , cForExpr )



MODIFY: 
-------

Modifies records matching the cForExpr.

Syntax:

	Modify( cTable , aColumns , aValues , cForExpr )


BROWSE:
-------

Elements: DIV/TABLE

Creates an HTML table inside a scrollable DIV, loaded with the specified dbf query.

Syntax:

	Browse( cId, cParentId, nRow, nCol, nWidth, nHeight, cDbfFile, aColumns, 
	aHeaders , cForExpr , cOrder  )

Methods:

	- refresh()
	- GetSelectedRows()
	- GetRowCount()
	- Select()
	- UnSelect()
	- GetCell(nRow,nCount)
	- GetSelectedRowCount()


Notes:

	'cId' is the id of the HTML table created (to be accessed via DOM).
	'cParentId' is the Id of the parent window.
	

Example:

	oBrowse = new Browse( 
		'browse1' , 
		'win' , 
		050 , 050 , 550 , 300 , 
		'test' , [ 'code' , 'first' , 'last' , 'birth' , 'married' ] , 
		[ 'Code' , 'First' , 'last' , 'Birth' , 'Married' ] , 
		'code < 100' , 
		'code' );

	oBrowse.refresh()
