Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unas cuantas consultas
Message
From
26/11/2011 14:22:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/11/2011 11:37:53
Victor Chignes
Inteliventas
Peru
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01529788
Message ID:
01529851
Views:
20
>Si la estructura es igual, puede abrir las diferentes tablas con el mismo ALIAS

Claro, si abres una tabla a la vez, puedes usar el mismo alias para todos. Por ejemplo, suponiendo que tienes los datos de enero, febrero, etc. en diferentes tablas. He aquí un ejemplo:
* El usuario selecciona el mes y el año. Por simplicidad, digamos que están en TextBoxes.
* Digamos que el usuario seleccionó mes=9, año=2010.
local lcTabla
lcTabla = "Datos-" + transform(ThisForm.TxtAño.Value) + "-" + padl(ThisForm.TxtMes.Value, 2, "0")
* En el ejemplo, esto nos daría "Datos-2010-09".
use (lcTabla) alias DatosMensuales
...
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
Reply
Map
View

Click here to load this message in the networking platform