Jump to content
Sign in to follow this  
jon3de

array values from parameter

Recommended Posts

hi, 

How could I achieve something like that? :blush: I want to define my array values through a parameter. 

image.png.5e73f15e4216e71d86ea6b7b572ca301.png

Share this post


Link to post
Share on other sites

@jon3de You have Bunch of those examples  in 'use' inside package of "Five elements Elf " + many other with arrays ..
mathdeep.vfl
arraydeep.vfl
arithmetic.vfl

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

Depending on if you want to keep the quotes or not, you can do something like this:

s[]@array = split ( replace ( chs("array"), "\"", "" ), "," );

or:

s[]@array = split ( chs("array"), "," );

 

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×