Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open dialog box
Message
De
11/04/2003 23:42:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
11/04/2003 15:20:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00776744
Message ID:
00776868
Vues:
24
>Olá a todos!
>
> Quando eu executo um select baseado em uma tabela que não existe, é exibida o "open dialog box".
> A questão é que eu gostaria que esta janela não fosse exibida, e que a mensagem de erro "File 'minha_tabela.dbf' does not exist." fosse imediatamente mostrada.
> Existe alguma maneira de desabilitar este diálogo?
>
>Desde já agradço.

Acho que não tem um método "automático" para fazer isto. Pode verificar a existencia das tabelas:


if file("Tabela1") and file("Tabela2")
select ...;
from Tabela1 join Tabela2 on ...
into cursor Temp
else
MessageBox("Erro: Não posso encontrar as tabelas.")
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform