FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour error in toexcel()
Posts: 400
Joined: Fri May 11, 2007 08:20 PM
error in toexcel()
Posted: Thu Nov 24, 2022 10:55 PM
Mr. RAO:
This error was repaired in the xbrowse.prg?
Code (fw): Select all Collapse
...
#ifndef __XHARBOUR__
   else
      //
      SysRefresh()
      //
      // This requires explanation.
      // With xHarbour there is no problem. Problem is with Harbour only
      // return value of this function is oSheet which is an Object. xHarbour returns as object
      // If SysRefresh() is called here, Harbour returns oSheet as an object
      // if not it returns an Array of two numeric elements.
      // I am unable to understand this phenomenon.
      // Till we understand what is happening, keep SysRefresh() here for
      // Harbour build.
      // 2015-06-02
#endif
   endif

return oSheet
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: error in toexcel()
Posted: Sat Nov 26, 2022 03:39 PM

This is not an error.

ToExcel works perfectly.

Keeping SysRefresh() already fixed the issue with Harbour,

The comment is only for information why SysRefresh() is used for Harbour only but not for xHarbour.

You can confidently use the existing method ToExcel() with both Harbour / xHarbour and both 32/64 bits and both Borland/MSVC.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion