Page 1 of 1

Tag syntax query b1085

Posted: Tue 17 Dec 2013 8:14 pm
by BCJKiwi
Just discovered some "interesting" behaviour with tag formatting.

Am able to do this ( where <#interval> = 10 );

Code: Select all

$intervalrain = <#RecentRainToday m=10>
as expected, but not this;

Code: Select all

$intervalrain = <#RecentRainToday m=<#interval>>
or this;

Code: Select all

$intervalrain = <#RecentRainToday m=<#interval> >
The result is $intervalrain = 0.0> (or 0.0 >)
However this appears to work OK;

Code: Select all

$intervalrain = <#RecentRainToday m=<#interval>
the result is $intervalrain = 0.0 Note the single ending '>'

This is unexpected but works. Can it be relied upon?

Re: Tag syntax query b1085

Posted: Tue 17 Dec 2013 8:29 pm
by steve
I don't know how the parsing of the web tags works, so I couldn't have told you what would work and what wouldn't before you'd tried it. It's unlikely that I'll upgrade the version of Delphi that I'm using for the current incarnation of Cumulus (i.e. anything with a version starting with a '1') so it will probably continue to work for any future version of Cumulus 1. It may or may not work with the cross-platform version of Cumulus that I'm working on. The effect is not intentional.

My current intention is that any future releases of Cumulus 1 will be for bug fixes only, and the cross-platform version will become the only version with new facilities. If I remember, I will try it with that version at some point.

If you were to press me for an answer now, I would say that you can't rely on it.

Re: Tag syntax query b1085

Posted: Wed 18 Dec 2013 2:42 am
by BCJKiwi
Thanks