Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Array Element wont concatenate with String
Topic Summary: Array Element wont concatenate with String when writing to a file
Created On: 11/11/2016 06:45 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 11/11/2016 06:45 AM
User is offline View Users Profile Print this message

Author Icon
n00b (>6 posts)

Posts: 1
Joined: 11/11/2016

Having problem writing a line that contains a  string and an array element to a file. 

For example 

I have a 1 dimension Array “personInfo” of size 3. Defined as follows:




I loop through a list in a csv file that contains a list like this

Person Name,Person Address,Person Email,

Person 2 Name,Person 2 Address,Person 2 Email none,


This structure never changes. As such I assign the 1st element of the list to personInfo(1) which is the person`s name, the second to personInfo(2) which is the person`s address, etc…

I do this through a “count” variable that resets every time the count is three…


The rest of the code decides if the person has an email send an email, else write a letter to a file and print the file containing the letter. This where I have the problem…

The letter should look like this


Person name

Person address

Dear Person Name,

Lada lady lada with yada yada…..


With code…





Dear %personInfo(1)%,


Lada lady lada with yada yada…..


But when the code runs, the "Dear %personInfo(1)%" part of the letter does not come out right.

Instead of "Dear person Name,"

It comes out as 


Person Name,"

It introduces a new line for some reason I don’t understand.  the rest of the letter comes out ok. 

I have tried multiple solutions,

%"Dear" & personInfo(1)%, not work. I created an array and tried the Join() function, no coockie. I even tried writing the "Dear" in ASCII chartacter to see if it was a type mismatch to no avail.

I am clearly not seeing something, please help. 

Any thoughts or suggestion? 

I greatly appreciated.



 Category Survey
AutoMate 9 version: 9.0.5
Windows version: Windows Server 2012 R2

Edited: 11/11/2016 at 08:10 AM by RichardClaton
 11/13/2016 11:42 PM
User is offline View Users Profile Print this message

Author Icon
Gijsberth de Ruiter
Artisan (200-499)

Posts: 455
Joined: 03/30/2005

Can you tell me which action you are using the use the letter text?

 Category Survey

I am an A-Team Member
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 6686 on 11/01/2020 at 01:24 AM.
There are currently 2112 guests browsing this forum, which makes a total of 2112 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog