Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
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: 3150 |
> 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: 9129 |
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: 3150 |
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 |
||||
Print this page |