Jump to content
UBot Underground

alphagon

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About alphagon

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi. Let's say I have an .ubot file named BASE that loads a .csv into a global variable named CSV (as table, of course). BASE includes other .ubot files, like BUILD. Now, BUILD has a function that would like to access directly the BASE's global variable CSV. Is this possible? I tried to access it directly like this: "$table cell &CSV #GLOBAL_INDEX 23", which fails. (I'm trying to avoid parameters, because, as far as I understood, parameters cannot be lists or table rows or whatever, and I should be using *lots* of them)
  2. "add list to table as column/row" - good. Suggestion: maybe something like "create list from table column/row"? (the inverse functions of the above) ...so we can pass an entire row as a list parameter to other subs.
  3. Hi! Is it possible to pass an entire &table as a parameter to another sub? Like: SUB: load_table &users_table = create table from file('file.txt') SET LOCAL #current_index = 0 LOOP cycles $table_total_rows RUN SUB: tablecell2list(&users_table, #current_index) INC #current_index SUB: tablecell2list #table = parameter // All parameters are treated as simple string-variables. LOOP cycles $table_total_rows // ... RETURN $smth Thank you.
×
×
  • Create New...