FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour hb_inline() not working in xharbour from fivewin
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
hb_inline() not working in xharbour from fivewin
Posted: Sat Jun 16, 2007 12:49 PM

I have installed fwh705 and xharbour provided by fivewin (99.71). After upgrading, the hb_inline() is giving compliation error. ( used to work earlier with xharbour 99.70 binaries downloaded from xharbour.org). We can try compiling inline_c.prg in the samples folder.

error E0020 : Incomplete statement or unbalanced delimiters.

can you pl suggest the solution Mr.Antanio?

Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_inline() not working in xharbour from fivewin
Posted: Sat Jun 16, 2007 03:04 PM
Try the following sample:

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL n := 5

    ? n

    HB_INLINE( @n );
    {
        int n = hb_parni( 1 ) ;
        n++;
        hb_storni( n, 1 );
    }

    ? n

    RETURN NIL


EMG
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
hb_inline() not working in xharbour from fivewin
Posted: Sat Jun 16, 2007 04:46 PM

Thanks. This is working now.
The difference is semicolon is now required between hb_inline( .. ) and the following curly braces ( { )

Earlier it used to work without this semicolon.

Thank you very much Mr. Enrico.

Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
hb_inline() not working in xharbour from fivewin
Posted: Sat Jun 16, 2007 05:30 PM

Sorry. I understand now.
The syntax is hb_inline ( ... ) {
or
hb_inline( .. ) ; (semicolon is for continuation of { on the next line.
{

this solved the issue.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion