BROWSE / GRID inline Edit

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2064
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

BROWSE / GRID inline Edit

Post by AUGE_OHR »

hi,

GRID have [ EDIT | ALLOWEDIT ] ] but it does not change Original Array :shock:
i read about "OnSave" and "This.EditBuffer" but not understand how it work. :(

BROWSE does not have EDIT but a Property AllowEdit <lValue> :o
but again the Question how to "enable" it :?:

---

i found some Keyword like
_BrowseInPlaceEdit
_BrowseEdit
in c:\hmg.3.4.4\SOURCE\h_browse.prg i found

Code: Select all

Procedure ProcessInPlaceKbdEdit(i)
HMG_SYSDATA [ 39 ]
and in c:\hmg.3.4.4\SOURCE\h_windows.prg

Code: Select all

            * Browse Key Handling .........................
            If GetNotifyCode ( lParam ) = LVN_KEYDOWN
               Do Case
               Case GetGridvKey(lParam) == 65 // A
                  if GetAltState() == -127 ;
                     .or.;
                     GetAltState() == -128   // ALT
                     if _HMG_SYSDATA [ 39 ] [i] [2] == .T.
                              _BrowseEdit ( _HMG_SYSDATA [3][i] , _HMG_SYSDATA [ 39 ] [i] [4] , _HMG_SYSDATA [ 39 ] [i] [5] , _HMG_SYSDATA [ 39 ] [i] [3] , _HMG_SYSDATA [  9 ] [i] , .t. , _HMG_SYSDATA [ 15 ] [i] , _HMG_SYSDATA [ 39 ] [i] [7] )
                     EndIf
                  EndIf
so what is "working" when have BROWSE : h_browse.prg or h_windows.prg :?:

---

what does

Code: Select all

#ifdef COMPILEBROWSE
i know what #IFDEF mean but when/where use COMPILEBROWSE :idea:
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2064
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: BROWSE / GRID inline Edit

Post by AUGE_OHR »

found in c:\hmg.3.4.4\SOURCE\h_browse.prg

Code: Select all

Function _SetBrowseAllowEdit ( cControlName , cWindowName , lValue )
! Note : use

Code: Select all

   SET BROWSESYNC ON
p.s. not sure if it work in Network when SHARE DBF :?:
have fun
Jimmy
Post Reply