You need to "Update" the [mTotal] when [mCod] finishes to be able to use it's value.
See: DynamicVariable use in Webparser
Also, whenever you use Section Variables you must add DynamicVariables=1 to the section. This was missing from your [mTotal] section.
This code adds a FinishAction to [mCod] so it updates [mTotal] after [mCod] has a value and adds DynamicVariables=1 to [mTotal].
I also corrected the synax to use the measure value of [mCod]; not a variable named [#[&mCod]] since I did not see any code where you set that variable value.
Code: Select all
[mCod]
Measure=WebParser
Url=file://#CURRENTPATH#Settings.inc
RegExp="(?siU)weather-.*-(.*)/.*"
stringindex=1
DynamicVariables=1
FinishAction=[!CommandMeasure mTotal "Update"]
[mTotal]
Measure=WebParser
UpdateRate =3600
Url =https://services.gfore.net/inform-service/#hash_val#/forecast/?lang=#lang#&city=[&mCod]
UserAgent =#uagent#
RegExp ="(?siU)<location(.*)</location>"
DynamicVariables=1