"PROBLEMILLA" CON TCBROWSE FWH

Re: "PROBLEMILLA" CON TCBROWSE FWH

Postby nageswaragunupudi » Fri May 22, 2020 10:52 am

@ r, c XBROWSE oBrw SIZE ....................
DATASOURCE cAlias ;
COLUMNS "FIELD3", "LEFT(FIELD1,10)", "RIGHT(FIELD1,10)", "FIELD4", ....;
HEADERS ...........
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: "PROBLEMILLA" CON TCBROWSE FWH

Postby pacotre » Fri May 22, 2020 3:53 pm

Muchas gracias.
pacotre
 
Posts: 40
Joined: Fri Jan 10, 2014 10:38 am

Re: "PROBLEMILLA" CON TCBROWSE FWH

Postby pacotre » Sat May 23, 2020 5:14 pm

nageswaragunupudi wrote:@ r, c XBROWSE oBrw SIZE ....................
DATASOURCE cAlias ;
COLUMNS "FIELD3", "LEFT(FIELD1,10)", "RIGHT(FIELD1,10)", "FIELD4", ....;
HEADERS ...........


No podía imaginar que era tan fácil. Y supongo que otra duda que tengo también será fácil, pero que no veo:

Como se evalua el índice activo una vez que pinchamos un header? para indicarlo en texto en el Dialog.
pacotre
 
Posts: 40
Joined: Fri Jan 10, 2014 10:38 am

Re: "PROBLEMILLA" CON TCBROWSE FWH

Postby nageswaragunupudi » Sun May 24, 2020 10:01 am

XBrowse automatically, on its own, reads and parses all index expressions of all open indexes and decides which index can be used for which column and stores the Tag name in oCol:cSortOrder and order bag name in oCol:cOrdBag and uses this information to change the index order when the user clicks on the header. In 99% of the cases, this should work satisfactorily.
The programmer can override this behavior by specifying oCol:cSortOrder and oCol:cOrdBag himself, but this may be done only if xbrowse fails to recognize the correct index tag.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: "PROBLEMILLA" CON TCBROWSE FWH

Postby pacotre » Sun May 24, 2020 10:32 am

Ok. All is working ok, but I need to know when de user has changed the index clicking on header, then I can write the fieldname in Dialog.

For example something like this:

'On change indexord()' msginfo("Active index is "+str(indexord())). My problem is I don't know identifier when user is clicking on header with Xbrowse

Thank you
pacotre
 
Posts: 40
Joined: Fri Jan 10, 2014 10:38 am

Re: "PROBLEMILLA" CON TCBROWSE FWH

Postby nageswaragunupudi » Sun May 24, 2020 12:47 pm

You are posting all your doubts on XBROWSE under TCBROWSE topic.
Please open a new post for your doubts on XBrowse.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Willi Quintana and 45 guests