You are correct you cannot modify an existing .tab file using MITAB to my knowledge as it does not support simultaneous read/write access.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Simon Lau Sent: Tuesday, July 19, 2005 8:58 AM To: [email protected] Subject: Re: [mitab] mitab_c_set_pen Hi JP: I have tried...it does not work.....most probably we cannot directly modify an existing tab file.....instead, we need to copy the point (x,y) out of the original file and write them into another file, only when writing the features into the new file only we can use set_pen to set its features..... it would probably look like... 1. read dataset from original file 2. create second dataset (new file) 3. get the feature 4. do the set pen onto the feature 5. write the feature to another dataset (file) 6. destroy the feature go to the next feature from original file...repeat the same..... --- teapeng2k4 <[EMAIL PROTECTED]> wrote: > I encounter problem changing a feature's color, > which is in link type. > I follow the step such as below : > > 1) create System.IntPtr to connect to a .tab file. > 2) create another System.IntPtr to read the feature. > 3) after that, i do the set pen method by putting > the feature handler > as the parameter. However, after closing the > program, the pen is not > corrected. > > Is it i miss out some important steps such as saving > the changing? > Reading the content is not a problem, but when it > comes to set and > create, it fails. (i tried creating a new feature, > fails as well) > > thanks a million in advance... > > > > > > > > Yahoo! Groups Links > > > [EMAIL PROTECTED] > > > > > ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/mitab/ <*> 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/
