alphagon 0 Posted October 13, 2010 Report Share Posted October 13, 2010 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. Quote Link to post Share on other sites
alphagon 0 Posted October 13, 2010 Author Report Share Posted October 13, 2010 "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. Quote Link to post Share on other sites
Praney Behl 314 Posted October 13, 2010 Report Share Posted October 13, 2010 I have never tried that, as they say: " Curiousity is the mother of an invention" I think I'll try that. Praney Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.