Estimado
He estado teniendo problemas con EXcel y harbour
el problema esta en que la variable codexcel retorna un ARREGLO
y si coloco oHoja:Cells(i,1):Value returna un character
estare haciendo algo mal al invocar el Excel..
He estado teniendo problemas con EXcel y harbour
cArch := cGetFile32("Archivos Excel | *.XLS* |" , "Importar desde un archivo",1,,,.T. )
if empty(cArch)
  return
endif
if ( oExcel := CREATEOBJECT( "Excel.Application" ) ) = NIL
  MsgInfo( "No se pudo comunicar con EXCEL", "Usuario" )
  return
endif
oExcel:WorkBooks:Open(cArch )
oHoja := oExcel:ActiveSheet
nRow := oHoja:UsedRange:Rows:Count()
for i := 2 to nRow
   if valtype(oHoja:Cells(i,1):Value) <> "U"
    codExcel := oHoja:Cells(i,1):Value
    IF VALTYPE( CODEXCEL ) <> "C"
      ALERT( CODEXCEL )
      ALERT( oHoja:Cells(i,1):Value )
    ENDIF
...
...el problema esta en que la variable codexcel retorna un ARREGLO
y si coloco oHoja:Cells(i,1):Value returna un character
estare haciendo algo mal al invocar el Excel..
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
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