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: Variable concatenation in function
Topic Summary: Stopped working in v11?
Created On: 11/09/2017 03:00 PM
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/09/2017 03:00 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

I have a line in one of my v10 tasks like looks functions like this:

%FileCount(parentFldr & "\" & subFldr)%

 

This does not work in v11. One of the things I noticed in v11 is the color highlighting, which is a nice addition.

However in v11, the only portion of that which is highlighted is: %FileCount(parentFldr & "\

 

everything else to the right isn't highlighted, which tells me v11 doesn't like that syntax style anymore. Was this change intentional and if so, what's the new syntax to accomplish that?

I know I could essentially just put both into a single variable like currentFldr = parentFldr & "\" & subFldr, and then just use %FileCount(currentFldr)% but I will have many tasks I will have to update and I'd rather not have to.



-------------------------
<html />
 11/09/2017 03:15 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

I think I figured this out. I changed it from:

%FileCount(parentFldr & "\" & subFldr)%

To:

%FileCount(parentFldr & '\' & subFldr)%



-------------------------
<html />
 11/09/2017 03:19 PM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hello James,

We appreciate the update.

-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1168 guests browsing this forum, which makes a total of 1168 users using this forum.

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

Sitemap Network Automation Software Blog