lo que quiero es que si la tabla no existe entonces la cree, pero son varias tablas maestro detalles.
explico: La tabla alumno es maestro y las demas son detalles, si la tabla alumno no existe entonces el la debe crear, pero lo que hace es crearmela pero sin indices ves? osea crea la tabla y las fields pero no me crea el indice principal ni varios secundarios y eso es con todas las tablas solo crea los fields de cada una pero claro sin indices y asi no las puedo vincular.
espero que me entiendan y me ayuden.
esto es lo que hago al ejecutar la aplicacion
Código:
addalias('JNT',directorio+'\Base de Dato');
if not Alumnos.Exists then Alumnos.CreateTable;
if not AlumRep.Exists then AlumRep.CreateTable;
if not Representantes.Exists then Representantes.CreateTable;
if not ayuda.Exists then ayuda.CreateTable;
if not Materia.Exists then Materia.CreateTable;
if not Area.Exists then Area.CreateTable;
if not ActGrup.Exists then ActGrup.CreateTable;
if not Ficha.Exists then Ficha.CreateTable;
if not Enfermedad.Exists then Enfermedad.CreateTable;
if not Social.Exists then Social.CreateTable;
if not Regular.Exists then Regular.CreateTable;
if not Coros.Exists then Coros.CreateTable;
if not Profesores.Exists then Profesores.CreateTable;
donde JNT es el alias de las tablas. si las tablas no existen me las crea no se si se haga asi. yo us componentes TTAble de la paleta BDE. ya tengo mi aplicacion lista solo me falta eso. gracias por su tiempo