XBROWSE : "Edit" only for Colume 3 and 4

XBROWSE : "Edit" only for Colume 3 and 4

Postby Jimmy » Mon Apr 03, 2023 3: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
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

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

Postby nageswaragunupudi » Mon Apr 03, 2023 3: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: Select all  Expand view  RUN
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
User avatar
nageswaragunupudi
 
Posts: 10656
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby Jimmy » Mon Apr 03, 2023 5: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: Select all  Expand view  RUN
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
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 34 guests