The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 backslash
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jmbeaujour

USA
5 Posts

Posted - 11/11/2013 :  2:08:20 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.6
Operating System: WinXP

Hi,
I am trying to build the path to a subfolder.
Everytime I concatenate a string with "\", the concatenation does not work properly. I have tried double backslash without success.
For example:
string str$="C:\data";
string path$= str$+"\"
There is no output
If I try
string path$= str$+"\\"
The output is then: "C:\data\\"
if

greg

USA
1379 Posts

Posted - 11/12/2013 :  3:43:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Your first example works:

string str$ = "C:\data";
string path$ = str$ + "\";

After executing those two lines, the value of path$ will be "C:\data\".
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000