NtxPos( IndexOrd(), RecNo() )

NtxPos( IndexOrd(), RecNo() )

Postby MichaelMo » 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?
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: NtxPos( IndexOrd(), RecNo() )

Postby Enrico Maria Giordano » Wed Nov 18, 2009 12:55 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8378
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: NtxPos( IndexOrd(), RecNo() )

Postby nageswaragunupudi » Wed Nov 18, 2009 1: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
User avatar
nageswaragunupudi
 
Posts: 10308
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: NtxPos( IndexOrd(), RecNo() )

Postby MichaelMo » Fri Nov 20, 2009 7: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.
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 38 guests