error with hb_AtX

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

error with hb_AtX

Post by Silvio.Falconi »

Linea:="<REPORTNUM>001</REPORTNUM>"

cField := hb_AtX( "<[^>]*>", Linea, .F. )

give me cField empty , why ?

I'm using Harbour, perhaps it is a xharbour function ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: error with hb_AtX

Post by nageswaragunupudi »

HB_AtX(...) works both in Harbour and xHarbour.
But the first parameter should be a valid RegEx expression.

Refer
https://en.wikipedia.org/wiki/Regular_expression
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: error with hb_AtX

Post by Silvio.Falconi »

nageswaragunupudi wrote:HB_AtX(...) works both in Harbour and xHarbour.
But the first parameter should be a valid RegEx expression.

Refer
https://en.wikipedia.org/wiki/Regular_expression
resolved I forget to link a lib
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply