Português:
Dizem que na informática nada se cria, tudo se copia, sendo assim, inspirando-me em idéias de S. Rathinagiri, Dr Claudio Soto e outros comecei este Projeto nasceu da necessidade de gerar pequenos programas de cadastro utilizando sql onde automaticamente fossem geradas os formulários e grids.
Como Banco de Dados utilizei o SQLite para mais fácil desenvolvimento, mas também já tenho outro teste funcionando em MySQL.
Mesmo inacabado ele já traz uma idéia das múltiplas possibilidades para facilitar o trabalho do programador.
Funciona assim:
1- Descrevemos em um arquivo a estrutura do banco de dados: tabelas, campos indices, chaves primárias, bem como o comportamento de cada campo.
2- As rotinas Rot_Form e Rot_Grid nos dão acesso a esse banco de dados, criando automaticamente os grids e formulários para entrada de dados
Se alguém achar útil gostaria da ajuda para gerar as chaves estrangeiras e a rotina de impressão, bem como a interligação de tabelas.
Também falta tornar a estrutura mais amigável e mais profissional.
Anexei um arquivo com um pequeno sistema de cadastro.
É necessário utilizar HMG 3.1.4 ou HMG 3.1.5 (test) com a alteração indicada por Pablo César em
http://hmgforum.com/viewtopic.php?p=28108#p28108
Este trabalho foi escrito inicialmente com comentários e variáveis em português, tentei traduzir para o inglês utilizando o google translate, desculpem se não ficou muito bom.
Espero que este primeiro trabalho para o forum seja de alguma utilidade.
Críticas são bem vindas.
Google Translate:
They say the computer nothing is created, everything is copied, so inspiring me ideas of S. Rathinagiri, Dr Claudio Soto and others started this project was born from the need to create small programs using sql where records were automatically generated forms and grids.
As I used the Database SQLite for easier development, but now I have another test running on MySQL.
Even unfinished it already has an idea of the many possibilities to facilitate the work of the programmer.
It works like this:
1 - Describe in a file structure of the database: tables, fields, indexes, primary keys, and the behavior of each field.
2 - Routines Rot_Form and Rot_Grid give us access to that database, by automatically creating grids and forms for data entry
If anyone would like help find it useful to generate foreign keys and printing routine, as well as the interconnection of tables.
Also missing to make the structure more friendly and more professional.
I have attached a file with a small registration system.
You must use HMG 3.1.4 or HMG 3.1.5 (test) with the changes indicated by Pablo Caesar in
http://hmgforum.com/viewtopic.php?p=28108#p28108
This work was originally written with comments and variables in Portuguese, I tried to translate into English using google translate, sorry it was not very good.
I hope this first work for the forum is of some use.
Reviews are welcome.
[u]Moderator Notes[/u] (Pablo César) wrote:Topic moved from HMG Unicode version.
Please also note, probably will exist a new section of "Databases" which can included all regarding ALL kind of databases in one section.