Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

[SUGGESTION] Make addField public (AddField) #4

Open
JamMika opened this issue Jan 28, 2022 · 0 comments
Open

[SUGGESTION] Make addField public (AddField) #4

JamMika opened this issue Jan 28, 2022 · 0 comments

Comments

@JamMika
Copy link

JamMika commented Jan 28, 2022

It is very useful to have AddField public for the case when you want to convert encoding like e.g.:

	for i := 0; i < len(inTbl.Fields()); i++ {
		fieldName := inTbl.Fields()[i].Name()
		fieldType := inTbl.Fields()[i].FieldType()
		length := inTbl.Fields()[i].Length()
		decimalPlaces := inTbl.Fields()[i].DecimalCount()
		outTbl.AddField(fieldName, fieldType, length, decimalPlaces)
	}

dbftable.go line: 149

func (dt *DbfTable) AddField(fieldName string, fieldType DbaseDataType, length byte, decimalPlaces uint8) (err error)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant