![]() |
![]() |
We are currently migrating this forum over to our HelpSystems domain. Please post all new threads in our new HelpSystems Community Portal. |
![]() |
|
![]() |
AutoMate Discussion | ![]() |
help :
faq :
home
|
||
Latest News:
|
latest topics : statistics |
Topic Title: Operand /operator mismatch Topic Summary: Created On: 10/28/2014 10:44 AM Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Gijs Thank you, I had disabled those variables and didn't include them in the code attached. The script is working with those enabled. Appreciate your help. Laurie | ||||||||||
![]() |
||||||||||
In a task set to Find text in a file, getting Syntax Error: Script error: "(10538) Operand/operator type mismatch." at script line 2.
The Variables tab show the correct Value for the find text command, but the Get subtext command is where the error occurs. See code. The code for Get Sub Text was copied from a Sample script and changed to the variables in this script. Thank you for any help
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) |
||||||||||
|
||||||||||
![]() |
||||||||||
Hello Laurie,
Can you elaborate a bit more? What step is the one that fails? You have a few Get Sub Text actions.
------------------------- Mary Manzano | Technical Consultant AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
I will test later, but just from your task, it looks like you store a 'text' piece that is found in your index variables, not the index position. To have the position in the variable, it shoud look like this:
RESULTVARIABLE="varname" If you open teh action in the task builder, you should be easily able to correct this.
------------------------- ![]() Edited: 10/29/2014 at 02:29 AM by Gijsberth de Ruiter |
||||||||||
|
||||||||||
![]() |
||||||||||
I changed the task to store the variable with first index rather than store the text. The script still fails at the Get Text task but there is no error now. The output just shows the step in Red, then ends the task.
The value for the variable is now a position number. The number of characters for the text between the two variables is correct. Laurie
|
||||||||||
|
||||||||||
![]() |
||||||||||
Laurie,
If I look at your task, you have result variables in teh getsubtext action that are not craeted. You need to create the variables first, e.g. roomnumber, attending, patient and freq. Maybe I missed one. Gijs
------------------------- ![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
Gijs
Thank you, I had disabled those variables and didn't include them in the code attached. The script is working with those enabled. Appreciate your help. Laurie
|
||||||||||
|
AutoMate Discussion
» AUTOMATE » AutoMate 7
»
Operand /operator mismatch
|
![]() |
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.