Board index » delphi » Crear DBF en runtime
evel...@jet.es (Eloy Velázquez López)
![]() Delphi Developer |
Wed, 07 Oct 1998 03:00:00 GMT
|
evel...@jet.es (Eloy Velázquez López)
![]() Delphi Developer |
Wed, 07 Oct 1998 03:00:00 GMT
Crear DBF en runtime
Hola,
Trabajo con Delphi 1.0 y quiero crear una base de datos en RUNTIME definiendo cada uno de los campos. Estoy trabajando con FieldDefs y FieldDef, pero estoy hecho un lio y no he logrado poderlo resolver. ?Me pueden pasar informacin o un procemiento?. Algn libro que entre en estas materias en castellano. Un saludo. |
Francisco Purri?
![]() Delphi Developer |
Sat, 10 Oct 1998 03:00:00 GMT
Re:Crear DBF en runtimeevel...@jet.es (Eloy Velzquez Lpez) wrote: Quote>Hola, Supongamos que quieres crear una base de datos con la siguiente Cdigo : string[10]; Para crearla en tiempo de ejecucin deberas hacer: procedure Form1NoseQueClick(sender:TObject); Si el mbito de utilizacin de la tabla fuese superior a un simple type La podrs crear en el procedure Create, siendo innecesarios tanto el procedure TForm1.Form1Create(sender:TObject); En este caso no ser necesario ocuparse del "TableEjemplo.Free" para Para resolver tus dudas puedes usar la ayuda en linea, busca, por Todava existe otro mtodo de crear una tabla en runtime: utilizando with Query1 do begin En este caso tambin creamos un ndice secundario de nombre "otro" Quote> Algn libro que entre en estas materias en castellano. En el "Delphi Magazine" de Febrero de 1996 publicaron una comparativa de libros sobre Delphi pero estn todos en Ingls, aunque seguro que ya hay alguno traducido al Castellano. Espero haberte servido de ayuda. Un saludo, |
Francisco Purri?
![]() Delphi Developer |
Sun, 11 Oct 1998 03:00:00 GMT
Re:Crear DBF en runtimeevel...@jet.es (Eloy Velzquez Lpez) wrote: Quote>Hola, Suppose you want to create a table with the next structure: Code : string[10]; To create it at runtime: procedure Form1NoseQueClick(sender:TObject); If the scope of the table was higher than a simple method, you could type Then, you could create the table in the TForm OnCreate event handler, procedure TForm1.Form1Create(sender:TObject); The on line help is satisfactory at this point. To solve your Moreover, there is another way to create a table at runtime: TQuerys. with Query1 do begin Here, we also define a secondary index on Name called "Another". Quote> Algn libro que entre en estas materias en castellano. Bob Swart and Steve Troxell wrote about this in an useful overview over Delphi books, but all of them in English (of course). I suppose if you search in a good book store youll find someone translated to Spanish. Hope it serves. Un saludo, |
1. Delphi 3 can not open my FoxPro 2.6 *.dbf en *.cdx files
2. DBF DBF DBF
3. What about instance of TXMLDocument creared run-time
4. Creating DBF Indexes at RunTime, How?
5. Specifying dbf table name at runtime
6. Modify dbf stru at runtime?
7. Adding a field to a dbf table at runtime
8. Problems creating a .dbf table in runtime