Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How create dbf file? #95

Closed
EscApp2 opened this issue Nov 23, 2020 · 4 comments
Closed

How create dbf file? #95

EscApp2 opened this issue Nov 23, 2020 · 4 comments

Comments

@EscApp2
Copy link

EscApp2 commented Nov 23, 2020

I want to create a file and write information in dbf format to it. Any example?

@gam6itko
Copy link
Collaborator

gam6itko commented Nov 24, 2020

@EscApp2 Unfortunately, this functionality is not yet available. What type of file do you want to create? Maybe I can implement this in a short time

@gam6itko
Copy link
Collaborator

gam6itko commented Dec 9, 2020

WritableTable has create method. But I don't think it works well for different versions. In future versions we will add a more stable creator.

@darkatrium
Copy link

@gam6itko. Can you implement method for create new DBASE III file format.
create method in WritableTable really not work.

in 141 string
$column = new DBaseColumn($field[0], $field[1], 0, @$field[2], @$field[3], 0, 0, 0, 0, 0, 0, $i, $recordByteLength); but this conflicts from constructor in DBaseColumn class

public function __construct( string $rawName, string $type, int $memAddress, int $length, int $decimalCount, $reserved1, int $workAreaID, $reserved2, **bool** $setFields, $reserved3, **bool** $indexed, int $colIndex, ?int $bytePos = null )

@gam6itko
Copy link
Collaborator

gam6itko commented Mar 21, 2021

You can do it since v2.0.0. https://github.com/luads/php-xbase#creating-table

I would be glad to receive any feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants