Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No error when trying to use exclusive a table already in
Message
 
 
À
03/10/2001 00:04:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00563345
Message ID:
00563425
Vues:
12
>Hola:
>
>Thanks for the reply
>
>Hope you notice something strange in my code:
>lcTabla = alltrim((ThisForm.Acgetdirectory1.txtDirectory.Value)) + ThisForm.aTablas(lnI)
>if file(lcTabla)
>       select 0
>	use (lcTabla) exclusive
<b>ELSE
        WAIT WIND "File not found '" + lcTabla +"'"</b>
>endif
>The if statement is true (the file exists) and enters the code block within.
>

How do you know that if statement is true? Add ELSE clause to the if statement to verify this or you can use VFP debugger to step thru code and see what's going on.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform