Recent

Author Topic: lazarus + firebird - como gravar dados  (Read 8455 times)

Carlos

  • Guest
lazarus + firebird - como gravar dados
« on: June 21, 2006, 08:13:38 pm »
Oi, me chamo Carlos, sou de São Paulo e estou com problemas para trabalhar com lazarus + firebird, eu consigo fazer a conecção do banco de dados com a aplicação, usando os componente nativos do lazarus, na aba SQLDB, desse modo eu enxergo os registros gravados, navego por eles, deleto, faço inserção de novos registros, tudo normal, mas quando eu fecho e abro o programa os registros que deletei estão lá ainda e os que inseri sumiram, estou usando o metodo sqlquery1.applyupdates, como fazia no delphi, mas não consigo o resultado esperado, alguém sabe como fazer para que as mudanças ocorram permanentemente no banco de dados, de modo com que eu faça as mudanças, as deleções, inserções, alterações, feche o programa e abra-o novamente e as mudanças feitas continuem lá ?

Obrigado

Lord_ZealoN

  • Full Member
  • ***
  • Posts: 141
    • http://lordzealon.com
RE: lazarus + firebird - como gravar dados
« Reply #1 on: June 21, 2006, 09:16:03 pm »
If you can speak english will be more easy to us understand you and probably you will be get more responses.

Thanks

Anonymous

  • Guest
RE: lazarus + firebird - como gravar dados
« Reply #2 on: June 21, 2006, 09:34:07 pm »
Hi, my name is Carlos, i am from São Paulo and i have problems with lazarus + firebird, i can make a connection between the database and the application, i am using components of lazarus(SQLDB), i can see the registers, i can move in the registers, i can make insertions, deletes too....
but when a close the program and open again, the registers are gone, they are not in the table...
i am using the method:
sqlquery1.applyupdates(like i make in delphi) , but it not work...
how i make to the database make updated when i insert a new record in the table ?
thanks... Carlos

P.S.: sorry for my English...

Anonymous

  • Guest
RE: lazarus + firebird - como gravar dados
« Reply #3 on: June 22, 2006, 12:55:52 am »
I think this is a double post.  Anyway, you have 'commit' immediately after the applyupdates.
 That would be 'tibconnection1.commit'
Please see examples in the sqldb folder.

John

 

TinyPortal © 2005-2018