How to define an array of strings in eel? >> Hall of Fame >> FORUM lowesmall.shop
FORUM lowesmall.shop

FORUM lowesmall.shop



SearchSearch   Users   Registration   Entrance
Today: 03.08.2025 - 14:58:10
Pages:  1  

How to define an array of strings in eel?

Advertising


AuthorMessage

hellrotvic

main user




Statistics:
Messages: 296
Registration: 06.29.2003

Hello! :) How can I create an array of strings in eel? for example array = ["dog", "cat", "mouse"] If then I call array[0] will it return "dog"?

---------------------
Message # 1 27.12.24 - 02:55:26
RE: How to define an array of strings in eel?

kapolani

main user




Statistics:
Messages: 76
Registration: 03.01.2002

eel / jsfx do not support arrays as such. (<<= It does now, see below) Just use the 1023 string slots available, accessed using a simple index Code:

---------------------
Message # 2 27.12.24 - 03:02:53
RE: How to define an array of strings in eel?

marc1119

main user




Statistics:
Messages: 6,680
Registration: 11.08.2003

Thanks DarkStar! Isn't there a faster way of doing this? If I want to save 100 strings, do I have to type 100 times strcpy etc?! I want to store [a,b,c,d,e,f,g..] in position 1,2,3,4,5,6,7.. of an array and then do something like: i=1 while(i < array size) (do stuff i = i+1; ); Call them one by one and do things on them

---------------------
Message # 3 27.12.24 - 03:08:29
RE: How to define an array of strings in eel?

MCoupeMike

main user




Statistics:
Messages: 424
Registration: 12.17.2002

Just use Lua... ;)

---------------------
MCoupeMike - AIM: MCoupeMike2K - 368S/8 '00 Blown M Coupe '00 323Ci '98 Z3 2.8
Message # 4 27.12.24 - 03:19:27
RE: How to define an array of strings in eel?

realw5

main user




Statistics:
Messages: 160
Registration: 06.26.2003

Does that means that there is not a simple way?

---------------------
Message # 5 27.12.24 - 03:28:41
RE: How to define an array of strings in eel?

EclipsorGreen

main user




Statistics:
Messages: 277
Registration: 04.22.2003

If the strings are static, you can do this (in REAPER 5.28+): Code:

---------------------
Message # 6 27.12.24 - 03:40:17
RE: How to define an array of strings in eel?

egreaves20

main user




Statistics:
Messages: 787
Registration: 04.06.2003

Thanks! Going to try now! :) Edit: Works! Thank you! :)

---------------------
Message # 7 27.12.24 - 03:50:02
RE: How to define an array of strings in eel?
10.3.9 PANTHER WON\'T RUN LE 6.4? : Previous topicNext topic: Template for Novation X-station in PT M-Powered 7
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants