Lasso Soft Inc. > Home


AuthorRandy Phillips
LicensePublic Domain
Posted24 Jan 2006
Updated07 Nov 2008
More by this author...


This tag is useful for displaying database query results or arrays from left to right in a HTML table grid. Just populate an array from a record set, specify the number of cells needed in each table row and rp_grid does the rest.

Sample Usage

  -cell_count = 3,
  -border = 0,
  -width= 500,
  -cellpadding = 2,
  -cellspacing = 1,
  -tablestyle = 'mytablestyle',
  -cellstyle = 'mycellstyle',

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

size % #cell_count;
			local:'empty_cells' = #cell_count - #mod;
			local:'output' = (string);
			// begin building output here
			#output = '';
			if:(loop_count) % #cell_count == 0; 
			#output += '';
			if: #empty_cells != #cell_count;
				loop: #empty_cells; 
					#output += ''; 
			#output += '';
			#output += '
'; return: #output; /define_tag; ?>


No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft