Moderator: Mmiscool
T(1) = 112
T(2) = 23
T(3) = 854
T(4) = 12
etc...
Typically, the variable T being used as an array would be dimensioned beforehand to the number of variables being used, ie,
Dim T(10) if I were to have 10 different values for the array T().
Is this a possibility with esp8266basic? This ability would come in handy for a multitude of applications.
Thanks again!!!!
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com
As a suggestion, how about using the syntax used in Picaxe Basic :
LOOKUP offset,(data0,data1...dataN),variable
- Offset is a variable/constant which specifies which data# (0-N) to place in
Variable.
- Data are variables/constants.
- Variable receives the result (if any).
Function:
Lookup data specified by offset and store in variable (if in range)