views:

244

answers:

3

How do I make an autoinc field in firebird with Zeos.

-Brad

A: 

you can use mru kind component. or a combobox with items filled.

sabri.arslan
I'm sorry, I had a type-o I wanted to say Autoinc instead of autocomplete. I've edited the post.
Brad
+4  A: 

It is explained in Firebird FAQ #29. See the bottom of that page.

Milan Babuškov
Didn't work, I had already tried that.. I might have done something wrong... I am using v7 alpha
Brad
What part did not work it should have.
Robert Love
@Brad: "Didn't work" is meaningless. If you want help, give specifics about what you tried and what exactly "didn't work" means. Otherwise, you're just wasting your (and our) time, which does no one any good.
Ken White
Sorry Ken, but the example did not work with zeos db 7. It does not autoinc. I get a SQL error, not sure what it was exactly, on a different computer, post the demo code I did when i get back to the other computer.
Brad
Went through everything again, I guess I had missed something.. not sure exactly what I did wrong but it works this time.
Brad
+1  A: 

I don't know what do you mean by "making an autoinc field in firebird with Zeos". The autoinc fields and a whole database structure are usually defined in SQL script that can be executed by a lot of tools. I have used Firebird 2.1 in my recent project (using FibPlus 6.9.9) and have written several posts about it, maybe the following will help:

Part 1 - Introduction

Part 4 - Autoincrement Fields

Serg