FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour diesable navigation Buttons using TArrayData():Edit() ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
diesable navigation Buttons using TArrayData():Edit() ?
Posted: Sun Jul 23, 2023 08:26 AM
hi,

to "edit" a Recored i´m using
Code (fw): Select all Collapse
oRec := TArrayData() :New( { aValue }, aFields )
// disable navigation Buttons ?
lEdit := oRec:Edit()

there are some navigation Button on left Side, how to disable them :?:
greeting,

Jimmy
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: diesable navigation Buttons using TArrayData():Edit() ?
Posted: Sun Jul 23, 2023 11:55 PM
Syntax:
Code (fw): Select all Collapse
METHOD Edit( lReadOnly, lNavigate, cTitle )
We can write:
Code (fw): Select all Collapse
TArrayData():New( {aValue}, aFields ):Edit( nil, .f. )
Regards



G. N. Rao.

Hyderabad, India
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: diesable navigation Buttons using TArrayData():Edit() ?
Posted: Mon Jul 24, 2023 01:46 AM
hi,

thx for Answer
nageswaragunupudi wrote:Syntax:
Code (fw): Select all Collapse
METHOD Edit( lReadOnly, lNavigate, cTitle )
We can write:
Code (fw): Select all Collapse
TArrayData():New( {aValue}, aFields ):Edit( nil, .f. )
it seems not to make any difference :?
Code (fw): Select all Collapse
CLASS TArrayData
METHOD Edit()  INLINE ::record():Edit()
there are no Parameter to pass ...
greeting,

Jimmy
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: diesable navigation Buttons using TArrayData():Edit() ?
Posted: Mon Jul 24, 2023 09:40 AM
it seems not to make any difference :?
Code:
CLASS TArrayData
METHOD Edit() INLINE ::record():Edit()

there are no Parameter to pass ...
Sorry and also thanks for pointing our oversight.

Please use this:
This is working:
Code (fw): Select all Collapse
TArrayData():New( {aValues}, aFields ):Record():Edit( nil, .t. )
Regards



G. N. Rao.

Hyderabad, India
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: diesable navigation Buttons using TArrayData():Edit() ?
Posted: Tue Jul 25, 2023 10:30 PM
hi,
nageswaragunupudi wrote:Please use this:
This is working:
Code (fw): Select all Collapse
TArrayData():New( {aValues}, aFields ):Record():Edit( nil, .t. )
Yes, now it work, thx
greeting,

Jimmy

Continue the discussion