|
Forum Index : Microcontroller and PC projects : On the Picomite, with EXECUTE, why am I getting Error: Unknown Command
| Author | Message | ||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3481 |
> option escape > ? "Pin(34)=";pin(34) Pin(34)= 1 > t$="? \qPin(34)=\q;pin(34);" > execute t$ Pin(34)= 1 Error : Unknown command > ?t$ ? "Pin(34)=";pin(34); If from the command line I enter: ? "Pin(34)=";pin(34) I get the expected result printed: "Pin(34)= 1" (because I have made pin 34 an output have set PIN(34)=1) But when I set a string to that command: t$="? \qPin(34)=\q;pin(34);" then EXECUTE t$ I get the expected output printed, but followed by "Error : Unknown command" PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10636 |
Execute isn't intended to be run from the command prompt. I'll block it in a future release |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3481 |
Ok. Was just using it to test, anyway. In a program, it works: > list Option escape SetPin 34,dout Pin(34)=1 t$="? \qPin(34)=\q;pin(34);" Execute t$ > run Pin(34)= 1 Edited 2023-06-11 05:07 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |