ATail()

ATail()

Postby Enrico Maria Giordano » Mon Apr 01, 2013 4:13 pm

Dear friends, in xHarbour we can write

Code: Select all  Expand view
ATail( aArray ) = xValue


because xHarbour automatically convert it to

Code: Select all  Expand view
aArray[ -1 ] = cValue


Harbour doesn't compile it complaining

Code: Select all  Expand view
Error E0022  Invalid lvalue '()'


Any solution? Or do I have to replace all the occurences manually?

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

Re: ATail()

Postby Enrico Maria Giordano » Tue Apr 02, 2013 11:58 am

Never mind. I replaced

Code: Select all  Expand view
ATail( aArray ) = xValue


with

Code: Select all  Expand view
aArray[ LEN( aArray ) ] = xValue


in my code. :-)

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests