serial input


Author Message
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 11:05am 09 Jun 2025      

maybe I am not up to date on Pico MMBasic, but it looks like you are trying to get 256 charcaters... the maximum in a string is 255. Maybe that is some obscure "gotcha"

try something like:

b$=Input$(Min(10,Loc(#2)),#2)

to grab however many characters are available or just 10, whichever is the lower

h
Edited 2025-06-09 21:09 by CaptainBoing