cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Choose Language Hide Translation Bar
qspringleaf
Level III

New Create Column with filling fixed value

Kindly help to suggest how to New Create Column with filling fixed value, thanks a lot. table I only have one column called "name" Table II new create two columns and fill in fixed value.

qspringleaf_0-1595944106757.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: New Create Column with filling fixed value

names default to here(1);
dt=current data table();
dt << new column( "c1", character, set each value("aaaaa"));

The above is the easiest way to fill a column

Jim

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: New Create Column with filling fixed value

Create the new column.
Type in the value you want into the first row
Right click on the cell and select Fill==>To End of Table
Jim
qspringleaf
Level III

Re: New Create Column with filling fixed value

how to use script to auto create an column and fill in, this table only list a simple one, but some times I need create >10 column with fixed value, thanks a lot.
txnelson
Super User

Re: New Create Column with filling fixed value

names default to here(1);
dt=current data table();
dt << new column( "c1", character, set each value("aaaaa"));

The above is the easiest way to fill a column

Jim
qspringleaf
Level III

Re: New Create Column with filling fixed value

so thankful, it works well.