inserting whitespace between two variables

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
juicytuna
Posts: 2
Joined: Fri Mar 21, 2008 5:38 pm

inserting whitespace between two variables

Post by juicytuna » Fri Mar 21, 2008 5:49 pm

I'm reading the values for 'first name' {{!COL1}} and 'second name' {{!COL2}} from a csv file. I need to enter these two values into a 'full name' form input box.
How can I combine {{!COL1}} and {{!COL2}} so that they are separated by white space? I've tried;
{{!COL1}}+{{!COL2}},
{{!COL1}} {{!COL2}}

but to no avail. Can anyone help me out? Thanks.
User avatar
Tech Support
Posts: 4947
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: inserting whitespace between two variables

Post by Tech Support » Sat Mar 22, 2008 12:14 am

{{!COL1}}<SP>{{!COL2}}

When assigning values to the CONTENT parameter of any iMacro command all whitespaces in the text must be substituted by <SP> and all newlines must be substituted by <BR>.
juicytuna
Posts: 2
Joined: Fri Mar 21, 2008 5:38 pm

Re: inserting whitespace between two variables

Post by juicytuna » Sat Mar 22, 2008 10:34 pm

Thanks, that worked a treat!
Post Reply