--- El mié 12-ago-09, Lukas Gradl <[email protected]> escribió:
> De:: Lukas Gradl <[email protected]> > Asunto: [Lazarus] LazReport: define Variables programmatically > A: "Lazarus Mailinglists" <[email protected]> > 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/ -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
