FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse SaveState ?
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
xBrowse SaveState ?
Posted: Tue Sep 23, 2014 03:06 PM

Hi,

I use array in xbrowse with autosort. I want to save the users selected order in ini file. I try to use SaveState method. but it does not save the cOrder.

How Can I save it and restore it?

Thanks.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: xBrowse SaveState ?
Posted: Tue Sep 23, 2014 07:55 PM

Hi,

I have solved via saving cOrder variable manually. There may be more quick way. but it is ok now.

Thanks.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse SaveState ?
Posted: Thu Oct 09, 2014 03:37 AM

Regret delay in my response.

oBrw:SaveState( { "cOrders" } ) --> cSaveText

Regards



G. N. Rao.

Hyderabad, India
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: xBrowse SaveState ?
Posted: Fri Oct 10, 2014 08:00 AM

Nages,

How I can modify the title of header ?

I have a big Problem

I have application in two language .

the final user open a xbrowse of customer in italian language and the headers of xbrowse are translated in italian language

the procedure at init restore the state of xbrowse and on close save the state of xbrowse into a ini file

the fianal user closed the customer xbrowse go to main menu and change the language from italian to english and confirm it

the options text of the main menu is translated on new language (english)

when the final user open customer xbrowse found the header titles translated in oldest language (italian) and not on new language ( english).

this happend when you change the savestate and restorestate methods of Xbrowse !!!

I found a solution to use the ovverride commad and rewrite the old methods but I think it is bad... How we can resolve this problem ?

I must change this part of state

{"_cHeaders",{"First","Last","Address","City"}}

into

{"_cHeaders",{"Nome","Cognome","Indirizzo","Località"}}

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion