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

Skip to content

Fix escape character removal in Table Data Import #93

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

Merged

Conversation

rakusan2
Copy link

If we take the string "C:\\something\nothing.txt"
Pass it through the export

    Value = Replace(Value, "\", "\\")
    Value = Replace(Value, vbCrLf, "\n")
    Value = Replace(Value, vbCr, "\n")
    Value = Replace(Value, vbLf, "\n")
    Value = Replace(Value, vbTab, "\t")

We get "C:\\\\something\\nothing.txt"
Then pass it through the import

    Value = Replace(Value, "\t", vbTab)
    Value = Replace(Value, "\n", vbCrLf)
    Value = Replace(Value, "\\", "\")

We get

C:\\something\
othing.txt

This is what the VCS_RmEsc function is fixing

@timabell
Copy link
Member

Fixes #83

@timabell
Copy link
Member

Thanks for your contribution!

@timabell timabell merged commit ce0e8b5 into msaccess-vcs-integration:master Oct 30, 2019
This was referenced Oct 30, 2019
SaltyCybernaut pushed a commit to SaltyCybernaut/msaccess-vcs-integration that referenced this pull request Mar 30, 2020
…DataImportString

Fix escape character removal in Table Data Import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants