Reaching variables or fr objects from C++ Builder

Hello!

What is wrong with the code above? What should I do to achieve this (to fill a variable with some values). Should I use object Memo instead? How to reach Memo->Text from C++ Builder?

void __fastcall TFMain::BitBtn3Click(TObject *Sender)
{


for (int i = 1; i < ComboBox4->Items->Count; i++)
{
frReport2->Dictionary->Variables->Variable["artikli"].VString =
frReport2->Dictionary->Variables->Variable["artikli"].VString + ", " +
ComboBox4->Items->Strings;
}
}


Thx in advance

Comments

  • edited 9:32AM
    Hi!

    Maybe You shouldn't add the .VString word to the end of the variable reference. I tried this code (in Delphi) and it seems that the VString is only applicable when the variant is an automation object.

    Regards:Alex

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.