Hi,

seems like I'm too stupid to find out how to create variables by code.

What I want to do:
If the user starts the designer and clicks "File->Variables list" ther should be a Group called "Custom" and the variables "Test1" and "Test2" in there.

The values I want to fill by using OnGetValue.

I tried
frVariables['Test1']:='';
frVariables['Test2']:='';
Result: No entry in the Variables list in designer.

frVariables['Custom']:='';
frVariables[' Test1']:='';
frVariables[' Test2']:='';
Result: No entry in the Variables list in designer.

Report.Variables.Add('Custom');
Report.Variables.Add(' Test1');
Report.Variables.Add(' Test2');
Result: They're in the Variables list, but when clicking on them I get an access violation.

Any hint or example how to proceed?

Regards
Lukas


--

--------------------------
software security networks
Lukas Gradl <fpc#ssn.at>
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-512-214040-0
Fax: +43-512-214040-21
--------------------------

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to