Hello,
I am using JMP 12.2.0, and I worte a script to delet rows that contain "n", "I", "%" and "S.D" in all open data table.
I run the script, it works the first time, and when I reboot my computer the script stop working and give me an error message on wrong argument type.
"argument is wrong type{1} in access or evaluation of 'Contains' , Bad Argument( As Column( dt, "Run Date" ) ), Contains/*###*/(As Column( dt, "Run Date" ), "n")".
This is my script, would someone please help?
For( i = 1, i <= N Table(), i++,
dt= Data Table( i );
Column(dt, 1 ) << set name( "Run Date" );
Column( dt, 2 ) << set name( "Run Number" );
dt<<select where (Contains (as Column (dt, "Run Date"),"n")
| Contains ( as Column (dt, "Run Date"), "I")
| Contains ( as Column (dt, "Run Date"), "%")
| Contains ( asColumn ( dt,"Run Date"), "S.D."))<<Delete Rows();
dtname =dt<<get name;
y=2*nrow(dt);
If (contains (dtname, "STD") , for (a=2, a< y, a+=4,dt<<Add Rows(2, a)));
);