AT( ) Function. Harbour vs xHarbour

AT( ) Function. Harbour vs xHarbour

Postby TimStone » Fri Feb 12, 2021 11:43 pm

I'm working with some legacy code orignially developed with xHarbour. The AT() function in xHarbour has this syntax:

At( <cSearch>, <cString>, [<nStart>], [<nEnd>] ) --> nPos

Using Harbour, AT() only supports the first two parameters and will error if the nStart is specified.

Is there an alternative syntax for Harbour that matches the original xHarbour ( and Clipper ) function syntax?
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2904
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: AT( ) Function. Harbour vs xHarbour

Postby nageswaragunupudi » Sat Feb 13, 2021 2:50 am

Using Harbour, AT() only supports the first two parameters and will error if the nStart is specified.

Yes.
Function HB_AT(...) of Harbour is equivalent to the function AT() of XHarbour.

But if you link xhb.lib, using AT(...) with Harbour also give the same results.
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 94 guests