While writing some new code for a project modification I attempted:
this gives a syntax error
however this does not:
I quick test without the max command show they are the same size, and from what I understand are the same after the programme is compiled. is there any reason why the editor can not accept the max with the inc command, seems a little odd when both would read the same after compiling
here the code snipet as it currently stands
Code:
inc b32 max 60
however this does not:
Code:
let b32 = b32 + 1 max 60
here the code snipet as it currently stands
Code:
[color=Blue]do
gosub [/color][color=Black]scancol [/color][color=Green]'check for user input
[/color][color=Blue]if [/color][color=Purple]slct [/color][color=DarkCyan]= [/color][color=Navy]0 [/color][color=Blue]then [/color][color=Green]'shutter delay increase
[/color][color=Blue]let [/color][color=Purple]delay [/color][color=DarkCyan]= [/color][color=Purple]delay [/color][color=DarkCyan]+ [/color][color=Navy]1 [/color][color=DarkCyan]max [/color][color=Navy]60 [/color][color=Green]'allow a max of 60 sec
[/color][color=Blue]else if [/color][color=Purple]slct [/color][color=DarkCyan]= [/color][color=Navy]1 [/color][color=Blue]then [/color][color=Green]'shutter delay decrease
[/color][color=Blue]let [/color][color=Purple]delay [/color][color=DarkCyan]= [/color][color=Purple]delay [/color][color=DarkCyan]- [/color][color=Navy]1 [/color][color=DarkCyan]min [/color][color=Navy]1 [/color][color=Green]'allow min of 1 sec
[/color][color=Blue]else if [/color][color=Purple]slct [/color][color=DarkCyan]= [/color][color=Navy]3 [/color][color=Blue]then [/color][color=Green]'check for enable/disable of shutter timer
[/color][color=Blue]gosub [/color][color=Black]flagdelay
[/color][color=Blue]else if [/color][color=Purple]slct [/color][color=DarkCyan]= [/color][color=Navy]5 [/color][color=Blue]then [/color][color=Green]'check for accepting settings
[/color][color=Blue]exit
end if
pause [/color][color=Navy]50 [/color][color=Green]'debounce delay
[/color][color=Blue]loop[/color]