User Tools

Site Tools


add_incomingvalue_last_lineofscript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
add_incomingvalue_last_lineofscript [2025/05/20 13:32] – wikiadminadd_incomingvalue_last_lineofscript [2025/05/20 13:52] (current) – [How to add incomingValue; to every script in a .tsx (TransSECS project file)] wikiadmin
Line 74: Line 74:
      * Replace with: incomingValue;</Script>      * Replace with: incomingValue;</Script>
   - Execute the replace: Click Replace All   - Execute the replace: Click Replace All
- +  -  
-{{:pasted:20250520-115953.png}}+{{:pasted:20250520-123447.png}}
  
 On this last pass you can add a comment to the replacement line, such as incomingValue;<nowiki>  <!--fixed today--></nowiki> , and put today's date in place of "today" On this last pass you can add a comment to the replacement line, such as incomingValue;<nowiki>  <!--fixed today--></nowiki> , and put today's date in place of "today"
  
-Optional: you can replace the OK <nowiki> <!--OK--> </nowiki> and/or fixed <nowiki> <!--fixed today--> </nowiki> comments with blank strings to remove them+Note: the OK comment  <nowiki> <!--OK--> </nowiki> and other comments added in these steps will be removed after you load the project into TransSECS and re-save. 
  
-This procedure should help you modify projects using scripts in which there is no output at the end of the script. However, it is good to do a quick check of your project after these changes. Also there can be some casese where incomingValue; is not inserted before the end of the script because the last line in the script ended with a ; and there is no output on that line. For example, if your last line was DataSource.logMessage("some message"); this will not get an incomingValue; added and logMessage does not return a value so this can still cause the script not to execute the next time it is triggered. If you had a method call on the last line which does return a value then this satisfies the output requirement.+This procedure should help you modify projects using scripts in which there is no output at the end of the script. However, it is good to do a quick check of your project after these changes. Also there can be some casese where incomingValue; is not inserted before the end of the script because the last line in the script ended with a ; and there is no output on that line. For example, if your last line was a DataSource.logMessage("some message"); this will not get an incomingValue; added and logMessage does not return a value so this can still cause the script not to execute the next time it is triggered. If you had a method call on the last line which does return a value then this satisfies the output requirement. Likewise if your last line was a comment such as <nowiki>"//this is a comment"</nowiki> then a new incomingValue; will be added.
  
add_incomingvalue_last_lineofscript.1747762361.txt.gz · Last modified: by wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki