Variable name changing with no input or assignment?

Project was working fine, randomly started occurring.

Setting variable Filepath as a string with a default value of “C:\Users\XXXX\Documents\XXXX”, when the program runs the same value is being changed to “C:\Users\XXXX\Documents\XXXX”. When I try to assign a different value, an extra \ is added and breaking the program.

Anyone experienced this before or have a solution?

Hi @Stormkrieg
i haven’t faced this issue.
but while trying to copy file path from output, it will copy will double slash automatically.
File path try to pass with “C:\Users\XXXX\Documents\XXXX”

Hi @Stormkrieg

I haven’t seen this scenario. I was working on a similar case yesterday where I hard coded a file path to test the code. It worked fine for me. The additional slash is usually added during run time to programmatically represent the slash so that it knows the string contains a slash. That doesnt do any harm to your code… However dont hard code the string with double slash…

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.