Hello Everyone,

I am trying to add data to an existing .tab file in MapInfo. I know that it 
isn't possible to write directly to the file so I have been trying to modify 
tab2tab to copy the base file and add the new field and features that I need.

I wait until tab2tab.cpp has copied the existing fields information from the 
base file and then I add a new field. 

The new field gets created but then when tab2tab trys to copy the 
features/objects from the base file to the new file the program crashes with 
the following message:

ERROR 7: Assertion `poDATFile->GetFieldType(iField) == TABFInteger && iField ==
0' failed
in file `mitab_feature.cpp', line 489

I think the problem is that I need to increase the number of fields the program 
sees when I create the new one.

I would be grateful if someone could tell me where I am going wrong or make any 
suggestions as to what I should try to get around this problem.

Many thanks,

Anthony



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/mitab/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/mitab/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to