FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour xbrowse y alias desde un array
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
xbrowse y alias desde un array
Posted: Thu Jul 08, 2010 04:30 PM
Estimados

como hacer que esta linea pueda funcionar?
Code (fw): Select all Collapse
 WITH OBJECT oBrw:AddCol()
     :cHeader    := "Código"
     :bStrData   := { || (aAlias[8])->Ar_Codig }
    END

Application
===========
   Path and name: D:\Apl\PRGS\Ventas2\dbf\wcta.exe (32 bits)
   Size: 5,690,880 bytes
   Time from start: 0 hours 0 mins 1 secs 
   Error occurred at: 08/07/2010, 12:28:56
   Error description: Error BASE/1003  Variable does not exist: AALIAS

Stack Calls
===========
   Called from: .\NewArticu.PRG => NEWARTICU(40)


esta Linea funciona !!
Code (fw): Select all Collapse
cAlias := aAlias[8]
   WITH OBJECT oBrw:AddCol()
         :cHeader    := "Código"
     :bStrData   := { || (cAlias)->Ar_Codig }
    END
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: xbrowse y alias desde un array
Posted: Thu Jul 08, 2010 05:06 PM
Por el momento encontre declarando la variable como publica

PUBLIC aAlias[10]


si hay otra alternativa favor postear..
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl

Continue the discussion