View Single Post
  #11  
Old October 3rd, 2018, 11:40 AM
randdevin randdevin is offline
Junior Community Member
 
Join Date: Jan 2012
Location: TX
Posts: 17
Default Re: Varying number of Rows and Colums

Think I got it working.
I added a simple If statement

Code:
var numColumns = (names.length < 6) ? 1 : 2;
for (var c = 1; c <= numColumns; c++)
if ( numColumns <= 1 ) 
    myTable.AddColumn(32000);
else
    myTable.AddColumn(16000);
Thanks Dan..
I will start modifying the format for the customers needs..
Reply With Quote