AnsweredAssumed Answered

vrf vs \

Question asked by VRFuser on Nov 12, 2003
> Is there any difference between using one "" or using two "\" in drive
paths.

In a string constant, the backslash is an escape character. To get a real
backslash, you have to use two of them. "c:\My Files" is actually "c:My
Files" after it's parsed. OTOH, if you're using a control input for a file
name, you only feed one backslash in because it's not a string literal. IOW:

cBS = intToChar(92);
path = "c:" + cBS + "My Files";

is exactly equal to:

"c:\My Files"
-SHAWN-


---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes