Dynamically Name a TMemoView Object inside a For-Next loop

edited October 2016 in FastReport VCL 5
Hi All

How does one dynamically name a TMemoView Object inside a For-Next Loop

I don't mean using the
Memo->CreateUniqueName();
unless there is then a method to determine that Unique name, so as to beable to use it later?

Perhaps I actually need to assign a dynamic variable name to the Memo, rather than the Memo->Name, as I am wanting to assign an array to its Value, as one does for a normal manually named Memo Variable.

Thanks, advice appreciated.

Comments

  • edited 11:18PM
    BarrySA wrote: »
    Hi All

    How does one dynamically name a TMemoView Object inside a For-Next Loop

    I don't mean using the
    Memo->CreateUniqueName();
    unless there is then a method to determine that Unique name, so as to beable to use it later?

    Perhaps I actually need to assign a dynamic variable name to the Memo, rather than the Memo->Name, as I am wanting to assign an array to its Value, as one does for a normal manually named Memo Variable.

    Thanks, advice appreciated.

    I'm basically wanting name the Memo Oject, something like this

    Memo->Text = "[TankName]";

    So that I can later assign an array to that variable, like

    if(CompareText(VarName,"TankName") == 0)
    Value = TankList[ArrayDS4->RecNo]->TankName;

    both done inside a loop
    for (int i = 0; i < NoOfTanks; ++i)



  • edited 11:18PM
    I'm Sorted on this thanks....via the gracious help of Support.

    Closed.
  • gpigpi
    edited 11:18PM
    Try to use different var names in the TfrxMemoView. [TankNames0], [TankNames1], etc

Leave a Comment