Page 1 of 1

XBROWSE : "Edit" only for Colume 3 and 4

PostPosted: Mon Apr 03, 2023 3:28 pm
by Jimmy
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 :?:

Re: XBROWSE : "Edit" only for Colume 3 and 4

PostPosted: Mon Apr 03, 2023 3:58 pm
by nageswaragunupudi
oBrw:nEditTypes := EDIT_GET

This is a short cut for assigning EDIT_GET to nEditType of ALL COLUMNS.

In your case please set:
Code: Select all  Expand view
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 )

Re: XBROWSE : "Edit" only for Colume 3 and 4

PostPosted: Mon Apr 03, 2023 5:17 pm
by Jimmy
hi,
nageswaragunupudi wrote:This is a short cut for assigning EDIT_GET to nEditType of ALL COLUMNS.

In your case please set:
Code: Select all  Expand view
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