startwhere
start is a parameter.
When this line is found, the function returns the element at the position number
position, where position is a parameter.
A comma is used as the delimiter of the elements.
impure function getLastHeaderElementTMY3
extends Modelica.Icons.Function;
input String filNam "Name of weather data file" annotation(
Dialog(loadSelector(filter = "Weather files (*.mos)", caption = "Select weather file")));
input String start "Start of the string that contains the elements";
input String name "Name of data element, used in error reporting";
output String element "Element at position 'pos' of the line that starts with 'start'";
end getLastHeaderElementTMY3;impure declaration for MSL 4.0.0.
loadSelector
for MSL compliancy as reported by @tbeu at
RWTH-EBC/AixLib#107
getAbsolutePath.
name.