FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour NtxPos( IndexOrd(), RecNo() )
Posts: 55
Joined: Thu Feb 15, 2007 01:35 AM
NtxPos( IndexOrd(), RecNo() )
Posted: Wed Nov 18, 2009 11:46 AM

The browses of the code I'm converting use the NTXPOS() function to set the scroll bars on a number of browses. In 16 bits this function seemed to work very nicely, but in FWH, it seems to always return 0. Any suggestions?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: NtxPos( IndexOrd(), RecNo() )
Posted: Wed Nov 18, 2009 12:55 PM

In 32 bit use OrdKeyNo() and OrdKeyCount() instead.

EMG

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: NtxPos( IndexOrd(), RecNo() )
Posted: Wed Nov 18, 2009 01:07 PM

In addition to Mr EMG's suggestion, I like to add that if we use XBrowse, it automatically takes care of these issues.

We just tell the XBrowse what columns are to be browsed from what Alias and it does all the rest.

Regards



G. N. Rao.

Hyderabad, India
Posts: 55
Joined: Thu Feb 15, 2007 01:35 AM
Re: NtxPos( IndexOrd(), RecNo() )
Posted: Fri Nov 20, 2009 07:15 PM

Thanks to you both for your suggestions. I ended up using the OrdKeyNo() call in place of the NTXPOS function and that seems to work perfectly. I'm sure there are advantages to using newer browses, but at this point there are enough other things to work on, I'm taking the quickest path toward conversion. Thanks for both of your suggestions.

Continue the discussion