Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Escaping/unescaping of table data - backslashes #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MarianAldenhoevel opened this issue Jan 23, 2019 · 5 comments
Closed

Escaping/unescaping of table data - backslashes #83

MarianAldenhoevel opened this issue Jan 23, 2019 · 5 comments

Comments

@MarianAldenhoevel
Copy link

My Project includes a table that holds pathnames and one of those happens to look like "...db\test...".

When exporting this the backslash rightly gets escaped to a double backslash. But when importing the data back in the unescaping breaks it by reading the remaining "\t" as a tab and converting that.

I have added a very slightly cleverer unescape routine to my copy which fixes the problem for me.

Find attached VCS_Table.bas which calls VCS_EscapeString and VCS_UnescapeString respectively instead of the simple string replacement. And VCS_IE_Functions.bas which implements the pair near the bottom.

VBA is not my first language, so I do not claim any nice properties of this implementation other than that it works for me.

Thank you very much for your work, it has made developing with MS-Access much more bearable for me :-).

Marian

@MarianAldenhoevel
Copy link
Author

VCS_Escape.zip

@timabell
Copy link
Member

would you be able to turn this into a pull request? more likely to get included that way
glad you found it useful

@MarianAldenhoevel
Copy link
Author

I don't really know how to do that.

I will take this as an opportunity to learn, but it's rather low on my priority list at the moment.

@timabell
Copy link
Member

You can leave the issue open, it's a valid problem

@timabell timabell reopened this Jan 25, 2019
@timabell timabell changed the title Escaping/unescaping of table data Escaping/unescaping of table data - backslashes Jan 25, 2019
@timabell
Copy link
Member

fixed in #93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants