T O P I C R E V I E W |
marasneo |
Posted - 04/30/2015 : 09:34:32 AM How can I increment each column Col? I want to multiply each value in each column by some factor - a variable taken from C script.
for (int aa=start_column; aa<liczba_kolumn; aa++ ){ double ss=50; string labtalk_wstawka_2; labtalk_wstawka_2.Format("Col(aa)=Col(aa)*%f;", ss); wksb.LT_execute(labtalk_wstawka_2); } |
1 L A T E S T R E P L I E S (Newest First) |
ZanHUNG |
Posted - 05/03/2015 : 11:25:13 PM doc -e D {script}: "If a worksheet is active, execute for all datasets (columns) in the active worksheet".
To multiply each value in each column of the active worksheet by some factor, say, 50, the LabTalk script is:
doc -e D {%C *= 50.0;};
See the following for details:
http://www.originlab.com/doc/LabTalk/ref/Document-cmd#-e_object_.7Bscript.7D.3B_Execute_the_given_script_for_all_objects |
|
|