Hi i got a problem.. =P

Im doing some test programming using Delphi and the myODBC driver in windows 2000 and 
i get some strange stuff..

Example table in these examples
PICAB (table)
    ID    Counter int
    Namn    CHAR 100
    EPost    CHAR 100

Example 1.
Dont optimize column width and with an empty table..
Then i can start the program and it works fine tho when a get data from the table its 
allways like this
Namn - 'Eric Holmbom                                                                 ' 
and alot of spaces, it has the whole width of the column as an result.

Example 2
I now use optimize column width and with some data in the table
Now it all works fine too and i get the data out from the table as i want it. like
Namn - 'Eric Holmbom' and no spaces included..

Example 3
I now use optimize column width and with an empty table
Now i cant start the program i get an error saying.
'Invalid field size'

So whats the problem?? is it like this that u must have data in the table?? for it to 
work and cant start with empty one?

// Eric Holmbom

Reply via email to