JCrane2 Posted September 9, 2005 Posted September 9, 2005 I just upgraded to v3.1.1.71 (beta) to see if this problem was fixed, but it still hasn't been fixed. I want to use Opt("ExpandVarStrings", 1), but when I do, the string "@@" doesn't escape to a single "@", it still evaluates to "@@". If I use a single "@", AutoIt tries to perform a substitution (working as designed). This is a huge bug if you are working with Email addresses.The following code illustrates this problem:ConsoleWrite("1. johnrc2@austin.rr.com" & @CRLF) ConsoleWrite("2. johnrc2@@austin.rr.com" & @CRLF) Opt("ExpandVarStrings", 1) ;0=don't expand, 1=do expand ConsoleWrite("3. johnrc2@austin.rr.com" & @CRLF) ConsoleWrite("4. johnrc2@@austin.rr.com" & @CRLF) Opt("ExpandVarStrings", 0) ;0=don't expand, 1=do expand ConsoleWrite("5. johnrc2@austin.rr.com" & @CRLF) ConsoleWrite("6. johnrc2@@austin.rr.com" & @CRLF)This is what gets written to the console. Unless I am doing something wrong, item #4 is incorrect. It should read: "johnrc2@austin.rr.com. (single "@")1. johnrc2@austin.rr.com2. johnrc2@@austin.rr.com3. johnrc24. johnrc2@@austin.rr.com5. johnrc2@austin.rr.com6. johnrc2@@austin.rr.com
MHz Posted September 10, 2005 Posted September 10, 2005 1 = expand variables (when in this mode and you want to use a literal $ or @ then double it up: "This is a single dollar $$ sign".Looks like a bug to me.This works.Opt("ExpandVarStrings", 1) ConsoleWrite("3. johnrc2$austin.rr.com" & @CRLF) ConsoleWrite("4. johnrc2$$austin.rr.com" & @CRLF)This does not.Opt("ExpandVarStrings", 1) ConsoleWrite("3. johnrc2@austin.rr.com" & @CRLF) ConsoleWrite("4. johnrc2@@austin.rr.com" & @CRLF)
billym Posted September 15, 2005 Posted September 15, 2005 I have as well ran into this problem, does anyone have a solution. This is kinda being a pain in my rear, he he
seandisanti Posted September 15, 2005 Posted September 15, 2005 I have as well ran into this problem, does anyone have a solution. This is kinda being a pain in my rear, he he<{POST_SNAPBACK}>quick work around is to concatenate Chr(64) into your string...like:$addy = "yourname" & Chr(64) & "blah.com" ;returns "yourname@blah.com"
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now