Jump to content
UBot Underground

Recommended Posts

Is there a way to set constants by name in a list or table like with normal coding? Essentually...

 

UI Drop Down

Example1

Example2

Example3 

Example100

 

Variable Stored as tempVar

 

Pull list

 

Example1 = testing

Example2 = sample

Example3 = dog

Example100 = cat

 

Display value from list(tempVar)

 

 

Link to post
Share on other sites

You can assign anything that the .txt file would support. You can't store an image in a text file, normally... although there could be workarounds to that.

 

But to store data like Name - Value pairs as you wish, it is perfectly fit.

 

You might want to use a .csv format instead of .txt, to separate the two values of the pair on each line of text, with a comma - that way being able to load all the data at once into a UBS table...

 

Hope this helps.

Link to post
Share on other sites
  • 2 weeks later...

If you have an aversion to text files, or if you find you would need numerous text files, you could use the sqlite plugin and just create a database to pull pre-defined constants from.  Within an sqlite db, you can create multiple tables instead of having multiple text files.

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