Now in 2008.3.311.0 (of 19 November 2008) if i do the same thing the reportvariable result is "", i must use the "value" property instead of "valueobject".
This is an example:
Code: Select all
Dim v As New Stimulsoft.Report.Dictionary.StiVariable("MyStringReportVariable", System.Type.GetType("System.String"))
v.ValueObject = "MyStringValueObject"
System.Windows.Forms.MessageBox.Show(String.Concat("The value is empty for both properties: ValueObject=", v.ValueObject, " Value=", v.Value))
v.Value = "MyStringValue"
System.Windows.Forms.MessageBox.Show(String.Concat("The value is correct for both properties: ValueObject=", v.ValueObject, " Value=", v.Value))
Could you please explain what is the correct way to set a report variable value in 2008.3 version? In which case must i use "value" property and in which case must i use "valueobject" property?
And why, in the string example above, when i set the "value" property, the "valueobject" property is automatically assigned too?
-- added
I've noticed now that "value" property is string, so i assume that "value" must be used to assign string values, while "valueobject" for all the other types. Actually valueobject doesn't work for certain types such as "Integer", so the only way to assign a value seems to use the "value" property transforming the value in string.
Thank you.