How permanently save a text written in an EditText and added in a ListBox?
As written in the title, how permanently save a text written in an EditText and added in a ListBox? (when I reopen the rollout, the text written before is present in the listbox)
Below is my example:
-----------------------------------------------------------------
rollout t "test" ( listbox l1 "" items:#() edittext ed1 "" button b "Insert Name in ListBox" button s "Save Text in Listbox" on b pressed do ( if txt != "" do ( l1.items = append l1.items (ed1.text as string) l1.selection = l1.items.count ed1.text = "" ) ) on s pressed do ( -- How save the text??? ) ) createdialog t
------------------------------------------------------------
Waiting for help, a greeting from
Michele
Question off topic:
how to write script code in discussions?
Comments
the classOf val you want is
the classOf val you want is array not integer or items
.. do val = execute val ; ..
--sleep helps ;)
Raphael Steves
Thanks Insanto. The link
Thanks Insanto. The link works and I have already done tests. I have added:
But dont work. I've been careful to the initial instructions. The problem is append word written EditText as array in items listbox...I can not understand where I am wrong...
? I checked the link and it
? I checked the link and it leads to the "Save/Load UIItem's values" article.
you just have to add the editText UI control to the cases (the Items's class) to make it work for your purpose
it prints the classes (of all UIItems of the supplied RO) when the RO is closed; to the listener
in case the link doesnt work for you heres the code:
Raphael Steves
Be a coincidence, but today I
Be a coincidence, but today I was looking at your great site congratulations ;)
And thank you for the answers that you gave me. Now check your link!
Very thanks Insanto!!! :) :)
http://insanto.3d.lc/index.ph
http://insanto.3d.lc/index.php/maxscript/87-saveload-uiitems-values
gl
[/code]
Raphael Steves