I'm starting to use LazReport and I've found an extrange behaviour when I use variables.
Like the manual says, I've preceded the name of the the variable with one space, but when I tried to use it inside LR to assign some value, it's impossible. However when the variable has two spaces in the beginning I'm able to assign the correct value. Anyway, in that case there are also problems, because I must refer to the variable without spaces, when I do it in the editor, and without square brackets, when I do it in the scripts. Any other way I get an error. For example
If Var1 is defined like ' Var1' -> Impossible to assign any value
If Var1 is defined like ' Var1' (with 2 spaces). I can assign values if I put [Var1] (without spaces) in the editor, and simply 'Var' (without square brackets) in the scripts. Any other way to refer to the variable in the script ([Var] or [ Var]) becomes an error. If I try to acces to that that variable from code inside Lazarus I must say ' Var1' (with one space)
Attached is a demo to show what I'm trying to say.
Please, could someone tell what I'm doing wrong?
I'm using Lazarus 1.4.2-32 bits and Windows 10-64 bits, but it happens the same in Windows 8