openmolecules.org

 
Home » DataWarrior » Functionality » number of visible rows into macro saving variable (It is possible to read the number of the visible rows into a macro variable?)
Re: number of visible rows into macro saving variable [message #2360 is a reply to message #2271] Fri, 20 December 2024 09:56 Go to previous messageGo to previous message
juliocoll is currently offline  juliocoll
Messages: 35
Registered: January 2023
Location: Madrid SPAIN
Member
In numerous attempts to automatically get a row number to be included into the dwar file name (to be saved inside a DW macro), I got the following "best behaviour":

<macro name="SaveRowCount">
<task name="defineVariable">
name=rowcount
</task>
<task name="showMessage">
message=$rowcount
</task>
<task name="saveFileAs">
fileName=E:\$rowcount.dwar
fileType=dwar
</task>
</macro>

The rowcount name was kindly provided by Norwid B as one of the defined dwar file properties. The showMessage confirms the new name of the file which is then saved on the included dir.......
However, everytime I need to type the rowcount value and give any dir address in the fileName. I would like those to be automatically included to avoid any mistakes !!!!

I tried alternatives to use getRowCount(Wink, PROPERTY_LINE_COUNT, lastRow, etc,.. No sucess.
Any ideas?

MERRY CHRISTMAS !
julio


Julio Coll
Profesor de Investigación. Emérito
Dpt.Biotecnología
CSIC-centro Nacional INIA, Madrid, SPAIN
Dr. Biologia Univ.Comp(UCM). Madrid, Spain
PHD. Biology Mass.Inst,Technol (MIT). Massachusetts, USA
orcid: 0000-0001-8496-3493
 
Read Message
Read Message
Read Message
Previous Topic: macro comments
Next Topic: Datawarrior Commandline Option to Use Template
Goto Forum:
  


Current Time: Fri Apr 04 07:43:44 CEST 2025

Total time taken to generate the page: 0.00681 seconds