Jump to content
UBot Underground

List from Text Bug or We Need Advanced Feature


Recommended Posts

add list to list(%test, $list from text("1,2,3,,,,,,9,10,11", ","), "Delete", "Global")

This code is well used in creating lists from a csv files or from a text. I have a text that have empty variables. But when creating lists bot is not creating an empty item, it just skip that item. So now in the list i dont have correct number of variables.

 

In previous code, list will be with 6 items, instead of 11.

 

Please explain if it is bug or lack of function or i can do this somehow else?

Link to post
Share on other sites

use advanced and hit Don't delete

 

it's deleting duplicates

 

it would be best to normalize list and instead of blank put something like NULL to fill the void. and don't delete dups.

Link to post
Share on other sites

Yea dont delete is as well not working, but i have found a way to make it working, by adding an empty space. But still if the info is empty list should be created with all items and not missing half of them... Maybe they can fix that or make it work that way.

Link to post
Share on other sites

Ahhhh, this is the bigger problem than i was thinking it is.

 

I use save to file all variables, so i can later on load from this file and restore my variables, so some variables are empty and this is making my restoration wrong. So i save 100 variables and because of empty info i restore 60 and then this restored variables info is not in same order and i cant do anythign with it...

 

I use this to backup my bot inputs by saving ot file and then loading from file and using next list item to restore each variable info, and if variable info is not in same order as it was saved (which is not because of empty info is skiped) backup is not working.

 

EDIT:
 

add list to list(%test, $list from text("1 ,2 ,3 , , , , , ,9 ,10 ,11 ", ","), "Don\'t Delete", "Global")

Adding a blank space will create list with all variables info, but i have many checkboxes which use True or false and if i have blank space behind true, checkbox will not be checked. In other words it is not working... please help.

Link to post
Share on other sites

Ok i have found a way to bypass this problem, by setting all empty variables to for example "-". Then all variables will be saved. But problem is that by default all variables are empty if there is no input in the box. So is there a way to automatically set empty variables to "-".

 

I have try with SET command, but this commands need to be run and i want to set up default variables to "-".

 

Please give me ideas, i really cant believe that because of this issue i m not able to save my variable inputs in a file and then restore them by loading the file.

Link to post
Share on other sites

Yeah you can upgrade to dev and use "on load". to set variables. or put them in a button then "Load Settings" and set all of you settinngs. Or set them all first then they will be set first.

 

and then there is this

 

http://www.ubotstudio.com/forum/index.php?/topic/10747-get-onload-feature/

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...