Page 1 of 1

error with hb_AtX

Posted: Sat Nov 28, 2020 7:45 pm
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 ?

Re: error with hb_AtX

Posted: Sun Nov 29, 2020 2:57 pm
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

Re: error with hb_AtX

Posted: Mon Nov 30, 2020 8:36 am
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