-
Notifications
You must be signed in to change notification settings - Fork 34
New empty lines added to .frm file after import then export #22
Comments
Ok, something I have never noticed before, may have had it happen but never noticed really. This can be problematic for this situation though, maybe we could use some of the Like the example here, a straight
No, that's not going to work very well as you'd need to go through all the files 🤔 I'll come back on this |
Argh, I must has glossed over that part at some point and left it out. Worth a try. |
Oh, actually I withdraw that comment. It is still there VBA-IDE-Code-Export/modImportExport.bas Line 276 in 6eedda7
|
But yes, maybe there is a hack using CodeModule functions that we could conjure up to solve this problem. |
Yeah, it's going to be some ugly I think the thing with this is that in the most part it's a straight import export with forms, why change it gah! Annoying!! We have to do a whole new thing, to get around an annoying thing, thanks Microsoft |
Yes. In the mean time, it can be fixed using a text editor. I usually try to check the |
Thoughts about implementation: This could be part of a grander "formatting" code which also removes trailing whitespace (this would be quite useful). Edit: May be useful to look at VBADeveloper's formatting code for inspiration. |
We hit this bug in the Rubberduck project a while back. You may want to browse our source to see how we handled it. If you have trouble finding it, let me know and I'll lend a hand. |
Hi @rubberduck203 thanks for taking a look, @mattpalermo I'll let you take a look at this one if you know what needs doing?? |
Thankyou @rubberduck203 for this. I'll definitely have a look. |
Not sure if it's still relevant, but this is the relevant code in Rubberduck: Note that this creates another problem - member attributes get wiped out, since the module isn't really imported, but re-written. You'll need another mechanism in place to avoid losing the member attributes (we've fixed that as well in Rubberduck, but that's pretty involved). |
I am finding that a new line is added after the
Attribute
header each time I do a Import then Export cycle. I view the .frm file in a text editor and watch the file grow as I import then export over and over. Does anyone else suffer from this?The text was updated successfully, but these errors were encountered: