Jump to content
UBot Underground

Table as Parameter?


Recommended Posts

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.

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