PicoMite V6.00.02 release candidates - all versions


Author Message
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 558
Posted: 03:46pm 16 Apr 2025      


> option list
PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.02RC15
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION SYSTEM I2C GP20,GP21
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION CPUSPEED (KHz) 252000
OPTION RESOLUTION 640x480
OPTION SDCARD GP22, GP26, GP27, GP28
OPTION AUDIO GP10,GP11', ON PWM CHANNEL 5
OPTION RTC AUTO ENABLE
OPTION MODBUFF ENABLE  1024
OPTION PLATFORM HDMIUSB
> list
arg$=MM.CMDLINE$
Print "cmdline   : ";arg$
mytest(arg$)
End
Sub mytest(arg1$)
 Print "mytest sub: ";arg1$
End Sub
> run ,"cachedArg"
cmdline   : cachedArg
mytest sub: cachedArg
> edit                    --> EXIT with F2 RUN  
cmdline   : cachedArg
mytest sub: cachedArg     --> cmdline from history! This behaviour is good for testing!
> mytest "newArg"
mytest sub: newArg
> mytest TestError
Error : Incompatible type: TestError
> mytest "Test2"
[5] Sub mytest(arg1$)
Error : ARG1 Local variable already declared
> clear                   --> Only this helps, or RUN. But if in the LIBRARY ...
                             Catching errors is necessary, how?
> mytest "Test2"
mytest sub: Test2
>


Is this behaviour normal? Shouldn't the program continue to run anyway if it's called correctly?

Matthias
Edited 2025-04-17 01:47 by homa