![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
please see the code below and attached ATMN called: HyphenBecomesForwardSlashWith$Date$.atmn This was broken in V601 and earlier and is still broken in V610 beta. The concatenation of the $Date$ in line 9 Causes the hyphen that had been placed in the clipboard to be changed to a forward slash. I know this can be mitigated with the substring, but that is much less natural than a simple variable assignment. =================== 1 Delay: (200 ms) 2 Comment: =================== 3 Comment: =================== 4 Comment: =================== 5 Variable Operation : 1 To $Clipboard$ 6 Variable Operation : -1$Clipboard$ To $Clipboard$ 7 Message Box: "$Clipboard$" 8 Comment: =================== 9 Variable Operation : $Date$***$Clipboard$ To $Clipboard$ 10 Message Box: "$Clipboard$" |
| |||
|
Hello Phil, This behavior of the ”Date” variable is because it will understand the format which is being selected by default from the options available in the System Variables list menu. Please follow below mentioned instructions to get hyphen (-) not converted in slash (/): 1. In “Task Editor” window click on Variable Tab. 2. Click on “Show System Variables”. 3. Select “Date”, moves to the right hand side of the window and click on “…”. 4. This will open “Select Date format” window. 5. Select the option of “yyyy-mm-dd” and click on ok. 6.Run the task. You will notice that the hyphen is not getting converted to slash. In case you would not like to carry our changes in the “Date” format and add hyphen to the variable, please assign the value of “Date” variable to any Local Variable of value type. Now you can use this local variable to add Hyphen using Variable Operation command in your task. We have created a sample task for your ready reference, please save the task at following path My Documents\Automation Anywhere\Automation Anywhere\My Tasks. |
| |||
|
this is a most discouraging response. why should I have to go to any special trouble to have a simple concatenation? the process of concatenating a date field to a variable should not change the content of other parts of the variable. please escalate. thanks Phil |
![]() |
| Thread Tools | |
| Display Modes | |
| |