Type Mismatch
-
- Posts: 9
- Joined: Mon Dec 20, 2004 12:33 pm
Type Mismatch
I am trying to compare a variable to the current hour and see if the variable is <= to it. However, I cannot force the variable type to become a numeric and get a "Type Mismatch" error whatever I try.I have set the variable, loaded a value from a registry parameter that is numeric, setup the variable in basic as a byte field and used it - but nothing works!I am sure this is simple as I have have used numbers at other times, but I don't know how to get this variable to act as a numeric variable.
Type Mismatch
Can you send the task and log file with the error message?
This works, maybe you made some errors.
This works, maybe you made some errors.
Type Mismatch
also see this example
;*******************************
;* RoboTask Task file &n bsp;*
;* Do not edit in text editor! *
;*******************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|800420481
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task236"
Hide=INTEGER|0
ID=INTEGER|1630047874
Name=STRING|"Usage ""If than"""
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_INPUTBOX"
Enabled=INTEGER|-1
Name=STRING|"Input Box"
Params=FOLDER
[Actions\Action1\Params]
default=STRING|"-1"
prompt=STRING|"qqq"
variable=STRING|"QQQ"
[Actions\Action2]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action2\Params]
case=STRING|"0"
operator=STRING|"2"
type=STRING|"1"
value1=STRING|"{qqq}"
value2=STRING|"10"
[Actions\Action3]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""More than 10"""
Params=FOLDER
[Actions\Action3\Params]
icon=STRING|"1"
msg0=STRING|"More than 10"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action4]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"
[Actions\Action5]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""less than 10"""
Params=FOLDER
[Actions\Action5\Params]
icon=STRING|"3"
msg0=STRING|"less than 10"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action6]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
;*******************************
;* RoboTask Task file &n bsp;*
;* Do not edit in text editor! *
;*******************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|800420481
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task236"
Hide=INTEGER|0
ID=INTEGER|1630047874
Name=STRING|"Usage ""If than"""
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_INPUTBOX"
Enabled=INTEGER|-1
Name=STRING|"Input Box"
Params=FOLDER
[Actions\Action1\Params]
default=STRING|"-1"
prompt=STRING|"qqq"
variable=STRING|"QQQ"
[Actions\Action2]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action2\Params]
case=STRING|"0"
operator=STRING|"2"
type=STRING|"1"
value1=STRING|"{qqq}"
value2=STRING|"10"
[Actions\Action3]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""More than 10"""
Params=FOLDER
[Actions\Action3\Params]
icon=STRING|"1"
msg0=STRING|"More than 10"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action4]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"
[Actions\Action5]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""less than 10"""
Params=FOLDER
[Actions\Action5\Params]
icon=STRING|"3"
msg0=STRING|"less than 10"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action6]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"