oMiBase:zap() me da error SOLUCIONADO

oMiBase:zap() me da error SOLUCIONADO

Postby D.Fernandez » Tue Mar 15, 2016 3:26 am

Hola a todos:
Amigos uso en estas lineas oMiBase:zap(), pero me genera error. Alguna sugerencia?

Codigo:
oMibase:Tmov():New(, liquida,,.f.) //exclusiva
If oMiBase:Use()
If oMiBase:lock()
oMiBase:zap()
Else
MsgInfo("no exclu")
Endif
Else
MsgInfo("No use")
Endif


Saludos y gracias.
Ruben D. Fernandez
Last edited by D.Fernandez on Tue Mar 15, 2016 10:39 pm, edited 1 time in total.
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
D.Fernandez
 
Posts: 463
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay

Re: oMiBase:zap() me da error

Postby Antonio Linares » Tue Mar 15, 2016 12:09 pm

Ruben,

Que error te genera ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: oMiBase:zap() me da error

Postby D.Fernandez » Tue Mar 15, 2016 12:36 pm

Antonio el error que tengo es DBF/CDX, dice que no tengo la base abierta exclusiva y yo creo que si.

Gracias
Saludos
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
D.Fernandez
 
Posts: 463
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay

Re: oMiBase:zap() me da error

Postby karinha » Tue Mar 15, 2016 12:48 pm

Code: Select all  Expand view

USE MIBASE EXCLUSIVE NEW

__ZAP()

 
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7804
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: oMiBase:zap() me da error

Postby D.Fernandez » Tue Mar 15, 2016 12:52 pm

Si, gracias, pero con Tdatabase me genera error en la linea 177 de Database.prg

Saludos y gracias.
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
D.Fernandez
 
Posts: 463
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay

Re: oMiBase:zap() me da error

Postby Kleyber » Tue Mar 15, 2016 5:58 pm

Ruben,

Quita el
If oMiBase:lock()
Y intenta nuevamente.
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
User avatar
Kleyber
 
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Re: oMiBase:zap() me da error

Postby D.Fernandez » Tue Mar 15, 2016 10:39 pm

Kleyber, EXCELENTE. Funcionó, muc has gracias.

Saludos

Ruben Fernandez
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
D.Fernandez
 
Posts: 463
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay


Return to FiveWin para Harbour/xHarbour

Who is online

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