FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Xbrowse and oBrw:RestoreState()
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Xbrowse and oBrw:RestoreState()
Posted: Tue Aug 27, 2024 11:00 PM
Hi Guys,

I have a xbrowse where I'm adding columns at runtime, throught the command bellow:

ADD COLUMN TO XBROWSE oBrw DATA {|| oLbxBrw:oDbf:Fields(cCampo):value } HEADER cCampo size 150.

IF I use cStat := oBrw:SaveState() and after execute oBrw:RestoreState(cStat) the columns I have added at runtime are not being restored. Do you know why?

Other thing - Is there any way to know that the user made a change in the xbrowse layout ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse and oBrw:RestoreState()
Posted: Wed Aug 28, 2024 03:26 PM

We will check.

Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse and oBrw:RestoreState()
Posted: Thu Aug 29, 2024 02:07 AM
Before answering the main question I am a bit curious about this command:
Code (fw): Select all Collapse
ADD COLUMN TO XBROWSE oBrw DATA {|| oLbxBrw:oDbf:Fields(cCampo):value } HEADER cCampo size 150.
Why are we including the data from a totally different browse oLbxBrw in a different browse oBrw?
Regards



G. N. Rao.

Hyderabad, India
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: Xbrowse and oBrw:RestoreState()
Posted: Fri Aug 30, 2024 11:23 AM

Sorry,

I just copy the command wrong. The right is:

ADD COLUMN TO XBROWSE oLbxBrw DATA {|| oLbxBrw:oDbf:Fields(cCampo):value } HEADER Rtrim(oVfa5:titulo) SIZE aFields[oBrw:nAt,3]*10

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil

Continue the discussion