Jump to content
UBot Underground

Turning a list of items in a text field into separate variables


Recommended Posts

If you have a list that has been entered into a text field called #items and each is separated by a comma delimiter "," and you want to take each item and turn each of them into a separate variable like so: item#1 item#2 item#3 here is what you would do:

 

 

 

comment("turning items in a text field into seprate variables")

ui text box("Items:", #items)

add list to list(%listitems, $list from text(#items, ","), "Delete", "Global")

add list to table as row(&items, 0, 0, %listitems)

set(#item1, $table cell(&items, 0, 0), "Global")

set(#item2, $table cell(&items, 0, 1), "Global")

set(#item3, $table cell(&items, 0, 2), "Global")

comment("end")

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...