Problem with EXCEL to DBF / Problema p/pasar de EXCEL a DBF

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
CarlosRD
Posts: 63
Joined: Thu Jan 31, 2013 9:20 pm
Location: Orizaba, México

Problem with EXCEL to DBF / Problema p/pasar de EXCEL a DBF

Post by CarlosRD »

hola de nuevo a todos.

tengo un problemita al pasar datos de un archivo de excel a un dbf

SI EN EL OBJETO PONGO VISIBLE EN .F., EL PROCESO FUNCIONA PERFECTO, SOLO QUE EL ARCHIVO DE EXCEL, SE QUEDA EN MEMORIA, AUN QUE FISICAMENTE NO LO PUEDA VER.
SI LO DEJO EN .T., EL ARCHIVO DE EXCEL SE QUEDA ABIERTO.
NECESITO UNA INSTRUCCION PARA CERRAR EL ARCHIVO DE EXCEL Y NO SE QUEDE RESIDIENDO EN RAM.
AGREGO MI PRG CON LOS ARCHIVOS NECESARIOS.

***********************
HI ALL

I HAVE A LITTLE PROBLEM TO IMPORT DATA FROM EXCEL TO DBF
IF IN AN OBJET, I PUT VISIBLE IN .F., PROCESS WORKS PERFECT, BUT EXCEL FILE STAYS IN RAM.
IF I LET IT .T., EXCEL FILE STAYS OPEN
I NEED AN INSTRUCTION TO CLOSE EXCEL FILE AND TAKE IT OFF FROM RAM
HERE IS MY PRG WITH THE NECESSARY FILES
Attachments
TESTEXCEL.7z
(27.43 KiB) Downloaded 331 times
Todo en el Nombre de Jesus / All in the name of Jesus
Carlos RD
User avatar
danielmaximiliano
Posts: 2646
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Post by danielmaximiliano »

Hola Carlos :
necesitas cerrar la planilla

Code: Select all

oExcel:Quit()
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
CarlosRD
Posts: 63
Joined: Thu Jan 31, 2013 9:20 pm
Location: Orizaba, México

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Post by CarlosRD »

hola daniel:
lo habia intentado, incluso con Close, pero el error es este:
Diapositiva1.JPG
Diapositiva1.JPG (16.1 KiB) Viewed 3747 times
danielmaximiliano wrote:Hola Carlos :
necesitas cerrar la planilla

Code: Select all

oExcel:Quit()
Todo en el Nombre de Jesus / All in the name of Jesus
Carlos RD
User avatar
CarlosRD
Posts: 63
Joined: Thu Jan 31, 2013 9:20 pm
Location: Orizaba, México

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Post by CarlosRD »

hola otra vez:

daniel, problema resuelto.

estaba usando: oExcel:Quit(yx), considerando que en la variable yx contienia el nombre del archivo de excel.
quitando "yx", funciono perfecto, gracias.

*********************
daniel, solved problem.
i was using: oExcel:Quit(yx), where yx contains the name of excel file.
taking out "yx", it works perfect. thanks.

saludos / regards.
Todo en el Nombre de Jesus / All in the name of Jesus
Carlos RD
User avatar
danielmaximiliano
Posts: 2646
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Post by danielmaximiliano »

Hola Carlos :
oExcel contiene el nombre de la planilla y todos los metodos para trabajar con ella.
el metodo :Quit() temina la misma pero no recuerdo si destruye el Objeto oExcel.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
luisvasquezcl
Posts: 1261
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Post by luisvasquezcl »

Hola colegas.
Para solucionar ese problemas debes invocar al objeto applicacion:

oExcel:Application:Quit

Con eso cierras excel.
Saludos cordiales,
Luis Vasquez
User avatar
CarlosRD
Posts: 63
Joined: Thu Jan 31, 2013 9:20 pm
Location: Orizaba, México

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Post by CarlosRD »

hola luis:
gracias por el tip.
luisvasquezcl wrote:Hola colegas.
Para solucionar ese problemas debes invocar al objeto applicacion:

oExcel:Application:Quit

Con eso cierras excel.
Saludos cordiales,
Luis Vasquez
Todo en el Nombre de Jesus / All in the name of Jesus
Carlos RD
Post Reply