On 2015-06-30 14:03, Graeme Geldenhuys wrote:
> I've used File -> Variable List to define a new variable (just the name).
Digging deeper into the LazReport code, I finally found the solution.
Even though you setup a variable, you must not refer to it via the
Scripts.Values[] or Variables.Values[] properties. Go figure!
Instead you use the Values.FindVariables() method.
FRPrint.Values.FindVariable('HideKlas').Field := '1';
For more details of what I've done, see the Lazarus Forum post.
http://forum.lazarus.freepascal.org/index.php/topic,28922.0.html
Now this begs the question... What the hell does Scripts.Values[] and
Variables.Values[] actually do?
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus