Hi,
Now yes, I would love to help "westoz". (
http://chdk.setepontos.com/index.php/topic,4367.0/topicseen.html) and refer him to the attached script. This script so far is running well.
But can I recommend the script, however, in good conscience? I do know that this nested IF error the user unknowingly mercilessly sits in the neck when he wants to change anything.
And when he uses a additional IF statement, he gets a parse error indicated in last row. But there is nothing what he has done wrong.
List of unknwon Error.
When you delete "endif" or the simple "rem - line" you became Pars Err last row.
Line 102 if x>0 or y>0 then
rem --- When you delete rem = Error ! if t>0 or w>0 then
Line 77 if D>=24 then D=D-24
endifLine 110 if (A-B)<0 then A=A+86400
endifLine 115 if D>=24 then D=D-24
endifLine 123 if D>=24 then D=D-24
endifLine 134 if D>=24 then D=D-24
endifLine 154 if D>=24 then D=D-24
endifLine 182 if get_propset=1 then get_prop 205 T
endifLine 183 if get_propset=2 then get_prop 206 T
endifLine 206 if get_propset=1 then get_prop 205 T
endifLine 207 if get_propset=2 then get_prop 206 T
endifThe script has parameters with german designations. That's not a problem. This script is running very well with the standard parameters.
So my question is, why the nested IF patch get no entry in CHDK?
Shall we let run new CHDK users now knowingly against the wall?
And ... please amends yet.
gehtnix