Increment variable illegal name

Discuss RoboTask here
Post Reply
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Increment variable illegal name

Post by marcolobaido »

Hi, I want to increment the variable NUMERO_RIGA_ANT_B_A.
I use increment variable, without { } but i read that it's not an integer value.
I tried the same task in another PC and it works perfectly

Code: Select all

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task10"
Hide=INTEGER|0
ID=INTEGER|-589638172
LogOnAsUser=INTEGER|1
Name=STRING|"Create global variable ""NUMERO_RIGA_ANT_B_A"" with value ""24""..."
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create global variable ""NUMERO_RIGA_ANT_B_A"" with value ""24"""
Params=FOLDER

[Actions\Action1\Params]
expand=STRING|"1"
varkind=STRING|"0"
varname=STRING|"NUMERO_RIGA_ANT_B_A"
varvalue=STRING|"24"

[Actions\Action2]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""{NUMERO_RIGA_ANT_B_A}"""
Params=FOLDER

[Actions\Action2\Params]
icon=STRING|"1"
msg0=STRING|"{NUMERO_RIGA_ANT_B_A}"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"

[Actions\Action3]
ActionID=STRING|"A_VARIABLES_INCREMENT"
Enabled=INTEGER|-1
Name=STRING|"Increment variable ""NUMERO_RIGA_ANT_B_A"""
Params=FOLDER

[Actions\Action3\Params]
incement=STRING|"36"
vaiable=STRING|"NUMERO_RIGA_ANT_B_A"

[Actions\Action4]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""{NUMERO_RIGA_ANT_B_A}"""
Params=FOLDER

[Actions\Action4\Params]
icon=STRING|"1"
msg0=STRING|"{NUMERO_RIGA_ANT_B_A}"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"
Attachments
Cattura.PNG
Cattura.PNG (62.08 KiB) Viewed 12382 times
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Increment variable illegal name

Post by Oleg »

Look at the step #3.
Variable name contains the symbol with code 1F in its name. For some reason, I don't know why...
This symbol is non-printable, so you can't see it in the task editor.
Enter the correct name or copy it from 1-st step.

See my screenshots of text editor of your task. Also I saw it in HEX editor. The name of variable contains superfluous symbol
superfluous.png
superfluous.png (23.24 KiB) Viewed 12369 times
Oleg Yershov
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Increment variable illegal name

Post by Oleg »

also see this in your post
Attachments
superfluous1.png
superfluous1.png (14.81 KiB) Viewed 12369 times
Oleg Yershov
Post Reply