Przemyslaw Czerpak a écrit :
On Mon, 31 Mar 2008, Alex Strickland wrote:
Now, i want to fclose() the text file when the object is destroyed.
How can i do this with harbour ?
I do not think there are destructors in Harbour, call an exit/close
method.
They do exist in xHarbour.
You are wrong. Only Harbour have fully working destructors and
xHarbour doesn't. The xHarbour implementation is too buggy for
serious usage.
Please read docs/destruct.txt and try test code in destruct.prg.
Fine thank you, i only need to add this to my code :
class FLaccess
...
destructor close
...
endclass
...
method close() class FLaccess
fclose(::nHandle)
return NIL
--
Guy
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour