The logic isn't very complicated if you could do this from the R:base side, rather than r:code. R:base could simply have a function that does a similar function to list, only it outputs it to a .dat file and truncates the lines accordingly to achieve the same result instantly. So it makes a variable for each column and puts it in a file.
output [table].dat list [table] - without comments, or any other information, truncate lines an insert set var v, remove any additional information other than the type definition. ..and you have a ready made file that defines a variable for each column within your table. You could do a similar thing to format a "list' to create a cursor which includes every column/inserts a null variable into each of these columns. I thouht about knocking up an application that does this, but haven't had the time (qEdit must suffice for now). > Someone should talk to Razzak about including an R:Base data dictionary feature and the features Shane is talking about into a new version of R:Code.

