TData question

TData question

Postby Otto » Sun Nov 29, 2015 8:50 pm

Dear James,
In my copy of TData I have following commends:
::load() // Removed this line for FW 10.02
//::setArea( ::nArea ) // New for FW 10.02

I can’t remember where these commends are from.
Can you recommend what the right line for the current FWH release is?
Thanks in advance
Otto

Code: Select all  Expand view
//--- use() -> lSuccess
method use() class tdata
   local n:=0
   local lSuccess:= ::netLock({|| ::fileUse() }, "File open")
   if lSuccess
      ::load()           // Removed this line for FW 10.02
      //::setArea( ::nArea ) // New for FW 10.02
      for n = 1 to ( ::cAlias )->( FCount() )
         AAdd( ::aFldNames, ( ::cAlias )->( FieldName( n ) ) )
      next
   endif
return lSuccess
 
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6322
Joined: Fri Oct 07, 2005 7:07 pm

Re: TData question

Postby James Bott » Mon Nov 30, 2015 3:07 pm

Otto,

The lines should be:

// ::load() // Removed this line for FW 10.02
::setArea( ::nArea ) // New for FW 10.02

The latest TData.prg is dated 4/9/2010. It appears that you modified it. I will send you the original.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 59 guests