Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 13:00 22 Nov 2025 Privacy Policy
Jump to

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 States
Posts: 3481
Posted: 05:56pm 10 Jun 2023
Copy link to clipboard 
Print this post

> 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 Kingdom
Posts: 10636
Posted: 06:11pm 10 Jun 2023
Copy link to clipboard 
Print this post

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 States
Posts: 3481
Posted: 07:05pm 10 Jun 2023
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025