contact  |  about  |  sitemap

...just one more
Last Post 22 Mar 2009 11:11 PM by vapoureyes. 5 Replies.
Sort:
PrevPrev NextNext
Author Messages
vapoureyes

--
19 Mar 2009 01:41 PM
......forgot to add this request to my previous ones.

At the moment when creating a new variable that references others, there is only an option to select one from the drop down box. There are many times mutiple variables need to be concatenated (example file paths). Presently (unless I'm wrong) the only way to input these is to type them in, possibly resulting in syntax errors.
b126

--
19 Mar 2009 09:27 PM
Hmmm, there is a workaround I think.

What I have discovered which is great is that you can concatenate a manual string with one or more variable quickly.

For example if you want to open a file which filename is contained in a variable [fileName] and the path is in variable [filePath], you can open this file simply without having to use the concatenate action before.

Writing the following : "[filePath][fileName]" will automatically concatenate the two variable.

You can also write "c:\tempfolder\[fileName]"
vapoureyes

--
20 Mar 2009 07:56 AM

Writing the following : "[filePath][fileName]" will automatically concatenate the two variable.


If I understand you correctly, this is presently the way I do it as well. However it requires that all variables other than the first (as only one is selectable) needs to be input manually, consequently allowing for possible syntax errors.
b126

--
20 Mar 2009 03:16 PM
You are true.

But I always say to myself that this is not a programming language, so we can not have so much flexibility
Support Team

--
22 Mar 2009 08:38 PM
To concat strings and place the result in a new variable, you can use the Add to Variable action. (Use the Set Variable action first to assign an empty value to the var if necessary). In the Property box, you can drop down and choose the variables you want to concat. Then, you can use the new variable containing the concatted strings in further actions.

That is the "nice" way of doing it and this will not allow typos (as vapoureyes suggest).

The "quick" way to concat strings will only work with properties that may contain free text. In any Djuggler property that may contain free text you can use a existing variable name between square brackets. This will be replaced by the content of the variable. So, "[ScriptPath]myfile.txt" would translate into the literal content of ScriptPath (c:\scripts\ for example) plus "myfile.txt" giving "c:\scripts\myfile.txt". This shortcut avoids including a lot of Add to Var actions in a script.

If you can't fill in free text in a property, use the Add to Variable action.

Regards,
Support Team
vapoureyes

--
22 Mar 2009 11:11 PM
...thanks for the reply Support Team.

I almost exclusively use the 'free text' method to concatenate a mixture of variables and text as it is so much quicker and simpler than the 'add variable' method. Unfortunately this is also the method where typos can possibly occur when manually entering the variable names.

It would be nice if there was a some kind of + and - interface option to add more than the one variable that can be initiated with the drop down menu via the 'free text' method. As a result it would also be much quicker than text entry, especially for long concatenated strings.


Quick Reply
toggle
  Username:
Subject:
Body:
Security Code:
Enter the code shown above:

Submit

Powered by Active Forums

Forum participation and optional registration

You don't need to be registered to partcipate in the Djuggler forums, however if you want to subscribe to email notifications you need to register. You can also subscribe to the forum RSS feed.