String Input

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

String Input

Post by MrVertigo »

With a program written in BASIC that requires a string input from the user, is it possible not to have the quotation marks at the cursor?
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: String Input

Post by dr beep »

On the ZX Spectrum you can use INPUT LINE A$
On a ZX81 you need to use INKEY$ and add the pressed key to a string, display the result and continue until Newline is pressed.
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Re: String Input

Post by MrVertigo »

Ah, brilliant! Thanks.
Post Reply