Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open dialog box
Message
From
11/04/2003 23:42:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/04/2003 15:20:28
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00776744
Message ID:
00776868
Views:
22
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform