Posted 4 August 2017, 3:14 pm ESTI have a report where I am passing in a string seperated by "~". I am trying to split that string and then using a loop assign those values to fields named like "fieldname & i + 1". Something to that effect I have tried several ways to do this, but nothing seems to be working. I am trying to print these values as captions inside labels. Can this be done?
splitting strings and assigning values
Posted by: elynx on 4 August 2017, 3:14 pm EST
Replied 4 August 2017, 3:14 pm ESTHello,
If I understand you correctly, in ActiveReports you wish to
1) Create some Fields and Labels at runtime.
2) Modify the Text content of the Fields through user input.
3) Modify the caption of the Labels according to the text in the Fields.
In order to create and use controls at runtime you can use an instance of the object class. The attached sample illustrates the same.
Please let me know if I have misunderstood the issue.