General information
Category:
Forms & Form designer
Title:
Abrir tablas libres
Saludos amigos del foro. Les regaría ayudarme con algo:
El asunto es que yo necesito abrir unas tablas libres que tengo dentro de un sistema, estas tablas son 12 tablas anuales que se van creando según van trancurriendo los meses, a saber:
En este mes de Marzo, hay tras tablas: las de Enero, Febreo y Marzo.
Pero resulta que para hacerlo automático los abro así:
*
LcRutadeFiles ='c:\micarpeta\misdatos\'
*
FOR I=1 TO 12 && De Enero a Diciembre de un mismo año
lcfile = LcRutadeFiles+'S2006'+PADL(allt(str(I)), 2, '0')
If file('&lcfile.')
use &lcfile. alias FILE_SEM in 0
Endif
select FILE_SEM
BROW NOMO
use
ENDFOR
* El problema es que debo detectar si los archivos existen..pero la instrucción... If file('&lcfile.') se me cae...parecería que no es la sintaxis adecuada para verificar si existen los archivos antes de poder abrirlos.
Podeís ayudarme con esto..
gracias de antemano
Carlos Burgos
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only