FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE : "Edit" only for Colume 3 and 4
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
XBROWSE : "Edit" only for Colume 3 and 4
Posted: Mon Apr 03, 2023 03:28 PM
hi,

i have a XBROWSE using DbStruct() Array
i use oBrw:nEditTypes := EDIT_GET

but i only want to "edit" LEN and DEC of Structure
so how can i "block" Column 1 and 2 in XBROWSE :?:
greeting,

Jimmy
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBROWSE : "Edit" only for Colume 3 and 4
Posted: Mon Apr 03, 2023 03:58 PM
oBrw:nEditTypes := EDIT_GET
This is a short cut for assigning EDIT_GET to nEditType of ALL COLUMNS.

In your case please set:
Code (fw): Select all Collapse
oBrw:aCols[ 3 ]:nEditType := EDIT_GET
oBrw:aCols[ 4 ]:nEditType := EDIT_GET
leaving the value of nEditType of all other columns to their default values, i.e., EDIT_NONE ( = 0 )
Regards



G. N. Rao.

Hyderabad, India
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: XBROWSE : "Edit" only for Colume 3 and 4
Posted: Mon Apr 03, 2023 05:17 PM
hi,
nageswaragunupudi wrote:This is a short cut for assigning EDIT_GET to nEditType of ALL COLUMNS.

In your case please set:
Code (fw): Select all Collapse
oBrw:aCols[ 3 ]:nEditType := EDIT_GET
oBrw:aCols[ 4 ]:nEditType := EDIT_GET
leaving the value of nEditType of all other columns to their default values, i.e., EDIT_NONE ( = 0 )
ah, thx for Answer
greeting,

Jimmy

Continue the discussion