[Lazarus] LazReport: define Variables programmatically

Jesus Reyes jesusrmx at yahoo.com.mx
Fri Aug 14 23:11:27 CEST 2009



--- El mié 12-ago-09, Lukas Gradl <fpc at ssn.at> escribió:

> De:: Lukas Gradl <fpc at ssn.at>
> Asunto: [Lazarus] LazReport: define Variables programmatically
> A: "Lazarus Mailinglists" <lazarus at lazarus.freepascal.org>
> Fecha: miércoles 12 de agosto de 2009, 10:31
> 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
> 

Sounds like a bug, please submit a bug report with a sample project, please don't forget Lazarus revision/version

Jesus Reyes A.


      Encuentra las mejores recetas en Yahoo! Cocina.                       
http://mx.mujer.yahoo.com/cocina/




More information about the Lazarus mailing list