Wolters Posted August 21, 2010 Report Share Posted August 21, 2010 I have copied the Joseph Weinpert's example about the Replace Substring command from his "Macro Express Explained", page 202 in which he explains how to use the Replace Substring command to "prepend" text to a string variable. In the example he has the string "quick brown fox" stored in T1 then uses this command in order to add the word "The" in front of the string "quick brown fox". But when I use the "Replace %T1% with "The %T1%" in %T1%", nothing happens!!! What have I missed??? Quote Link to comment Share on other sites More sharing options...
rberq Posted August 21, 2010 Report Share Posted August 21, 2010 Did you code it like this? Quote Link to comment Share on other sites More sharing options...
Wolters Posted August 21, 2010 Author Report Share Posted August 21, 2010 Exactly!!! And the line before I have then set variable T1 to "quick brown fox", just as in the example!!! This is so strange! When I step through with the variable window open, nothing happens when it comes to the Replace Substring line! Quote Link to comment Share on other sites More sharing options...
rberq Posted August 21, 2010 Report Share Posted August 21, 2010 The line highlighted by the debugger is the one about to be executed, not the one that was last executed. So you wouldn't see the variable change until the subsequent line is highlighted. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.