Placeholder: Difference between revisions

From SweepMe! Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
In text fields you can use placeholders which will be replaced by a variable if the content of the text field is read out.
In text fields ("LineEdits") you can use placeholders which will be replaced by a variable if the content of the text field is read out. Should there be a text field that does not accept these placeholders, please write to support@sweep-me.net


Predefined placeholders are
== Predefined placeholders==
 
=== Time and date ===


*'''%d'''  day
*'''%d'''  day
Line 12: Line 14:
*'''%M'''  minute
*'''%M'''  minute
*'''%S'''  second
*'''%S'''  second
=== Universal constants ===
tbd
== Applications ==
* Change folder and file name automatically
* Use a global parameter that is used in different modules, e.g. [[Calc]] or [[CustomFunction]]
* Use a parameter in the SweepEditor to make sweeps from %var1 to -%var1 in steps of %var2 where %var1 and %var2 are predefined variables


Starting from version 1.5.4., individual placeholders can be defined using the Module [[Formular]].
Starting from version 1.5.4., individual placeholders can be defined using the Module [[Formular]].

Revision as of 21:46, 6 June 2019

In text fields ("LineEdits") you can use placeholders which will be replaced by a variable if the content of the text field is read out. Should there be a text field that does not accept these placeholders, please write to support@sweep-me.net

Predefined placeholders

Time and date

  • %d day
  • %m month
  • %y year 2 digits
  • %Y year 4 digits
  • %H hour 24h
  • %I hour 12h
  • %p PM or AM
  • %M minute
  • %S second

Universal constants

tbd

Applications

  • Change folder and file name automatically
  • Use a global parameter that is used in different modules, e.g. Calc or CustomFunction
  • Use a parameter in the SweepEditor to make sweeps from %var1 to -%var1 in steps of %var2 where %var1 and %var2 are predefined variables

Starting from version 1.5.4., individual placeholders can be defined using the Module Formular.