Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Travar Registro Tabela (Rotina)
Message
De
15/01/2004 10:00:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00867061
Message ID:
00867098
Vues:
29
This message has been marked as the solution to the initial question of the thread.
Thiago,

A Função RLock() "tenta" dar um lock em um registro e não, necessariamente, dá um lock em um registro. Sua funcionalidade depende muito do que você setou via SET REPROCESS.

Uma forma seria utilizar uma tabela auxiliar (normalmente contendo vários parâmetros para o sistema) com os diversos contadores:
Set Reprocess To Automatic

. . .

Create Table Contadores (Contador1 N(6), Contador2 N(6)...)

. . .

Select Contadores
Go     Top

RLock()

nContador1 = Contador1 + 1

Replace Contador1 with nContador1
Unlock
Fernando
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform