Hi Julian,
I am having real problems with this method. I am trying to set the borderwidths of the borders of table cells. Sometimes I can get it to do it and other times not. I have analysed the code for the method and I think there are potentially some bugs with it.
As an example I was setting the borderwidth to 3 points. At first, the ASet procedure was reporting that the FParAttrVal array included the wpat_code and matched the value, even though the borderwidth had not previously been set.
I then tried ADel to delete the borderwidth value before setting it. This got me past the initial problem and into the else statement following if i>=0. I checked that the value of "card" was as desired (ie 60 twips) which it was and so this should have added the appropriate code and value to the array and triggered an update. However, it didn't and when it came to calling the wpDrawBorder procedure in WPRTEDefs the value had been reset to the default value of 10 twips. I have tried but found it difficult to follow what happens between ASet and wpDrawBorder.
Can you please let me know if this is a bug or if it would appear that I am doing something wrong.
Regards
Mark