Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problema
Message
From
21/01/2002 19:28:14
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00608042
Message ID:
00608143
Views:
28
Rodolfo veja o código:

CLOSE ALL
CLEAR ALL

BEGIN TRANSACTION

USE CLIENTES IN 0 SHARED ALIAS CLIENTES
=CURSORSETPROP("Buffering" , 3, "CLIENTES")

REPLACE ATIVO WITH 2 IN CLIENTES

=TABLEREVERT(.T.,"CLIENTES")

ROLLBACK

CLOSE ALL
CLEAR ALL

Quando me refiro que não se pode executar Tablerevert() em uma transação, significa, que não é permitido dar esta instrução endtre um BEGIN TRANSACTION e END TRANSACTION/ROLLBACK.
Se vc fizer isto em um formulário ira gerar um erro, mas o exemplo acima com a tabela clientes ( pode ser qq. outra tabela ) funciona. isto é estranho pois o proprio manual informa que não é permitido TABLEREVERT() em uma transação.

Contudo aqui funciona..
poerque ? alguem tem uma explicação ?

[ ], s
Peter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform