On studying the numerous samples in HMG, I decided to replace all the text DBEDIT() with HMG's BROWSE. The following was achieved by using BROWSE functionality in place of DBEDIT() within FAS4HMG
How did I achieve this ?
Code Snippet
DEFINE WINDOW BrowseGLACForm ;
AT 0,0 ;
WIDTH 640 HEIGHT 480 ;
TITLE 'Browse Chart of Accounts' ;
CHILD ;
NOMAXIMIZE;
ON INIT OpenTables() ;
ON RELEASE CloseTables()
DEFINE STATUSBAR
DATE
STATUSITEM '
STATUSITEM 'Alt+A: Append Record' WIDTH 140
STATUSITEM '
CLOCK
END STATUSBAR
@ 10,10 BROWSE Browse_1 ;
WIDTH 580 ;
HEIGHT 400 ;
HEADERS { 'GL Code' , 'GL Name' , 'GL Type', 'GL Group'} ;
WIDTHS { 80 , 320 , 80 , 80 , 120 } ;
WORKAREA GLAC ;
FIELDS { 'GLAC->GLCODE' , 'GLAC->GLNAME' , 'GLAC->GLTYPE' , 'GLAC->GLGROUP'} ;
VALUE 1 ;
EDIT ;
APPEND;
DELETE;
LOCK
END WINDOW
CENTER WINDOW BrowseGLACForm
BrowseGLACForm.Browse_1.SetFocus
ACTIVATE WINDOW BrowseGLACForm
Return Nil
Hi,
ReplyDeleteMy favorite thing about HMG/Extended
Browse is using combo box.
It is even easier than VFP.
And more easier than VB.
Can anybody tell my how to browe array with MiniGUI useing BROWSE, not using Grid.
I need it for One to many forms.
Regards.
Sudip