Using arrays as INPUT variables
Posted: Tue Feb 04, 2025 7:06 pm
Can you use arrays as an input variable?
The first code generates this error when compiling.
Error: INPUT unsupported for variable of given datatype (name, ARRAY)
This code compiles but just takes an extra step.
The first code generates this error when compiling.
Error: INPUT unsupported for variable of given datatype (name, ARRAY)
Code: Select all
DIM name$(10)
INPUT "What name will you go by? ",name$(1)
PRINT name$(1)
WAIT KEY RELEASE
Code: Select all
DIM name$(10)
INPUT "What name will you go by? ",plyName$
name$(1)=plyName$
PRINT name$(1)
WAIT KEY RELEASE