Jump to content
UBot Underground

Using variables when opening files?


Recommended Posts

This is what I am trying to do:

 

I have 3 files: file1.cvs, file2.cvs and file3.cvs.

I want to choose from ubot which one to open with a variable.

 

I tried it with text box and list box but it didn't work.

I wanted it this way: If I type 2 into the text box then it should open the file2.cvs

 

My variable looked like this: file{1}.cvs ({1} being my text box info)

 

What did I do wrong?

Link to post
Share on other sites

Well I will need more information, but for starters, did you set up an if/then statement with an evaluate command?

 

If #my variable = 1 THEN create table from file (C:\file1.csv) etc.

 

Keep in mind you can't open a csv file in UBot to physically view it so you need to either read from it, set it to a table, add it to a list, etc.

 

I hope that helps.

 

John

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